From d568a13497735d868a954fa467267412b1b34e9e Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Tue, 18 Apr 2023 10:58:40 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E8=AE=A1=E5=88=92=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hnac/hzims/message/schedule/MessagePushSchedule.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/schedule/MessagePushSchedule.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/schedule/MessagePushSchedule.java index db349be..97357e2 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/schedule/MessagePushSchedule.java +++ b/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 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); }); });