|
@@ -286,7 +286,7 @@ public class YangGuangAccuracyCalculateRequest extends YangGuangBaseRequest{
|
|
|
this.NonVehicleProductInformationList = quoteVo.getAccidentalDrivingVo().stream().map(NonVehicleProductInformationListDTO::new).collect(Collectors.toList());
|
|
this.NonVehicleProductInformationList = quoteVo.getAccidentalDrivingVo().stream().map(NonVehicleProductInformationListDTO::new).collect(Collectors.toList());
|
|
|
this.CasualtyFlag = "1";
|
|
this.CasualtyFlag = "1";
|
|
|
}
|
|
}
|
|
|
- this.carshipyTaxInfo = new CarshipyTaxInfoDTO(quoteInfoVo.getVehicleAndVesselTax(),riskInfoVo);
|
|
|
|
|
|
|
+ this.carshipyTaxInfo = new CarshipyTaxInfoDTO(quoteInfoVo.getVehicleAndVesselTax(),riskInfoVo,quoteInfoVo.getOwnerInfo());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static List<NonVehicleProductInformationListDTO> toCarPolicySubInfoListDTO(List<YgQuoteAccidentVo> ygQuoteAccidentVos) {
|
|
public static List<NonVehicleProductInformationListDTO> toCarPolicySubInfoListDTO(List<YgQuoteAccidentVo> ygQuoteAccidentVos) {
|
|
@@ -397,21 +397,17 @@ public class YangGuangAccuracyCalculateRequest extends YangGuangBaseRequest{
|
|
|
this.Name = policyHolderInfo.getName();
|
|
this.Name = policyHolderInfo.getName();
|
|
|
this.Mobile = policyHolderInfo.getMobile();
|
|
this.Mobile = policyHolderInfo.getMobile();
|
|
|
this.PostAddress = policyHolderInfo.getAddr();
|
|
this.PostAddress = policyHolderInfo.getAddr();
|
|
|
- int sex = IdcardUtil.getGenderByIdCard(policyHolderInfo.getIdentifyNumber());
|
|
|
|
|
- this.Gender = sex == 1 ? "1" : "2";
|
|
|
|
|
- this.IdentifyUseFullifeStart = policyHolderInfo.getIdentifyValidDate();
|
|
|
|
|
this.IdentifyUseFullife = policyHolderInfo.getIdentifyValidEndDate();
|
|
this.IdentifyUseFullife = policyHolderInfo.getIdentifyValidEndDate();
|
|
|
if (policyHolderInfo.getProperty() != null && policyHolderInfo.getProperty().equals("1")) {
|
|
if (policyHolderInfo.getProperty() != null && policyHolderInfo.getProperty().equals("1")) {
|
|
|
this.InsuredType = "1";
|
|
this.InsuredType = "1";
|
|
|
this.IdentifyType = "01";
|
|
this.IdentifyType = "01";
|
|
|
this.IdentifyNumber = policyHolderInfo.getIdentifyNumber();
|
|
this.IdentifyNumber = policyHolderInfo.getIdentifyNumber();
|
|
|
- } else if (policyHolderInfo.getProperty() != null && policyHolderInfo.getProperty().equals("2")) {
|
|
|
|
|
- this.IdentifyType = "09";
|
|
|
|
|
- this.InsuredType = "2";
|
|
|
|
|
- this.IdentifyNumber = policyHolderInfo.getOrganizationCode();
|
|
|
|
|
- } else if (policyHolderInfo.getProperty() != null && policyHolderInfo.getProperty().equals("3")) {
|
|
|
|
|
|
|
+ int sex = IdcardUtil.getGenderByIdCard(policyHolderInfo.getIdentifyNumber());
|
|
|
|
|
+ this.Gender = sex == 1 ? "1" : "2";
|
|
|
|
|
+ this.IdentifyUseFullifeStart = policyHolderInfo.getIdentifyValidDate();
|
|
|
|
|
+ } else if (policyHolderInfo.getProperty() != null && policyHolderInfo.getProperty().equals("0")) {
|
|
|
this.InsuredType = "2";
|
|
this.InsuredType = "2";
|
|
|
- this.IdentifyType = "99";
|
|
|
|
|
|
|
+ this.IdentifyType = "09";
|
|
|
this.IdentifyNumber = policyHolderInfo.getOrganizationCode();
|
|
this.IdentifyNumber = policyHolderInfo.getOrganizationCode();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -503,16 +499,11 @@ public class YangGuangAccuracyCalculateRequest extends YangGuangBaseRequest{
|
|
|
this.IdentifyType = "01";
|
|
this.IdentifyType = "01";
|
|
|
this.CarInsuredRelation = "1";
|
|
this.CarInsuredRelation = "1";
|
|
|
this.IdentifyNumber = customerInfoVo.getIdentifyNumber();
|
|
this.IdentifyNumber = customerInfoVo.getIdentifyNumber();
|
|
|
- } else if (customerInfoVo.getProperty() != null && customerInfoVo.getProperty().equals("2")) {
|
|
|
|
|
|
|
+ } else if (customerInfoVo.getProperty() != null && customerInfoVo.getProperty().equals("0")) {
|
|
|
this.IdentifyType = "09";
|
|
this.IdentifyType = "09";
|
|
|
this.InsuredType = "2";
|
|
this.InsuredType = "2";
|
|
|
this.CarInsuredRelation = "1";
|
|
this.CarInsuredRelation = "1";
|
|
|
this.IdentifyNumber = customerInfoVo.getOrganizationCode();
|
|
this.IdentifyNumber = customerInfoVo.getOrganizationCode();
|
|
|
- } else if (customerInfoVo.getProperty() != null && customerInfoVo.getProperty().equals("3")) {
|
|
|
|
|
- this.InsuredType = "1";
|
|
|
|
|
- this.IdentifyType = "99";
|
|
|
|
|
- this.CarInsuredRelation = "3";
|
|
|
|
|
- this.IdentifyNumber = customerInfoVo.getOrganizationCode();
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1129,7 +1120,7 @@ public class YangGuangAccuracyCalculateRequest extends YangGuangBaseRequest{
|
|
|
//不征
|
|
//不征
|
|
|
private static final String TAX_NOT_CHARGE = "9";
|
|
private static final String TAX_NOT_CHARGE = "9";
|
|
|
|
|
|
|
|
- public CarshipyTaxInfoDTO(VehicleAndVesselTax vehicleAndVesselTax,RiskInfoVo riskInfoVo) {
|
|
|
|
|
|
|
+ public CarshipyTaxInfoDTO(VehicleAndVesselTax vehicleAndVesselTax,RiskInfoVo riskInfoVo,CustomerInfoVo customerInfoVo) {
|
|
|
String flag = vehicleAndVesselTax.getTaxRelifFlag();
|
|
String flag = vehicleAndVesselTax.getTaxRelifFlag();
|
|
|
switch (flag) {
|
|
switch (flag) {
|
|
|
case TAX_EXEMPTION:
|
|
case TAX_EXEMPTION:
|
|
@@ -1147,8 +1138,15 @@ public class YangGuangAccuracyCalculateRequest extends YangGuangBaseRequest{
|
|
|
}
|
|
}
|
|
|
this.TaxRelifFlag = vehicleAndVesselTax.getTaxRelifFlag();
|
|
this.TaxRelifFlag = vehicleAndVesselTax.getTaxRelifFlag();
|
|
|
this.TaxpayerName = vehicleAndVesselTax.getTaxpayerName();
|
|
this.TaxpayerName = vehicleAndVesselTax.getTaxpayerName();
|
|
|
- this.IdentifyType = vehicleAndVesselTax.getTaxpayerIdentifier();
|
|
|
|
|
- this.Taxpayeridentifier = vehicleAndVesselTax.getIdentifyNumber();
|
|
|
|
|
|
|
+ if (customerInfoVo.getProperty() != null && customerInfoVo.getProperty().equals("1")) {
|
|
|
|
|
+ this.IdentifyType = "01";
|
|
|
|
|
+ this.Taxpayeridentifier = vehicleAndVesselTax.getIdentifyNumber();
|
|
|
|
|
+ }
|
|
|
|
|
+ if (customerInfoVo.getProperty() != null && customerInfoVo.getProperty().equals("0")) {
|
|
|
|
|
+ this.IdentifyType = "09";
|
|
|
|
|
+ this.Taxpayeridentifier = customerInfoVo.getOrganizationCode();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.PaystartDate = riskInfoVo.getStartDate();
|
|
this.PaystartDate = riskInfoVo.getStartDate();
|
|
|
this.PayendDate = riskInfoVo.getEndDate();
|
|
this.PayendDate = riskInfoVo.getEndDate();
|
|
|
}
|
|
}
|