|
|
@@ -366,6 +366,8 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
|
iotRhDailyReportMapper.updateById(iotRhDailyReport);
|
|
|
|
|
|
if (CollUtil.isNotEmpty(teamStatusL)) {
|
|
|
+ // 添加空白日报时 只需要发送填报提醒 不需要发送审批提醒
|
|
|
+ noDeviceTeam.set(true);
|
|
|
// 说明队伍下的设备类别为非施工状态,需要向 日报填报人发送 消息提醒
|
|
|
Set<Long> targetUserIds = new HashSet<>();
|
|
|
targetUserIds.add(Long.valueOf(iotRhDailyReport.getCreator()));
|
|
|
@@ -386,7 +388,6 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
|
String mobile = user.getMobile();
|
|
|
// 没有手机号也发送站内信消息
|
|
|
if (StrUtil.isNotBlank(finalMsgTitle)) {
|
|
|
- noDeviceTeam.set(true);
|
|
|
System.out.println("向日报创建人发送消息");
|
|
|
pmsMessage.sendMessage(iotRhDailyReport.getId(), finalMsgTitle, PmsConstants.RH_DAILY_REPORT,
|
|
|
userId, mobile);
|
|
|
@@ -408,7 +409,7 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
|
// 只要保存了记录就要发送审批提醒到 提交人对应的项目经理 角色 项目部日报审批RH
|
|
|
// 根据日报的 deptId 查询上级项目部经理 角色的审批人 发送站内信 钉钉提醒
|
|
|
// 此时需要判断下当前队伍下有无增压机,如果 ‘当前队伍下无增压机’ 或 ‘增压机的状态不是施工’ 需要新增空白记录 向填报人推送消息。
|
|
|
- // 暂时添加判断条件 创建人 是 null 的话 不发送 站内信及钉钉消息
|
|
|
+ // 暂时添加判断条件 创建人 是 null 的话 不发送 站内信及钉钉消息 如果已经发送了填报日报的提醒 不需要再发送审批的提醒
|
|
|
if (StrUtil.isNotBlank(iotRhDailyReport.getCreator()) && !noDeviceTeam.get()) {
|
|
|
Long parentId = currentDept[0].getParentId();
|
|
|
if (ObjUtil.isNotEmpty(parentId)) {
|