Commit 7f330af3 authored by lisong's avatar lisong

修改车辆里程切分定时任务bug

parent 4d5abe97
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
FROM FROM
`wl_car_mileage` wcm `wl_car_mileage` wcm
WHERE WHERE
wcm.date = DATE_FORMAT( NOW( ), '%Y-%m-%d' ) wcm.date = DATE_SUB(CURDATE(), INTERVAL 1 DAY)
AND wcm.start_time IS NOT NULL AND wcm.start_time IS NOT NULL
AND wcm.end_time IS NULL AND wcm.end_time IS NULL
</select> </select>
......
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