Sfoglia il codice sorgente

[task-5835] 试剂耗材基础数据注册证有效期后提醒,消息内容更改-修改消息内容

xiexh 7 mesi fa
parent
commit
9156e21472

+ 4 - 3
ibps-provider-root/modules/provider-platform/src/main/java/com/lc/ibps/platform/plan/job/DeviceToDoRemindJob.java

@@ -72,17 +72,18 @@ public class DeviceToDoRemindJob extends BaseJob2 {
         List<Map<String, Object>> sjhcSqlList = (List<Map<String, Object>>)commonDao.query(sjhcSql);
         if (BeanUtils.isNotEmpty(sjhcSqlList)){
             String headerString = "您好,试剂耗材%s注册证有效期即将到期,请及时安排人员处理!详细情况如下:";
-            String format = "【%s】 %s 有效期至 %s";
+            String format = "【%s】有效期至 %s";
             StringJoiner content = new StringJoiner("<br />").add(headerString);
 
             HashMap<String, String> deptMap = new HashMap<>();//部门对应的推送人
             for (Map<String,Object> map : sjhcSqlList){
                 String deptId = map.get("bian_zhi_bu_men_").toString();
                 content = new StringJoiner("<br />").add(headerString);
-                String code = map.get("ID_").toString();
+                //String code = map.get("ID_").toString();
                 String name = map.get("ming_cheng_").toString();
                 String expDate = map.get("zhu_ce_zheng_you_").toString();
-                content.add(String.format(format,code,name,expDate));
+                //content.add(String.format(format,code,name,expDate));
+                content.add(String.format(format,name,expDate));
                 String routeString ="/mjwlgl/sjhcgl/sjhcjcsjpz";
                 List<String> receiver = new ArrayList<>();