支持多选单选
continuous-integration/drone/push Build is passing Details

于相涌/mail
YXY 2 years ago
parent a7bdc61546
commit 3852edade8

@ -187,8 +187,16 @@ public class ApprovalCallbackOperate extends LarkAbstract {
list.add(userInfoDetail.getUser().getName()); list.add(userInfoDetail.getUser().getName());
} }
return String.join(",", list); return String.join(",", list);
} }else if (k.startsWith("##") && k.endsWith("${checkbox}")) {
if (k.startsWith("##")) { k = k.replace("##", "").replace("${checkbox}", "");
List<String> 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("##", ""); k = k.replace("##", "");
List<String> list = new ArrayList<>(); List<String> list = new ArrayList<>();
JSONArray jsonArray = record.getJSONArray(k); JSONArray jsonArray = record.getJSONArray(k);

Loading…
Cancel
Save