Commit 1fed235c0af27d57272a2cb603a2489bffdde67f

Authored by 徐烜
1 parent 70ada0b2

设备信息输入设备编号,新的编号验证重复只查未报废的车辆

src/main/java/com/bsth/service/schedule/impl/CarsServiceImpl.java
@@ -89,6 +89,7 @@ public class CarsServiceImpl extends BServiceImpl<Cars, Integer> implements Cars @@ -89,6 +89,7 @@ public class CarsServiceImpl extends BServiceImpl<Cars, Integer> implements Cars
89 if (cars.getId() != null) { 89 if (cars.getId() != null) {
90 param.put("id_ne", cars.getId()); 90 param.put("id_ne", cars.getId());
91 } 91 }
  92 + param.put("scrapState_eq", false);
92 param.put("equipmentCode_eq", cars.getEquipmentCode()); 93 param.put("equipmentCode_eq", cars.getEquipmentCode());
93 if (!CollectionUtils.isEmpty(list(param))) { 94 if (!CollectionUtils.isEmpty(list(param))) {
94 throw new ScheduleException("设备编号重复"); 95 throw new ScheduleException("设备编号重复");