Commit e2ff0cf5 authored by lisong's avatar lisong

修改bug

parent c61c8e08
...@@ -242,7 +242,9 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto ...@@ -242,7 +242,9 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
Date date = new Date();//取时间 Date date = new Date();//取时间
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
calendar.setTime(date); calendar.setTime(date);
//这个时间就是日期往后推一天的结果 // 设置同步时间为当前日期前两天(解决定时任务覆盖问题)
calendar.setTime(date);
calendar.add(Calendar.DATE, -2);
date = calendar.getTime(); date = calendar.getTime();
LambdaQueryWrapper<CylinderUnit> lambda = new QueryWrapper<CylinderUnit>().lambda(); LambdaQueryWrapper<CylinderUnit> lambda = new QueryWrapper<CylinderUnit>().lambda();
List<CylinderUnit> cylinderUnits = cylinderUnitMapper.selectList(lambda); List<CylinderUnit> cylinderUnits = cylinderUnitMapper.selectList(lambda);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment