飞书机器人提醒 动态消息模板-可读取列值进行替换
continuous-integration/drone/push Build is passing Details

于相涌/robot_optimize
YXY 2 years ago
parent 1f461c7702
commit ee31c4c19e

@ -189,7 +189,7 @@ public class ScheduledRemindersTask {
JSONObject record = new JSONObject(fields); JSONObject record = new JSONObject(fields);
String body = this.buildTemplate(templateContent, record, larkCompanyTableInfo,larkCompanyTableInfo.getId()); String body = this.buildTemplate(templateContent, record, larkCompanyTableInfo,larkCompanyTableInfo.getId());
robotRequest.setContent(body); robotRequest.setContent(body);
List<LinkedTreeMap<String, String>> people = (List<LinkedTreeMap<String, String>>) fields.get("业务员"); List<LinkedTreeMap<String, String>> people = (List<LinkedTreeMap<String, String>>) fields.get("任课老师");
for (int i = 0; i < people.size(); i++) { for (int i = 0; i < people.size(); i++) {
LinkedTreeMap<String, String> detail = people.get(i); LinkedTreeMap<String, String> detail = people.get(i);
robotRequest.setReceiveId(detail.get("id")); robotRequest.setReceiveId(detail.get("id"));

Loading…
Cancel
Save