|
@@ -68,19 +68,16 @@ public class EnterpriseServiceImpl implements EnterpriseService {
|
|
|
@Override
|
|
|
public EnterpriseStatusDto queryCertificationStatus() {
|
|
|
EnterpriseStatusDto enterpriseStatusDto = new EnterpriseStatusDto();
|
|
|
+ enterpriseStatusDto.setCertificationStatus(DictConstants.CERTIFICATION_STATUS_UNSUBMITTED);
|
|
|
+ enterpriseStatusDto.setShowAllFunctions(Boolean.FALSE);
|
|
|
Long customerUserId = UserUtils.getCustomerUserId();
|
|
|
- Enterprise enterprise = enterpriseBaseService.getEnterpriseByCustomerId(customerUserId);
|
|
|
- if (enterprise != null) {
|
|
|
- enterpriseStatusDto.setCertificationStatus(enterprise.getCertificationStatus());
|
|
|
- }
|
|
|
EnterpriseChangeRecord record = enterpriseChangeRecordBaseService.getLatestRecord(customerUserId, null);
|
|
|
- if (record != null && DictConstants.CERTIFICATION_STATUS_UNSUBMITTED.equals(record.getCertificationStatus())) {
|
|
|
- if (enterprise == null) {
|
|
|
- enterpriseStatusDto.setSubmitHint("未提交");
|
|
|
- } else {
|
|
|
- enterpriseStatusDto.setSubmitHint("资料更新未提交");
|
|
|
- }
|
|
|
+ if (record != null) {
|
|
|
+ enterpriseStatusDto.setCertificationStatus(record.getCertificationStatus());
|
|
|
}
|
|
|
+ Enterprise enterprise = enterpriseBaseService.getEnterpriseByCustomerId(customerUserId);
|
|
|
+ enterpriseStatusDto.setShowAllFunctions(enterprise != null
|
|
|
+ && DictConstants.CERTIFICATION_STATUS_PASSED.equals(enterprise.getCertificationStatus()));
|
|
|
return enterpriseStatusDto;
|
|
|
}
|
|
|
|