From 3852edade803202120fd26e0ba9d40fc82a6280f Mon Sep 17 00:00:00 2001 From: YXY <932687738@qq.com> Date: Tue, 21 Mar 2023 23:03:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=E9=80=89=E5=8D=95?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../strategy/operate/ApprovalCallbackOperate.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/strategy/operate/ApprovalCallbackOperate.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/strategy/operate/ApprovalCallbackOperate.java index 1f26fec..01fd48f 100644 --- a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/strategy/operate/ApprovalCallbackOperate.java +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/strategy/operate/ApprovalCallbackOperate.java @@ -187,8 +187,16 @@ public class ApprovalCallbackOperate extends LarkAbstract { list.add(userInfoDetail.getUser().getName()); } return String.join(",", list); - } - if (k.startsWith("##")) { + }else if (k.startsWith("##") && k.endsWith("${checkbox}")) { + k = k.replace("##", "").replace("${checkbox}", ""); + List list = new ArrayList<>(); + JSONArray jsonArray = record.getJSONArray(k); + for (int i = 0; i < jsonArray.size(); i++) { + String param = jsonArray.getString(i); + list.add(param); + } + return list; + }else if (k.startsWith("##")) { k = k.replace("##", ""); List list = new ArrayList<>(); JSONArray jsonArray = record.getJSONArray(k);