|
|
@ -24,6 +24,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.rocketmq.messages.OrgOrStaffMQMsg; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
@ -55,6 +56,7 @@ import com.epmet.entity.CustomerStaffGridEntity; |
|
|
|
import com.epmet.entity.StaffOrgRelationEntity; |
|
|
|
import com.epmet.feign.*; |
|
|
|
import com.epmet.resi.partymember.feign.ResiPartyMemberOpenFeignClient; |
|
|
|
import com.epmet.send.SendMqMsgUtil; |
|
|
|
import com.epmet.service.CustomerAgencyService; |
|
|
|
import com.epmet.service.CustomerGridService; |
|
|
|
import com.epmet.util.ModuleConstant; |
|
|
@ -112,6 +114,8 @@ public class CustomerGridServiceImpl extends BaseServiceImpl<CustomerGridDao, Cu |
|
|
|
private ResiPartyMemberOpenFeignClient resiPartyMemberOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private EpmetUserOpenFeignClient epmetUserOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private EpmetMessageOpenFeignClient epmetMessageOpenFeignClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -515,10 +519,19 @@ public class CustomerGridServiceImpl extends BaseServiceImpl<CustomerGridDao, Cu |
|
|
|
validStaffIds.forEach(staffId -> { |
|
|
|
CustomerStaffRedis.delStaffInfoFormCache(staffListFormDTO.getCustomerId(), staffId); |
|
|
|
}); |
|
|
|
//22.7.25 网格添加工作人员推送mq 同步工作人员信息到中间库 start
|
|
|
|
OrgOrStaffMQMsg mq = new OrgOrStaffMQMsg(); |
|
|
|
mq.setCustomerId(staffListFormDTO.getCustomerId()); |
|
|
|
mq.setStaffIdList(staffListFormDTO.getSelectedList()); |
|
|
|
mq.setOrgType("staff"); |
|
|
|
mq.setType("staff_create"); |
|
|
|
SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendOrgStaffMqMsg(mq); |
|
|
|
//22.7.25 网格添加工作人员推送mq 同步工作人员信息到中间库 end
|
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return new Result().error(); |
|
|
|
} |
|
|
|
|
|
|
|