feat:场地信息拉取
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -126,7 +126,6 @@ public class ZlbServiceImpl implements ZlbService {
|
||||
}
|
||||
}
|
||||
if (!zlbSiteInfoList.isEmpty()) {
|
||||
|
||||
zlbSiteInfoService.saveBatch(zlbSiteInfoList);
|
||||
}
|
||||
if (type.equals(1)) {
|
||||
|
||||
Reference in New Issue
Block a user