江体小程序和zlb接口开发 #1

Merged
XiangZ merged 32 commits from feat/script_v1 into master 2026-05-10 09:06:35 +00:00
2 changed files with 2 additions and 9 deletions
Showing only changes of commit 4eeacf8c52 - Show all commits

View File

@@ -42,17 +42,11 @@ public class ZlbSiteTask extends BaseScheduleTaskTemplate {
protected TaskResult doExecute(Object validatedParams) {
TaskResult taskResult = new TaskResult();
//获取当前时间的后一天
Date date1 = DateUtils.addDate(new Date(), 1);
Date date2 = DateUtils.addDate(new Date(), 2);
Date date3 = DateUtils.addDate(new Date(), 3);
// 获取+2时间的场地信息,明天需要的是后天的场地信息
Date date1 = DateUtils.addDate(new Date(), 2);
String day1 = DateUtils.format(date1, DateUtils.ENUM_FORMAT_YMD);
String day2 = DateUtils.format(date2, DateUtils.ENUM_FORMAT_YMD);
String day3 = DateUtils.format(date3, DateUtils.ENUM_FORMAT_YMD);
try {
zlbService.queryZLbSiteInfo(day1, 1);
zlbService.queryZLbSiteInfo(day2, 1);
zlbService.queryZLbSiteInfo(day3, 1);
} catch (Exception e) {
log.error("site task error", e);
taskResult.setSuccess(false);

View File

@@ -126,7 +126,6 @@ public class ZlbServiceImpl implements ZlbService {
}
}
if (!zlbSiteInfoList.isEmpty()) {
zlbSiteInfoService.saveBatch(zlbSiteInfoList);
}
if (type.equals(1)) {