|
|
@@ -304,7 +304,7 @@ public class KwsEnterpriseService {
|
|
|
kwsEnterprise.setOrgCode("");
|
|
|
kwsEnterprise.setRegTime(date);
|
|
|
kwsEnterprise.setUpdateBy(LoginUserHolder.getUserId());
|
|
|
- kwsEnterprise.setApproval(ApprovalEnum.PROCESS.getCode());
|
|
|
+ kwsEnterprise.setApproval(kwsEnterprise.getApproval().equals(ApprovalEnum.OK.getCode()) ? ApprovalEnum.REFRESH.getCode() : ApprovalEnum.PROCESS.getCode());
|
|
|
if (kwsEnterpriseDao.update(kwsEnterprise) <= 0) {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
}
|
|
|
@@ -458,7 +458,6 @@ public class KwsEnterpriseService {
|
|
|
}
|
|
|
commonService.updateEntCertificate(entId, BeanUtils.copyToList(kwsEntCertificates, EntCertificateInfo.class));
|
|
|
|
|
|
-
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("entName", kwsEnterprise.getFirmName());
|
|
|
map.put("createByName", LoginUserHolder.getUserName());
|