|
|
@@ -371,8 +371,10 @@ public class Base {
|
|
|
}
|
|
|
|
|
|
if (null != biRiskInfo) {
|
|
|
- base.setTInsrncBgnTmSY(biRiskInfo.getStartDate());
|
|
|
- base.setTInsrncEndTmSY(biRiskInfo.getEndDate());
|
|
|
+ CarInsDateDto bidd = base.buildInsDate(ciRiskInfo.getStartDate(), ciRiskInfo.getEndDate());
|
|
|
+ base.setTInsrncBgnTmSY(bidd.getStartDate());
|
|
|
+ base.setTInsrncEndTmSY(bidd.getEndDate());
|
|
|
+
|
|
|
base.setAppSYFlag("Y");
|
|
|
if("1,2,3,".contains(carInfo.getEnergyType())){
|
|
|
//新能源险种拼装
|
|
|
@@ -411,6 +413,10 @@ public class Base {
|
|
|
} else {
|
|
|
cidd.setStartDate(startDate);
|
|
|
cidd.setEndDate(endDate);
|
|
|
+ LocalDateTime sEndDateTime = DateTimeUtil.parseLocalDateTime(startDate, DateTimeUtil.DATETIME_PATTERN);
|
|
|
+ sEndDateTime = sEndDateTime.plusYears(1).minusSeconds(1);
|
|
|
+
|
|
|
+ cidd.setEndDate(DateTimeUtil.format(sEndDateTime, "yyyy-MM-dd HH:mm:ss"));
|
|
|
|
|
|
}
|
|
|
return cidd;
|