|
|
@@ -14,6 +14,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
import java.time.temporal.ChronoUnit;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
@@ -122,6 +124,16 @@ public class RuleAttrMappingVo {
|
|
|
//被保人 性别
|
|
|
ruleAttrMappingVoList.add(new RuleAttrMappingVo("InsuredSex", insuredPersonInfo.getGender().equals("男") ? "1" : "2"));
|
|
|
|
|
|
+ //2024-06-20 起保日期 月份判断
|
|
|
+ if(insOrders.getJqstartdate() != null){
|
|
|
+ LocalDateTime jqStartDate = LocalDateTime.parse(insOrders.getJqstartdate(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
+ ruleAttrMappingVoList.add(new RuleAttrMappingVo("JqStartMonth", String.valueOf(jqStartDate.getMonthValue())));
|
|
|
+ }
|
|
|
+ if(insOrders.getSystartdate() != null) {
|
|
|
+ LocalDateTime syStartDate = LocalDateTime.parse(insOrders.getSystartdate(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
+ ruleAttrMappingVoList.add(new RuleAttrMappingVo("SyStartMonth", String.valueOf(syStartDate.getMonthValue())));
|
|
|
+ }
|
|
|
+
|
|
|
List<KindInfoVo> kindInfoVos = insOrders.getKing().toJavaList(KindInfoVo.class);
|
|
|
//险别信息
|
|
|
kindInfoVos.forEach(kindInfoVo -> {
|