|
@ -482,7 +482,7 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// *.发送初始化客户信息到mq,让监听者完成初始化操作
|
|
|
// *.发送初始化客户信息到mq,让监听者完成初始化操作
|
|
|
/*InitCustomerMQMsg msgContent = new InitCustomerMQMsg(); |
|
|
InitCustomerMQMsg msgContent = new InitCustomerMQMsg(); |
|
|
msgContent.setCustomerId(formDTO.getCustomerId()); |
|
|
msgContent.setCustomerId(formDTO.getCustomerId()); |
|
|
msgContent.setAgency(constructAgencyInfo4CustomerInit(paAgency)); |
|
|
msgContent.setAgency(constructAgencyInfo4CustomerInit(paAgency)); |
|
|
msgContent.setStaff(constructStaffInfo4CustomerInit(paAgency.getId(), paUser)); |
|
|
msgContent.setStaff(constructStaffInfo4CustomerInit(paAgency.getId(), paUser)); |
|
@ -493,9 +493,9 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn |
|
|
Result sendMsgResult = epmetMessageOpenFeignClient.sendSystemMsgByMQ(systemMsgFormDTO); |
|
|
Result sendMsgResult = epmetMessageOpenFeignClient.sendSystemMsgByMQ(systemMsgFormDTO); |
|
|
if (! sendMsgResult.success()) { |
|
|
if (! sendMsgResult.success()) { |
|
|
throw new RenException("发送(初始化客户信息)系统消息到message服务失败:{}", sendMsgResult.getInternalMsg()); |
|
|
throw new RenException("发送(初始化客户信息)系统消息到message服务失败:{}", sendMsgResult.getInternalMsg()); |
|
|
}*/ |
|
|
} |
|
|
|
|
|
|
|
|
//3.调用epmet-user服务,初始化客户对应的角色;调用access服务给角色分配权限信息
|
|
|
/*//3.调用epmet-user服务,初始化客户对应的角色;调用access服务给角色分配权限信息
|
|
|
Result initResult = epmetUserFeignClient.initGovStaffRolesForCustomer(formDTO.getCustomerId()); |
|
|
Result initResult = epmetUserFeignClient.initGovStaffRolesForCustomer(formDTO.getCustomerId()); |
|
|
if (!initResult.success()) { |
|
|
if (!initResult.success()) { |
|
|
throw new RenException("客户新增:调用user服务为客户初始化角色数据失败:".concat(initResult.toString())); |
|
|
throw new RenException("客户新增:调用user服务为客户初始化角色数据失败:".concat(initResult.toString())); |
|
@ -536,7 +536,7 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn |
|
|
Result agencyResult = govOrgOpenFeignClient.saveRootAgency(agencyAndStaff); |
|
|
Result agencyResult = govOrgOpenFeignClient.saveRootAgency(agencyAndStaff); |
|
|
if (!agencyResult.success()) { |
|
|
if (!agencyResult.success()) { |
|
|
throw new RenException(agencyResult.getCode(), agencyResult.getInternalMsg()); |
|
|
throw new RenException(agencyResult.getCode(), agencyResult.getInternalMsg()); |
|
|
} |
|
|
}*/ |
|
|
|
|
|
|
|
|
//6.更新第三方数据库中客户数据状态为已初始化
|
|
|
//6.更新第三方数据库中客户数据状态为已初始化
|
|
|
String customerUrl = "https://epmet-cloud.elinkservice.cn/api/third/pacustomer/updatecustomer/" + formDTO.getCustomerId(); |
|
|
String customerUrl = "https://epmet-cloud.elinkservice.cn/api/third/pacustomer/updatecustomer/" + formDTO.getCustomerId(); |
|
|