|
@@ -11,8 +11,10 @@ import com.ydtech.constants.enums.InsuranceRisk;
|
|
|
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;
|
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
|
-import com.ydtech.modules.order.entity.api.guoren.constants.*;
|
|
|
|
|
-import com.ydtech.modules.order.entity.api.zijin.request.CalculatePremiumRequest;
|
|
|
|
|
|
|
+import com.ydtech.modules.order.entity.api.guoren.constants.BaseTaxation;
|
|
|
|
|
+import com.ydtech.modules.order.entity.api.guoren.constants.ClauseTypeSystem;
|
|
|
|
|
+import com.ydtech.modules.order.entity.api.guoren.constants.FuelType;
|
|
|
|
|
+import com.ydtech.modules.order.entity.api.guoren.constants.RelifReason;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
import com.ydtech.modules.order.entity.vo.VehicleAndVesselTax;
|
|
import com.ydtech.modules.order.entity.vo.VehicleAndVesselTax;
|
|
|
import com.ydtech.modules.order.entity.vo.guoren.GuoRenSpecialAgreementVo;
|
|
import com.ydtech.modules.order.entity.vo.guoren.GuoRenSpecialAgreementVo;
|
|
@@ -63,7 +65,7 @@ public class PremiumReq {
|
|
|
* @date: 2023年08月14日 0014
|
|
* @date: 2023年08月14日 0014
|
|
|
*/
|
|
*/
|
|
|
@JsonIgnore
|
|
@JsonIgnore
|
|
|
- public static PremiumReq buildQuoteParam(BaseQuoteInfoVo yaQuoteInfoVo, CarPriceResp.DataDTO carPriceResult,
|
|
|
|
|
|
|
+ public static PremiumReq buildQuoteParam(BaseQuoteInfoVo yaQuoteInfoVo, CarPriceResp.DataDTO carPriceResult,
|
|
|
VinQueryResp.DataDTO vinQ, boolean isNoCar,
|
|
VinQueryResp.DataDTO vinQ, boolean isNoCar,
|
|
|
List<GuoRenSpecialAgreementVo> specialAgreementVo) {
|
|
List<GuoRenSpecialAgreementVo> specialAgreementVo) {
|
|
|
|
|
|
|
@@ -119,8 +121,7 @@ public class PremiumReq {
|
|
|
*/
|
|
*/
|
|
|
@JsonIgnore
|
|
@JsonIgnore
|
|
|
public static CiDTO buildCiDto(VehicleAndVesselTax vehicleAndVesselTax, CustomerInfoVo ownerInfo, RiskInfoVo ciRiskInfo,
|
|
public static CiDTO buildCiDto(VehicleAndVesselTax vehicleAndVesselTax, CustomerInfoVo ownerInfo, RiskInfoVo ciRiskInfo,
|
|
|
- boolean isNoCar,
|
|
|
|
|
- List<GuoRenSpecialAgreementVo> specialAgreementVo) {
|
|
|
|
|
|
|
+ boolean isNoCar, List<GuoRenSpecialAgreementVo> specialAgreementVo) {
|
|
|
CiDTO ciDto = new CiDTO();
|
|
CiDTO ciDto = new CiDTO();
|
|
|
ciDto.setPrpTrenewal(new ArrayList<>());
|
|
ciDto.setPrpTrenewal(new ArrayList<>());
|
|
|
ciDto.setPrpTmainRate(new CiDTO.PrpTmainRateDTO());
|
|
ciDto.setPrpTmainRate(new CiDTO.PrpTmainRateDTO());
|
|
@@ -870,7 +871,7 @@ public class PremiumReq {
|
|
|
this.taxRelifFlag = flag.getCode();
|
|
this.taxRelifFlag = flag.getCode();
|
|
|
|
|
|
|
|
//返回空
|
|
//返回空
|
|
|
- if(!"".equals(vehicleAndVesselTax.getRelifReason())) {
|
|
|
|
|
|
|
+ if (!"".equals(vehicleAndVesselTax.getRelifReason())) {
|
|
|
RelifReason reason = Enum.valueOf(RelifReason.class, RelifReason.TITLE + vehicleAndVesselTax.getRelifReason());
|
|
RelifReason reason = Enum.valueOf(RelifReason.class, RelifReason.TITLE + vehicleAndVesselTax.getRelifReason());
|
|
|
this.relifReason = reason.getCode();
|
|
this.relifReason = reason.getCode();
|
|
|
|
|
|
|
@@ -888,7 +889,6 @@ public class PremiumReq {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
this.paidFreeCertificate = vehicleAndVesselTax.getPaidFreeCertificate();
|
|
this.paidFreeCertificate = vehicleAndVesselTax.getPaidFreeCertificate();
|
|
|
this.taxComName = vehicleAndVesselTax.getTaxComName();
|
|
this.taxComName = vehicleAndVesselTax.getTaxComName();
|
|
|
this.taxComCode = vehicleAndVesselTax.getTaxComCode();
|
|
this.taxComCode = vehicleAndVesselTax.getTaxComCode();
|
|
@@ -1067,7 +1067,7 @@ public class PremiumReq {
|
|
|
this.getPrpTmain().setImmeValiFlag("1");
|
|
this.getPrpTmain().setImmeValiFlag("1");
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- LocalDateTime end = start.plusYears(1L).minusDays(1L);;
|
|
|
|
|
|
|
+ LocalDateTime end = start.plusYears(1L).minusDays(1L);
|
|
|
newStartDate = DateTimeUtil.getStartTimeOfDayStr(start, DateTimeUtil.DATETIME_PATTERN);
|
|
newStartDate = DateTimeUtil.getStartTimeOfDayStr(start, DateTimeUtil.DATETIME_PATTERN);
|
|
|
newEndDate = DateTimeUtil.getEndTimeOfDayStr(end, DateTimeUtil.DATETIME_PATTERN);
|
|
newEndDate = DateTimeUtil.getEndTimeOfDayStr(end, DateTimeUtil.DATETIME_PATTERN);
|
|
|
}
|
|
}
|