Commit 96cec0759477f6c4c5165de2136771ee3fa098de

Authored by 王通
2 parents 6400c4cc 69a5eced

Merge branch 'pudong' of http://192.168.168.201:8888/panzhaov5/bsth_control.git into pudong

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("当前车辆没有配置在当前线路中,不属于当前线路!");
... ...