DLC 1 рік тому
батько
коміт
6dbc049bb2

+ 6 - 1
bs-common/src/main/java/com/rongwei/safecommon/utils/SaveConstans.java

@@ -143,6 +143,11 @@ public class SaveConstans {
          */
         public static final String MOBILE_PLANNING_TASK = "mobilePlanningTask";
 
+        /**
+         * 设备报废申请审批通过通知
+         */
+        public static final String EQU_SCRAP_TASK = "equscraptask";
+
     }
 
     public static class NotifyTitle {
@@ -298,6 +303,6 @@ public class SaveConstans {
         /**
          * 设备报废申请审批通过提醒内容
          */
-        public static final String EQU_SCRAP_CONTENT = "设备报废申请审批通过通知";
+        public static final String EQU_SCRAP_CONTENT = "【%s】于【%s】申请【%s】【%s】【%s】使用的设备进行报废处置申请已审批通过,系统已将该设备进行标记报废标记处理,此设备的相关保养、润滑相关计划请及时进行停用处理,请大家注意。";
     }
 }

+ 5 - 0
cx-equipment/cx-equipment-common/src/main/java/com/rongwei/bscommon/sys/service/impl/EquipmentSendNotifyServiceImpl.java

@@ -218,6 +218,11 @@ public class EquipmentSendNotifyServiceImpl implements EquipmentSendNotifyServic
             log.info("id为{}的任务无提醒人", equipmentDisposeDTO.getId());
             return;
         }
+        // 发送内容
+        String context = String.format(EQU_SCRAP_CONTENT, equipmentDisposeDTO.getProposer(), equipmentDisposeDTO.getApplicationtime(), aspCheckItems.getUsedeptname(), aspCheckItems.getCheckitemname(), aspCheckItems.getCheckitemcode());
+
+        CXCommonUtils.sendNotify(EQU_SCRAP_TITLE, context, null, userId.stream().distinct().collect(Collectors.toList()),
+                equipmentDisposeDTO.getId(), EQU_SCRAP_TASK, true);
     }
 }