|
@@ -403,7 +403,7 @@ public class KwsEnterpriseService {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- commonService.sendSystemMessage(Collections.singletonList(new UserInfo().setUserId(userId).setEntId(entId)),
|
|
|
|
|
|
|
+ commonService.sendSystemMessage(Collections.singletonList(new UserInfo().setUserId(userId).setEntId(reqVo.getEntPid())),
|
|
|
MessageEnum.ENT_CERTIFICATE,
|
|
MessageEnum.ENT_CERTIFICATE,
|
|
|
map,
|
|
map,
|
|
|
entDeptUrl, "");
|
|
entDeptUrl, "");
|
|
@@ -498,6 +498,11 @@ public class KwsEnterpriseService {
|
|
|
map.put("entName", kwsEnterprise.getFirmName());
|
|
map.put("entName", kwsEnterprise.getFirmName());
|
|
|
map.put("createByName", LoginUserHolder.getUserName());
|
|
map.put("createByName", LoginUserHolder.getUserName());
|
|
|
MessageEnum messageEnum;
|
|
MessageEnum messageEnum;
|
|
|
|
|
+ EntCacheResDto entCacheResDto = remoteSystemService.queryEntTreeById(entId);
|
|
|
|
|
+ if (Objects.isNull(entCacheResDto)) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (reqVo.getStatus().equals(ApprovalEnum.OK.getCode())) {
|
|
if (reqVo.getStatus().equals(ApprovalEnum.OK.getCode())) {
|
|
|
if (Objects.isNull(kwsEntDept)) {
|
|
if (Objects.isNull(kwsEntDept)) {
|
|
|
messageEnum = MessageEnum.ENT_CERTIFICATE_PASS;
|
|
messageEnum = MessageEnum.ENT_CERTIFICATE_PASS;
|
|
@@ -513,12 +518,12 @@ public class KwsEnterpriseService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (Objects.isNull(kwsEntDept)) {
|
|
if (Objects.isNull(kwsEntDept)) {
|
|
|
- commonService.sendSystemMessage(Collections.singletonList(new UserInfo().setUserId(kwsEnterprise.getCreateBy()).setEntId(entId)),
|
|
|
|
|
|
|
+ commonService.sendSystemMessage(Collections.singletonList(new UserInfo().setUserId(entCacheResDto.getContactsId()).setEntId(entCacheResDto.getId())),
|
|
|
messageEnum,
|
|
messageEnum,
|
|
|
map,
|
|
map,
|
|
|
entCertificateUrl, appEntCertificateUrl);
|
|
entCertificateUrl, appEntCertificateUrl);
|
|
|
} else {
|
|
} else {
|
|
|
- commonService.sendSystemMessage(Collections.singletonList(new UserInfo().setUserId(kwsEnterprise.getCreateBy()).setEntId(entId)),
|
|
|
|
|
|
|
+ commonService.sendSystemMessage(Collections.singletonList(new UserInfo().setUserId(entCacheResDto.getContactsId()).setEntId(entCacheResDto.getId())),
|
|
|
messageEnum,
|
|
messageEnum,
|
|
|
map,
|
|
map,
|
|
|
entDeptUrl, "");
|
|
entDeptUrl, "");
|