Commit 7845459752586038cbf42cbaad16ec7c5fef400b
1 parent
2c33fd45
update...
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/com/bsth/data/schedule/DayOfSchedule.java
| @@ -150,7 +150,7 @@ public class DayOfSchedule implements CommandLineRunner { | @@ -150,7 +150,7 @@ public class DayOfSchedule implements CommandLineRunner { | ||
| 150 | diff += (1000 * 60 * 60 * 24); | 150 | diff += (1000 * 60 * 60 * 24); |
| 151 | 151 | ||
| 152 | logger.info(diff / 1000 / 60 + "分钟之后提交到运管处"); | 152 | logger.info(diff / 1000 / 60 + "分钟之后提交到运管处"); |
| 153 | - //Application.mainServices.scheduleWithFixedDelay(submitToTrafficManage, diff / 1000, 60 * 60 * 24, TimeUnit.SECONDS); | 153 | + Application.mainServices.scheduleWithFixedDelay(submitToTrafficManage, diff / 1000, 60 * 60 * 24, TimeUnit.SECONDS); |
| 154 | 154 | ||
| 155 | //计算油、公里加注 | 155 | //计算油、公里加注 |
| 156 | Application.mainServices.scheduleWithFixedDelay(calcOilThread, diff / 1000, 60 * 60 * 24, TimeUnit.SECONDS); | 156 | Application.mainServices.scheduleWithFixedDelay(calcOilThread, diff / 1000, 60 * 60 * 24, TimeUnit.SECONDS); |
| @@ -418,6 +418,8 @@ public class DayOfSchedule implements CommandLineRunner { | @@ -418,6 +418,8 @@ public class DayOfSchedule implements CommandLineRunner { | ||
| 418 | while (itrab.hasNext()) { | 418 | while (itrab.hasNext()) { |
| 419 | sp = itrab.next(); | 419 | sp = itrab.next(); |
| 420 | sp.setSchedulePlan(null); | 420 | sp.setSchedulePlan(null); |
| 421 | + sp.setCreateBy(null); | ||
| 422 | + sp.setUpdateBy(null); | ||
| 421 | list.add(sp); | 423 | list.add(sp); |
| 422 | } | 424 | } |
| 423 | return list; | 425 | return list; |