Commit 9e7255d7bffd386f80d09fae242656a6a3cd2770
1 parent
e86195b1
update...
Showing
2 changed files
with
15 additions
and
13 deletions
src/main/java/com/bsth/data/schedule/late_adjust/LateAdjustHandle.java
| ... | ... | @@ -49,8 +49,8 @@ public class LateAdjustHandle implements ApplicationContextAware{ |
| 49 | 49 | */ |
| 50 | 50 | public static void putLate(ScheduleRealInfo sch){ |
| 51 | 51 | try { |
| 52 | - //进出场班次不需要 | |
| 53 | - if(sch.getBcType().equals("in") || sch.getBcType().equals("out")) | |
| 52 | + //出场班次不需要 | |
| 53 | + if(/*sch.getBcType().equals("in") || */sch.getBcType().equals("out")) | |
| 54 | 54 | return; |
| 55 | 55 | //线路配置 |
| 56 | 56 | LineConfig config = lineConfigData.get(sch.getXlBm()); | ... | ... |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| ... | ... | @@ -283,10 +283,10 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 283 | 283 | //重新计算是否误点 |
| 284 | 284 | schedule.reCalcLate(); |
| 285 | 285 | //取消应发未到标记,不再自动调整待发 |
| 286 | - if(schedule.isLate2()){ | |
| 287 | - schedule.setLate2(false); | |
| 288 | - LateAdjustHandle.remove(schedule); | |
| 289 | - } | |
| 286 | + //if(schedule.isLate2()){ | |
| 287 | + // schedule.setLate2(false); | |
| 288 | + LateAdjustHandle.remove(schedule); | |
| 289 | + //} | |
| 290 | 290 | |
| 291 | 291 | try { |
| 292 | 292 | if(!schedule.getDirectiveState().equals(-1) && schedule.getStatus()==0){ |
| ... | ... | @@ -1196,11 +1196,11 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1196 | 1196 | sch.setFcsjActualAll(fcsjActual); |
| 1197 | 1197 | sch.addRemarks(remarks); |
| 1198 | 1198 | sch.calcStatus(); |
| 1199 | - if(sch.isLate2()){ | |
| 1199 | + //if(sch.isLate2()){ | |
| 1200 | 1200 | //取消应发未到标记 |
| 1201 | - sch.setLate2(false); | |
| 1202 | - LateAdjustHandle.remove(sch); | |
| 1203 | - } | |
| 1201 | + // sch.setLate2(false); | |
| 1202 | + LateAdjustHandle.remove(sch); | |
| 1203 | + //} | |
| 1204 | 1204 | |
| 1205 | 1205 | dayOfSchedule.save(sch); |
| 1206 | 1206 | |
| ... | ... | @@ -1427,10 +1427,10 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1427 | 1427 | fLog.log("调整实发时间", sch.getFcsjActual(), fcsjActual); |
| 1428 | 1428 | sch.setFcsjActualAll(t); |
| 1429 | 1429 | //取消应发未到标记 |
| 1430 | - if(sch.isLate2()){ | |
| 1431 | - sch.setLate2(false); | |
| 1430 | + //if(sch.isLate2()){ | |
| 1431 | + // sch.setLate2(false); | |
| 1432 | 1432 | LateAdjustHandle.remove(sch); |
| 1433 | - } | |
| 1433 | + //} | |
| 1434 | 1434 | } else if (StringUtils.isNotEmpty(sch.getFcsjActual()) && StringUtils.isEmpty(fcsjActual)){ |
| 1435 | 1435 | fLog.log("撤销实发时间", sch.getFcsjActual(), ""); |
| 1436 | 1436 | //撤销实发 |
| ... | ... | @@ -1459,6 +1459,8 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1459 | 1459 | |
| 1460 | 1460 | //重新计算车辆执行班次 |
| 1461 | 1461 | dayOfSchedule.reCalcExecPlan(sch.getClZbh()); |
| 1462 | + //取消应发未到标记 | |
| 1463 | + LateAdjustHandle.remove(sch); | |
| 1462 | 1464 | } else if(StringUtils.isNotEmpty(sch.getZdsjActual()) && StringUtils.isEmpty(zdsjActual)){ |
| 1463 | 1465 | //清除实达时间 |
| 1464 | 1466 | fLog.log("撤销实达时间", sch.getZdsjActual(), ""); | ... | ... |