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