Sfoglia il codice sorgente

处理国任 车主约定特约

785834757 1 anno fa
parent
commit
d7151d4f06

+ 9 - 0
src/main/java/com/ydtech/modules/ins/model/guoren/PremiumReq.java

@@ -80,6 +80,15 @@ public class PremiumReq {
         PremiumReq quoteReq = new PremiumReq();
         VehicleAndVesselTax vehicleAndVesselTax = yaQuoteInfoVo.getVehicleAndVesselTax();
 
+        //处理车主约定特约
+        specialAgreementVo.forEach(item->{
+            if("T0028".equals(item.getClauseCode())){
+                String replace = item.getClausesContext().replaceFirst("_", yaQuoteInfoVo.getInsuredPersonInfo().getName());
+                replace = replace.replaceFirst("_",yaQuoteInfoVo.getOwnerInfo().getName());
+                item.setClausesContext(replace);
+            }
+        });
+
         riskList.forEach(a -> {
             if (a.getRiskCode().equals(InsuranceRisk.TRAFFIC_CODE)) {
                 List<GuoRenSpecialAgreementVo> trafficSpecialAgreement =