|
@@ -866,24 +866,29 @@ public class PremiumReq {
|
|
|
private String taxDocumentDate;
|
|
private String taxDocumentDate;
|
|
|
|
|
|
|
|
public PrpTcarshipTaxDTO(VehicleAndVesselTax vehicleAndVesselTax) {
|
|
public PrpTcarshipTaxDTO(VehicleAndVesselTax vehicleAndVesselTax) {
|
|
|
- TaxRelifFlag flag = Enum.valueOf(TaxRelifFlag.class, TaxRelifFlag.TITLE + vehicleAndVesselTax.getTaxRelifFlag());
|
|
|
|
|
|
|
+ RelifReason flag = Enum.valueOf(RelifReason.class, RelifReason.TITLE + vehicleAndVesselTax.getTaxRelifFlag());
|
|
|
this.taxRelifFlag = flag.getCode();
|
|
this.taxRelifFlag = flag.getCode();
|
|
|
|
|
|
|
|
- RelifReason reason = Enum.valueOf(RelifReason.class, RelifReason.TITLE + vehicleAndVesselTax.getRelifReason());
|
|
|
|
|
- this.relifReason = reason.getCode();
|
|
|
|
|
-
|
|
|
|
|
- switch (this.relifReason) {
|
|
|
|
|
- case "3":
|
|
|
|
|
- this.baseTaxation = BaseTaxation.BR_2.getCode();
|
|
|
|
|
- this.freeRate = vehicleAndVesselTax.getTaxRelief();
|
|
|
|
|
- break;
|
|
|
|
|
- case "2":
|
|
|
|
|
- this.baseTaxation = BaseTaxation.BR_3.getCode();
|
|
|
|
|
- break;
|
|
|
|
|
- default:
|
|
|
|
|
- break;
|
|
|
|
|
|
|
+ //返回空
|
|
|
|
|
+ if(!"".equals(vehicleAndVesselTax.getRelifReason())) {
|
|
|
|
|
+ RelifReason reason = Enum.valueOf(RelifReason.class, RelifReason.TITLE + vehicleAndVesselTax.getRelifReason());
|
|
|
|
|
+ this.relifReason = reason.getCode();
|
|
|
|
|
+
|
|
|
|
|
+ switch (this.relifReason) {
|
|
|
|
|
+ case "3":
|
|
|
|
|
+ this.baseTaxation = BaseTaxation.BR_2.getCode();
|
|
|
|
|
+ this.freeRate = vehicleAndVesselTax.getTaxRelief();
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "2":
|
|
|
|
|
+ this.baseTaxation = BaseTaxation.BR_3.getCode();
|
|
|
|
|
+ break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
this.paidFreeCertificate = vehicleAndVesselTax.getPaidFreeCertificate();
|
|
this.paidFreeCertificate = vehicleAndVesselTax.getPaidFreeCertificate();
|
|
|
this.taxComName = vehicleAndVesselTax.getTaxComName();
|
|
this.taxComName = vehicleAndVesselTax.getTaxComName();
|
|
|
this.taxComCode = vehicleAndVesselTax.getTaxComCode();
|
|
this.taxComCode = vehicleAndVesselTax.getTaxComCode();
|