Преглед на файлове

ias 车籍校验修改

master
chenchaod преди 2 месеца
родител
ревизия
7eda3749c5
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4
    2
      zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/order/OrderInitManager.java

+ 4
- 2
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/order/OrderInitManager.java Целия файл

@@ -233,8 +233,10 @@ public class OrderInitManager extends AbstractOrderManager<OrderInitRequest> {
if (product == null || promotion == null) {
throw newBusinessException("当前选择的产品不存在");
}
String vehicleRegion = request.getVehiclePlate().substring(0, 1);
throwBisExceptionOn(hasText(product.getVehiclePalce()) && !product.getVehiclePalce().contains(vehicleRegion), "超出当前产品的车籍范围");
if (hasText(product.getVehiclePalce())) {
String vehicleRegion = request.getVehiclePlate().substring(0, 1);
throwBisExceptionOn(hasText(product.getVehiclePalce()) && !product.getVehiclePalce().contains(vehicleRegion), "超出当前产品的车籍范围");
}
throwBisExceptionOn(!EnableStatus.ENABLE.equals(product.getStatus()) || !EnableStatus.ENABLE.equals(promotion.getStatus()), "当前选择的产品未上架");
throwBisExceptionOn(!product.getVanType().contains(request.getVanType().toString()), "当前选择的产品与车辆类型不符");
throwBisExceptionOn(!request.getOrgCode().equals(MyFinals.QTZL_AGENCY_ID) && (!request.getAgentId().equals(request.getOrgCode())

Loading…
Отказ
Запис