|
|
@ -218,12 +218,14 @@ public class CustomerStaffController { |
|
|
|
Result<CustomerStaffDTO> result = customerStaffService.addStaff(fromDTO); |
|
|
|
|
|
|
|
//2021-10-18 推送mq,数据同步到中介库 start
|
|
|
|
OrgOrStaffMQMsg mq = new OrgOrStaffMQMsg(); |
|
|
|
mq.setCustomerId(fromDTO.getCustomerId()); |
|
|
|
mq.setOrgId(result.getData().getUserId()); |
|
|
|
mq.setOrgType("staff"); |
|
|
|
mq.setType("staff_create"); |
|
|
|
SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendOrgStaffMqMsg(mq); |
|
|
|
if (result.success()) { |
|
|
|
OrgOrStaffMQMsg mq = new OrgOrStaffMQMsg(); |
|
|
|
mq.setCustomerId(fromDTO.getCustomerId()); |
|
|
|
mq.setOrgId(result.getData().getUserId()); |
|
|
|
mq.setOrgType("staff"); |
|
|
|
mq.setType("staff_create"); |
|
|
|
SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendOrgStaffMqMsg(mq); |
|
|
|
} |
|
|
|
//2021-10-18 end
|
|
|
|
|
|
|
|
return result; |
|
|
@ -240,12 +242,14 @@ public class CustomerStaffController { |
|
|
|
Result result = customerStaffService.editStaff(fromDTO); |
|
|
|
|
|
|
|
//2021-10-18 推送mq,数据同步到中介库 start
|
|
|
|
OrgOrStaffMQMsg mq = new OrgOrStaffMQMsg(); |
|
|
|
mq.setCustomerId(fromDTO.getCustomerId()); |
|
|
|
mq.setOrgId(fromDTO.getStaffId()); |
|
|
|
mq.setOrgType("staff"); |
|
|
|
mq.setType("staff_change"); |
|
|
|
SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendOrgStaffMqMsg(mq); |
|
|
|
if (result.success()) { |
|
|
|
OrgOrStaffMQMsg mq = new OrgOrStaffMQMsg(); |
|
|
|
mq.setCustomerId(fromDTO.getCustomerId()); |
|
|
|
mq.setOrgId(fromDTO.getStaffId()); |
|
|
|
mq.setOrgType("staff"); |
|
|
|
mq.setType("staff_change"); |
|
|
|
SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendOrgStaffMqMsg(mq); |
|
|
|
} |
|
|
|
//2021-10-18 end
|
|
|
|
|
|
|
|
return result; |
|
|
|