Explorar o código

永诚修改货车报价

785834757 hai 1 ano
pai
achega
41a072db5e
Modificáronse 1 ficheiros con 25 adicións e 1 borrados
  1. 25 1
      src/main/java/com/ydtech/modules/ins/model/yc/ruote/Vhl.java

+ 25 - 1
src/main/java/com/ydtech/modules/ins/model/yc/ruote/Vhl.java

@@ -419,7 +419,31 @@ public class Vhl {
         vhl.setNResvNum1(StringUtils.toString(StringUtils.toInt(carInfo.getSeatCount()) - 1));
         //核定载客数   取的座位数
         vhl.setNSeatNum(carInfo.getSeatCount());
-        vhl.setCVhlTyp(StringUtils.toInt(vhl.getNSeatNum()) < 6 ? "337001" : "337002");
+
+        //车辆用于是否是 营业  非营业货运
+        if(carInfo.getVehicleUse().equals("04") || carInfo.getVehicleUse().equals("08")){
+            //货车
+            //2吨以下
+            if(Integer.parseInt(carInfo.getLimitLoad()) < 2000){
+                    vhl.setCVhlTyp("337006");
+            }
+            //2-5吨
+            if(Integer.parseInt(carInfo.getLimitLoad()) >= 2000 && Integer.parseInt(carInfo.getLimitLoad()) < 5000){
+                vhl.setCVhlTyp("337007");
+            }
+            //5-10吨
+            if(Integer.parseInt(carInfo.getLimitLoad()) >= 5000 && Integer.parseInt(carInfo.getLimitLoad()) < 10000){
+                vhl.setCVhlTyp("337008");
+            }
+            //10吨以上
+            if(Integer.parseInt(carInfo.getLimitLoad()) >= 10000){
+                vhl.setCVhlTyp("337009");
+            }
+        }else{
+            //客车
+            vhl.setCVhlTyp(StringUtils.toInt(vhl.getNSeatNum()) < 6 ? "337001" : "337002");
+        }
+
 //        //新旧车标志  0 新车,1 旧车
         vhl.setCNewMrk("1");
         //轿车