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

于相涌/robot_optimize
YXY 1 year ago
parent 6529b45716
commit cc094ec010

@ -78,8 +78,8 @@ public class ScheduledRemindersTask {
return;
}
List<EventLog> logList = new ArrayList<>();
LocalDateTime now = LocalDateTime.now();
// LocalDateTime now = LocalDateTime.of(2023, 4, 24, 8, 30);
// LocalDateTime now = LocalDateTime.now();
LocalDateTime now = LocalDateTime.of(2023, 5, 7, 15, 10);
for (LarkCompanyTableInfo larkCompanyTableInfo : larkList) {
try {
List<LarkTableConfiguration> larkConfiguration = this.getLarkConfiguration(larkCompanyTableInfo);
@ -140,10 +140,6 @@ public class ScheduledRemindersTask {
for (AppTableRecord item : items) {
try {
Map<String, Object> fields = item.getFields();
LocalDateTime localDateTime = changeLocalDateTime(fields.get(RANGE_KEY),larkTableConfiguration);
if ((localDateTime.getHour() == now.getHour()) && localDateTime.getMinute() == now.getMinute()) {
continue;
}
msg = this.buildMsg(larkCompanyTableInfo, fields, template);
logList.add(new EventLog(larkCompanyTableInfo.getId(), EventOperateType.SCHEDULE_REMINDER.getCode(), msg.toString()));

Loading…
Cancel
Save