Browse Source

# 计划推送消息接口修改

zhongwei
haungxing 2 years ago
parent
commit
d568a13497
  1. 6
      hzims-service/message/src/main/java/com/hnac/hzims/message/schedule/MessagePushSchedule.java

6
hzims-service/message/src/main/java/com/hnac/hzims/message/schedule/MessagePushSchedule.java

@ -114,9 +114,9 @@ public class MessagePushSchedule {
}
else if(MessageConstants.SMS_PUSH.equals(type)) {
Map<String,String> params = new HashMap<>();
list.stream().map(MessagePushRecordEntity::getContent).forEachOrdered(record -> {
JSONObject param = JSONObject.parseObject(record);
param.forEach((k,v) -> {
list.stream().map(MessagePushRecordEntity::getSmsParam).forEachOrdered(param -> {
JSONObject paramJson = JSONObject.parseObject(param);
paramJson.forEach((k,v) -> {
params.put(k, params.containsKey(k) && Func.isNotEmpty(params.get(k)) ? params.get(k) + "," + v : (String) v);
});
});

Loading…
Cancel
Save