فهرست منبع

[诚泰] feat(报价): 车船税映射

wlq 1 سال پیش
والد
کامیت
9e26c00fad

+ 56 - 1
tenant/insurance/quotation-chengtai/src/main/java/com/jzg/quotation/chengtai/crawler/model/entity/ChengTaiTax.java

@@ -9,6 +9,12 @@ import lombok.Setter;
 public class ChengTaiTax extends UnknownFieldEntity {
 public class ChengTaiTax extends UnknownFieldEntity {
     /**
     /**
      * 纳税条件代码
      * 纳税条件代码
+     * "1N": "代收税",
+     * "5J": "减税",
+     * "3M": "免税",
+     * "2W": "已完税",
+     * "7B": "不征",
+     * "01": "不代收税"
      */
      */
     private String taxConditionCode;
     private String taxConditionCode;
     /**
     /**
@@ -21,10 +27,27 @@ public class ChengTaiTax extends UnknownFieldEntity {
     private String taxEndDate;
     private String taxEndDate;
     /**
     /**
      * 计算方式
      * 计算方式
+     *
+     * 1:按保险期间起期
+     * 2:按签单日期
+     * 4:按车辆购置日期
      */
      */
     private String calculateMode;
     private String calculateMode;
     /**
     /**
      * 纳税人证件类型
      * 纳税人证件类型
+     *
+     * 01  :  居民身份证
+     * 02  :  护照
+     * 03  :  军人身份证件
+     * 08  :  港澳居民来往内地通行证
+     * 09  :  台湾居民来往大陆通行证
+     * 1   :  组织机构代码证
+     * 10  :  武警身份证件
+     * 11  :  外国人永久居留身份证
+     * 2   :  税务登记证
+     * 3   :  营业执照
+     * 4   :  统一社会信用代码
+     * 44  :  港澳台居民居住证
      */
      */
     private String taxPayerIdentityType;
     private String taxPayerIdentityType;
     /**
     /**
@@ -40,7 +63,8 @@ public class ChengTaiTax extends UnknownFieldEntity {
      */
      */
     private String taxPayerName;
     private String taxPayerName;
     /**
     /**
-     * 最后缴纳年度
+     * 上次纳税年度
+     *
      */
      */
     private Integer lastPaidYear;
     private Integer lastPaidYear;
     /**
     /**
@@ -48,5 +72,36 @@ public class ChengTaiTax extends UnknownFieldEntity {
      */
      */
     private String policyId;
     private String policyId;
 
 
+    /**
+     * 整备质量
+     */
     private String unladenMass;
     private String unladenMass;
+    /**
+     * 减税凭证号
+     */
+    private String documentNumber;
+    /**
+     * 税务机关名称
+     */
+    private String taxDepartment;
+    /**
+     * 税务机关名称
+     */
+    private String taxDepartmentDetail;
+
+    /**
+     * 减免方案
+     *
+     * 1:按金额进行减免
+     * 2:按比例进行减免
+     */
+    private String deductionDueType;
+    /**
+     * 减免金额
+     */
+    private String deduction;
+    /**
+     * 减免比例
+     */
+    private String deductionDueProportion;
 }
 }

+ 28 - 2
tenant/insurance/quotation-chengtai/src/main/java/com/jzg/quotation/chengtai/crawler/service/ChengTaiCrawlerRequestService.java

@@ -616,15 +616,41 @@ public class ChengTaiCrawlerRequestService implements QuotationApiBaseService {
         chengTaiCoverage.setShortRate("100");
         chengTaiCoverage.setShortRate("100");
         chengTaiCoverage.setShortRateType("2");
         chengTaiCoverage.setShortRateType("2");
 
 
-        ;
+
         ChengTaiTax chengTaiTax = new ChengTaiTax();
         ChengTaiTax chengTaiTax = new ChengTaiTax();
-        chengTaiTax.setTaxConditionCode("1N");
+
         chengTaiTax.setLastPaidYear(2025);
         chengTaiTax.setLastPaidYear(2025);
         chengTaiTax.setPolicyId("1907623750543810561");
         chengTaiTax.setPolicyId("1907623750543810561");
         chengTaiTax.setTaxEndDate("2025-12-31");
         chengTaiTax.setTaxEndDate("2025-12-31");
         chengTaiTax.setTaxPayerIdentityType("01");
         chengTaiTax.setTaxPayerIdentityType("01");
         chengTaiTax.setTaxPayerIdentityNo(vehicleAndVesselTax.getIdentifyNumber());
         chengTaiTax.setTaxPayerIdentityNo(vehicleAndVesselTax.getIdentifyNumber());
         chengTaiTax.setTaxPayerIdentificationCode(vehicleAndVesselTax.getIdentifyNumber());
         chengTaiTax.setTaxPayerIdentificationCode(vehicleAndVesselTax.getIdentifyNumber());
+        chengTaiTax.setUnladenMass("2000");
+
+        String taxRelifFlag = vehicleAndVesselTax.getTaxRelifFlag();
+
+        // 正常缴税
+        if (taxRelifFlag.equals("1")) {
+            chengTaiTax.setTaxConditionCode("1N");
+        }
+        // 免税
+        else if (taxRelifFlag.equals("2")) {
+            chengTaiTax.setTaxConditionCode("3M");
+            chengTaiTax.setDocumentNumber(vehicleAndVesselTax.getExtendChar2());
+            chengTaiTax.setTaxDepartment(vehicleAndVesselTax.getTaxComName());
+            chengTaiTax.setTaxDepartmentDetail(vehicleAndVesselTax.getTaxComName());
+        }
+        // 减税
+        else if (taxRelifFlag.equals("3")) {
+            chengTaiTax.setTaxConditionCode("5J");
+            chengTaiTax.setDocumentNumber(vehicleAndVesselTax.getExtendChar2());
+            chengTaiTax.setTaxDepartment(vehicleAndVesselTax.getTaxComName());
+            chengTaiTax.setTaxDepartmentDetail(vehicleAndVesselTax.getTaxComName());
+        }
+        // 完税
+        else if (taxRelifFlag.equals("4")) {
+            chengTaiTax.setTaxConditionCode("2W");
+        }
 
 
         ChengTaiCiContract chengTaiCiContract = new ChengTaiCiContract();
         ChengTaiCiContract chengTaiCiContract = new ChengTaiCiContract();
         chengTaiCiContract.setContractMain(contractMain);
         chengTaiCiContract.setContractMain(contractMain);