|
@ -151,7 +151,7 @@ public class IcTripReportRecordServiceImpl extends BaseServiceImpl<IcTripReportR |
|
|
} |
|
|
} |
|
|
//3.新增通知表信息
|
|
|
//3.新增通知表信息
|
|
|
if (formDTO.getChannel().size() > NumConstant.ZERO && StringUtils.isNotBlank(formDTO.getContent())) { |
|
|
if (formDTO.getChannel().size() > NumConstant.ZERO && StringUtils.isNotBlank(formDTO.getContent())) { |
|
|
sendNotice(formDTO); |
|
|
sendNotice(formDTO,agencyInfoCache.getOrganizationName()); |
|
|
} |
|
|
} |
|
|
return entity.getId(); |
|
|
return entity.getId(); |
|
|
} |
|
|
} |
|
@ -160,7 +160,7 @@ public class IcTripReportRecordServiceImpl extends BaseServiceImpl<IcTripReportR |
|
|
* 行程上报-发送通知 |
|
|
* 行程上报-发送通知 |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
*/ |
|
|
*/ |
|
|
private void sendNotice(IcTripReportFormDTO formDTO) { |
|
|
private void sendNotice(IcTripReportFormDTO formDTO,String agencyName) { |
|
|
SendNoticeFormDTO dto = new SendNoticeFormDTO(); |
|
|
SendNoticeFormDTO dto = new SendNoticeFormDTO(); |
|
|
List<SendNoticeFormDTO.UserListBean> userList = new ArrayList<>(); |
|
|
List<SendNoticeFormDTO.UserListBean> userList = new ArrayList<>(); |
|
|
//注意这里的userId是指的pc平台的居民
|
|
|
//注意这里的userId是指的pc平台的居民
|
|
@ -171,7 +171,8 @@ public class IcTripReportRecordServiceImpl extends BaseServiceImpl<IcTripReportR |
|
|
//通知来源 0 行程上报,1 疫苗接种,2 核酸检测
|
|
|
//通知来源 0 行程上报,1 疫苗接种,2 核酸检测
|
|
|
dto.setOrigin(NumConstant.ZERO_STR); |
|
|
dto.setOrigin(NumConstant.ZERO_STR); |
|
|
dto.setContent(formDTO.getContent()); |
|
|
dto.setContent(formDTO.getContent()); |
|
|
dto.setOrgName(formDTO.getCurrentStaffId()); |
|
|
dto.setOrgName(agencyName); |
|
|
|
|
|
dto.setStaffId(formDTO.getCurrentStaffId()); |
|
|
icNoticeService.sendNotice(dto); |
|
|
icNoticeService.sendNotice(dto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -225,7 +226,7 @@ public class IcTripReportRecordServiceImpl extends BaseServiceImpl<IcTripReportR |
|
|
} |
|
|
} |
|
|
//3.新增通知表信息
|
|
|
//3.新增通知表信息
|
|
|
if (formDTO.getChannel().size() > NumConstant.ZERO && StringUtils.isNotBlank(formDTO.getContent())) { |
|
|
if (formDTO.getChannel().size() > NumConstant.ZERO && StringUtils.isNotBlank(formDTO.getContent())) { |
|
|
sendNotice(formDTO); |
|
|
sendNotice(formDTO,agencyInfoCache.getOrganizationName()); |
|
|
} |
|
|
} |
|
|
return entity.getId(); |
|
|
return entity.getId(); |
|
|
} |
|
|
} |
|
|