Răsfoiți Sursa

诚泰驾意险处理

785834757 1 an în urmă
părinte
comite
bf5f192600

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

@@ -97,6 +97,14 @@ public class InsAreaCompanyAccidentalDriving implements Serializable {
                 this.setQuantity(jsonObject.getInteger("quantity"));
                 this.setRideRiskCode(jsonObject.getString("productCode"));
                 this.setCompanyId(t.getCompanyId());
-            }
+            }else
+                //诚泰
+                if(t.getCompanyId().equals("CHAC1000000")){
+                    JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(t.getAccidentalDrivingVo()));
+                    this.setRideRiskCode(jsonObject.getString("planCode"));
+                    this.setQuantity(1);
+                    this.setCompanyId(t.getCompanyId());
+                    this.setRideRiskName(jsonObject.getString("name"));
+                }
     }
 }