|
|
|
@ -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()));
|
|
|
|
|