zrj
2024-07-11 6e4c8d00a3e745fdb910c2325840e3b88f634d21
skjcmanager/skjcmanager-service/skjcmanager-alerts/src/main/java/cn/gistack/alerts/notice/service/impl/NoticeHandle.java
@@ -37,6 +37,7 @@
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.util.Strings;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.DateUtil;
@@ -203,6 +204,9 @@
      if (!set.contains(tempStr)) {
         set.add(tempStr);
         String stcd = jsonArray.getJSONObject(i).getString("stcd");
         if (StringUtil.isBlank(stcd)) {
            stcd = jsonArray.getJSONObject(i).getString("rain_stcd");
         }
         if (StringUtil.isBlank(stcd)) {
            stcd = jsonArray.getJSONObject(i).getString("cd");
         }
@@ -923,6 +927,13 @@
      return null;
   }
   public Map<String, String> jsonObjectToMap(JSONObject jsonObject) {
      Map<String, String> map = new HashMap<>();
      for (String key : jsonObject.keySet()) {
         map.put(key, jsonObject.get(key).toString());
      }
      return map;
   }
   /**
    * 调用中台接口查询数据,返回结果不同处理
@@ -1349,7 +1360,7 @@
      }
      map.put("list", mapList);
      map.put("scenesId", smsRequestTemplate.getSmsTemplate().getTemplateId());
      String taskName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日HH:mm:ss")) + smsRequestTemplate.getAlarmRule().getRuleName() + "智能外呼";
      String taskName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日HH:mm:ss")) +"-"+ smsRequestTemplate.getAlarmRule().getRuleName() + "-智能外呼";
      map.put("taskName", taskName);
      String taskScheduleTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
      map.put("taskScheduleTime", taskScheduleTime);