Commit 066c105c authored by 周健威's avatar 周健威

Merge remote-tracking branch 'origin/dev' into dev

parents 5297afde 6f77fa6d
...@@ -87,7 +87,6 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh ...@@ -87,7 +87,6 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
* *
* @return * @return
*/ */
@Scheduled(cron = "59 59 23 * * ?")
public void addAll() { public void addAll() {
Long nowTime = getDayStart(); Long nowTime = getDayStart();
Long lastTime = nowTime + 24 * 3600 * 1000 - 1; Long lastTime = nowTime + 24 * 3600 * 1000 - 1;
...@@ -226,6 +225,7 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh ...@@ -226,6 +225,7 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
* *
* @return * @return
*/ */
@Scheduled(cron = "0 0 2 * * ?")
public void add() { public void add() {
Long nowTime = getDayStart(); Long nowTime = getDayStart();
Long lastTime = nowTime + 24 * 3600 * 1000 - 1; Long lastTime = nowTime + 24 * 3600 * 1000 - 1;
......
...@@ -23,7 +23,7 @@ public class VehicleCountRecordController { ...@@ -23,7 +23,7 @@ public class VehicleCountRecordController {
@GetMapping("/app/unauth/test") @GetMapping("/app/unauth/test")
@ResponseBody @ResponseBody
public ObjectRestResponse add() { public ObjectRestResponse add() {
vehicleCountRecordBiz.add(); vehicleCountRecordBiz.addAll();
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
and type = #{type} and type = #{type}
</if> </if>
<if test="startTime != null"> <if test="startTime != null">
and count_date &gt;= #{startTime} and count_date &lt;= #{endTime} and count_date = #{startTime}
</if> </if>
</where> </where>
order by id DESC order by id DESC
......
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