Przeglądaj źródła

渤海调整驾意险份数的bug

785834757 2 miesięcy temu
rodzic
commit
e26c0a25f8

+ 9 - 0
src/main/java/com/ydtech/modules/order/entity/InsAreaCompanyAccidentalDriving.java

@@ -1,5 +1,7 @@
 package com.ydtech.modules.order.entity;
 
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
@@ -132,6 +134,13 @@ public class InsAreaCompanyAccidentalDriving implements Serializable {
             this.setRideRiskCode(jsonObject.getString("productname"));
             this.setQuantity(jsonObject.getInteger("num"));
             this.setCompanyId(t.getCompanyId());
+        }else if(t.getCompanyId().equals("BPIC1000000")){
+            // 渤海
+            JSONObject jsonObject = JSONArray.parseArray(JSON.toJSONString(t.getAccidentalDrivingVo())).getJSONObject(0);
+            this.setRideRiskCode(jsonObject.getString("comboCode"));
+            this.setRideRiskCode(jsonObject.getString("comboName"));
+            this.setQuantity(jsonObject.getInteger("count"));
+            this.setCompanyId(t.getCompanyId());
         }
     }
 }