Эх сурвалжийг харах

车主投被保人是否一致 费用因子添加

785834757 1 жил өмнө
parent
commit
b1e05dacef

+ 15 - 0
src/main/java/com/ydtech/modules/fee/dto/vo/RuleAttrMappingVo.java

@@ -127,6 +127,21 @@ public class RuleAttrMappingVo {
         //被保人 性别
         ruleAttrMappingVoList.add(new RuleAttrMappingVo("InsuredSex", insuredPersonInfo.getGender().equals("男") ? "1" : "2"));
 
+        String OPIConsistent = "0";
+        //车主 投被保人是否一致
+        if((ownerInfo.getName().equals(insuredPersonInfo.getName()) && insuredPersonInfo.getName().equals(policyHolderInfo.getName())) &&
+                (ownerInfo.getIdentifyNumber().equals(insuredPersonInfo.getIdentifyNumber()) && insuredPersonInfo.getIdentifyNumber().equals(policyHolderInfo.getIdentifyNumber()))){
+            OPIConsistent = "1";
+        }
+        ruleAttrMappingVoList.add(new RuleAttrMappingVo("OPIConsistent",OPIConsistent));
+
+        String PIConsistent = "0";
+        //投被保人是否一致
+        if(insuredPersonInfo.getName().equals(policyHolderInfo.getName()) && insuredPersonInfo.getIdentifyNumber().equals(policyHolderInfo.getIdentifyNumber())){
+            PIConsistent = "1";
+        }
+        ruleAttrMappingVoList.add(new RuleAttrMappingVo("PIConsistent",PIConsistent));
+
         //2024-06-20 起保日期 月份判断
         if(insAreaCompany.getJqStartDate() != null && !insAreaCompany.getJqStartDate().equals("")){
             LocalDateTime jqStartDate = LocalDateTime.parse(insAreaCompany.getJqStartDate(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));