|
|
@ -105,7 +105,7 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp |
|
|
|
dto.setChannel(formDTO.getChannel()); |
|
|
|
dto.setOrigin("2"); |
|
|
|
dto.setContent(formDTO.getContent()); |
|
|
|
dto.setOrgName(agencyInfo.getOrganizationName()); |
|
|
|
dto.setStaffId(formDTO.getStaffId()); |
|
|
|
icNoticeService.sendNotice(dto); |
|
|
|
} |
|
|
|
|
|
|
@ -186,12 +186,6 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp |
|
|
|
|
|
|
|
//3.新增通知表信息
|
|
|
|
if (CollectionUtils.isNotEmpty(formDTO.getChannel())) { |
|
|
|
IcNatEntity icNatEntity = baseDao.selectById(formDTO.getIcNatId()); |
|
|
|
//1.获取所填居民所属组织缓存信息
|
|
|
|
AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(icNatEntity.getAgencyId()); |
|
|
|
if (null == agencyInfo) { |
|
|
|
throw new RenException(String.format("获取组织缓存信息失败%s", icNatEntity.getAgencyId())); |
|
|
|
} |
|
|
|
SendNoticeFormDTO dto = new SendNoticeFormDTO(); |
|
|
|
List<SendNoticeFormDTO.UserListBean> userList = new ArrayList<>(); |
|
|
|
userList.add(ConvertUtils.sourceToTarget(formDTO, SendNoticeFormDTO.UserListBean.class)); |
|
|
@ -200,7 +194,7 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp |
|
|
|
dto.setChannel(formDTO.getChannel()); |
|
|
|
dto.setOrigin("2"); |
|
|
|
dto.setContent(formDTO.getContent()); |
|
|
|
dto.setOrgName(agencyInfo.getOrganizationName()); |
|
|
|
dto.setStaffId(formDTO.getStaffId()); |
|
|
|
icNoticeService.sendNotice(dto); |
|
|
|
} |
|
|
|
} |
|
|
|