소스 검색

诚泰驾意险处理

785834757 2 년 전
부모
커밋
bf5f192600
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      src/main/java/com/ydtech/modules/order/entity/InsAreaCompanyAccidentalDriving.java

+ 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"));
+                }
     }
 }