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