|
@@ -4,6 +4,7 @@ import cn.hutool.core.util.ArrayUtil;
|
|
|
import cn.hutool.core.util.IdcardUtil;
|
|
import cn.hutool.core.util.IdcardUtil;
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
|
|
|
+import com.ydtech.constants.enums.InsuranceRisk;
|
|
|
import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.KindInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.KindInfoVo;
|
|
@@ -233,46 +234,34 @@ public class YangGuangAccuracyCalculateRequest extends YangGuangBaseRequest{
|
|
|
this.TongxinNo = ygConfigureParameters.getTongxinNo() == null ? "" : ygConfigureParameters.getTongxinNo();
|
|
this.TongxinNo = ygConfigureParameters.getTongxinNo() == null ? "" : ygConfigureParameters.getTongxinNo();
|
|
|
this.InfotransNo = getInfotransNo();
|
|
this.InfotransNo = getInfotransNo();
|
|
|
this.Modelinfoid = carmodellist.getModelinfoid();
|
|
this.Modelinfoid = carmodellist.getModelinfoid();
|
|
|
- LocalDateTime startTime = LocalDateTime.parse(startDate, formatter);
|
|
|
|
|
- LocalDateTime endTime = startTime.plusYears(1).with(LocalTime.MIDNIGHT).minusSeconds(1);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ List<RiskInfoVo> riskList = quoteInfoVo.getRiskList();
|
|
|
|
|
+ for (RiskInfoVo riskInfo : riskList) {
|
|
|
|
|
+ if(InsuranceRisk.BUSINESS_CODE.equals(riskInfo.getRiskCode())) {
|
|
|
|
|
+ LocalDateTime biStartTime = LocalDateTime.parse(riskInfo.getStartDate(), formatter);
|
|
|
|
|
+ LocalDateTime biEndTime = LocalDateTime.parse(riskInfo.getEndDate(), formatter);
|
|
|
|
|
+ this.BiStartDate = biStartTime.format(formatter);
|
|
|
|
|
+ this.BiEndDate = biEndTime.format(formatter);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (InsuranceRisk.TRAFFIC_CODE.equals(riskInfo.getRiskCode())) {
|
|
|
|
|
+ LocalDateTime ciStartTime = LocalDateTime.parse(riskInfo.getStartDate(), formatter);
|
|
|
|
|
+ LocalDateTime ciEndTime = LocalDateTime.parse(riskInfo.getEndDate(), formatter);
|
|
|
|
|
+ this.CiStartDate = ciStartTime.format(formatter);
|
|
|
|
|
+ this.CiEndDate = ciEndTime.format(formatter);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (riskInfoVo.getInstantFlag().equals("1")) {
|
|
|
|
|
+ this.BiImmediateFlag = "1";
|
|
|
|
|
+ this.CiImmediateFlag = "1";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.BiImmediateFlag = "0";
|
|
|
|
|
+ this.CiImmediateFlag = "0";
|
|
|
|
|
+ }
|
|
|
if (quoteInfoVo.getProductId().equals("034001") || quoteInfoVo.getProductId().equals("034002")) {
|
|
if (quoteInfoVo.getProductId().equals("034001") || quoteInfoVo.getProductId().equals("034002")) {
|
|
|
- this.BiStartDate = startTime.format(formatter);
|
|
|
|
|
- this.BiEndDate = endTime.format(formatter);
|
|
|
|
|
- this.CiStartDate = "";
|
|
|
|
|
- this.CiEndDate = "";
|
|
|
|
|
this.PolicyType = "1";
|
|
this.PolicyType = "1";
|
|
|
- this.CiImmediateFlag = "0";
|
|
|
|
|
- if (riskInfoVo.getInstantFlag().equals("1")) {
|
|
|
|
|
- this.BiImmediateFlag = "1";
|
|
|
|
|
- } else {
|
|
|
|
|
- this.BiImmediateFlag = "0";
|
|
|
|
|
- }
|
|
|
|
|
} else if (quoteInfoVo.getProductId().equals("0330")) {
|
|
} else if (quoteInfoVo.getProductId().equals("0330")) {
|
|
|
- this.CiStartDate = startTime.format(formatter);
|
|
|
|
|
- this.CiEndDate = endTime.format(formatter);
|
|
|
|
|
- this.BiStartDate = "";
|
|
|
|
|
- this.BiEndDate = "";
|
|
|
|
|
this.PolicyType = "2";
|
|
this.PolicyType = "2";
|
|
|
- this.BiImmediateFlag = "0";
|
|
|
|
|
- if (riskInfoVo.getInstantFlag().equals("1")) {
|
|
|
|
|
- this.CiImmediateFlag = "1";
|
|
|
|
|
- } else {
|
|
|
|
|
- this.CiImmediateFlag = "0";
|
|
|
|
|
- }
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- this.CiStartDate = startTime.format(formatter);
|
|
|
|
|
- this.CiEndDate = endTime.format(formatter);
|
|
|
|
|
- this.BiStartDate = startTime.toString();
|
|
|
|
|
- this.BiEndDate = endTime.toString();
|
|
|
|
|
this.PolicyType = "3";
|
|
this.PolicyType = "3";
|
|
|
- if (riskInfoVo.getInstantFlag().equals("1")) {
|
|
|
|
|
- this.CiImmediateFlag = "1";
|
|
|
|
|
- this.BiImmediateFlag = "1";
|
|
|
|
|
- } else {
|
|
|
|
|
- this.CiImmediateFlag = "0";
|
|
|
|
|
- this.BiImmediateFlag = "0";
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
this.IsCreateEpolicyJQ = "1";
|
|
this.IsCreateEpolicyJQ = "1";
|
|
|
this.ArgueSolution = "1";
|
|
this.ArgueSolution = "1";
|