Commit 69a5ecedc20b870e961894448789e4f60bf66fc7

Authored by 徐烜
1 parent 477bfe43

修改调度日报修改车辆判定,需要过滤作废的车辆配置

src/main/java/com/bsth/service/schedule/impl/CarConfigInfoServiceImpl.java
@@ -133,6 +133,7 @@ public class CarConfigInfoServiceImpl extends BServiceImpl<CarConfigInfo, Long> @@ -133,6 +133,7 @@ public class CarConfigInfoServiceImpl extends BServiceImpl<CarConfigInfo, Long>
133 public void validate_cars(Integer xlId, Integer clId) throws ScheduleException { 133 public void validate_cars(Integer xlId, Integer clId) throws ScheduleException {
134 Map<String, Object> param = new HashMap<>(); 134 Map<String, Object> param = new HashMap<>();
135 param.put("cl.id_eq", clId); 135 param.put("cl.id_eq", clId);
  136 + param.put("isCancel_eq", false);
136 List<CarConfigInfo> carConfigInfos = list(param); 137 List<CarConfigInfo> carConfigInfos = list(param);
137 for (CarConfigInfo carConfigInfo : carConfigInfos) { 138 for (CarConfigInfo carConfigInfo : carConfigInfos) {
138 if (!carConfigInfo.getXl().getId().equals(xlId)) { 139 if (!carConfigInfo.getXl().getId().equals(xlId)) {
@@ -146,6 +147,7 @@ public class CarConfigInfoServiceImpl extends BServiceImpl&lt;CarConfigInfo, Long&gt; @@ -146,6 +147,7 @@ public class CarConfigInfoServiceImpl extends BServiceImpl&lt;CarConfigInfo, Long&gt;
146 Map<String, Object> param = new HashMap<>(); 147 Map<String, Object> param = new HashMap<>();
147 param.put("xl.id_eq", carConfigInfo.getXl().getId()); 148 param.put("xl.id_eq", carConfigInfo.getXl().getId());
148 param.put("cl.id_eq", carConfigInfo.getCl().getId()); 149 param.put("cl.id_eq", carConfigInfo.getCl().getId());
  150 + param.put("isCancel_eq", false);
149 List<CarConfigInfo> carConfigInfos = list(param); 151 List<CarConfigInfo> carConfigInfos = list(param);
150 if (CollectionUtils.isEmpty(carConfigInfos)) { 152 if (CollectionUtils.isEmpty(carConfigInfos)) {
151 throw new ScheduleException("当前车辆没有配置在当前线路中,不属于当前线路!"); 153 throw new ScheduleException("当前车辆没有配置在当前线路中,不属于当前线路!");