Explorar el Código

大家财险税修改

785834757 hace 2 años
padre
commit
dd17b00d16

+ 8 - 0
src/main/java/com/ydtech/modules/order/entity/api/dajia/constants/CPayTaxType.java

@@ -19,4 +19,12 @@ public enum CPayTaxType {
 
     private final String desc;
 
+    public static CPayTaxType getByCode(String code) {
+        for (CPayTaxType value : CPayTaxType.values()) {
+            if (value.getCode().equals(code)) {
+                return value;
+            }
+        }
+        return null;
+    }
 }

+ 2 - 2
src/main/java/com/ydtech/modules/order/service/impl/DaJiaOrderServiceImpl.java

@@ -20,6 +20,7 @@ import com.ydtech.modules.order.entity.InsOrders;
 import com.ydtech.modules.order.entity.TaxArrears;
 import com.ydtech.modules.order.entity.api.dajia.DaJiaConfigureParameters;
 import com.ydtech.modules.order.entity.api.dajia.constants.CCvrgNo;
+import com.ydtech.modules.order.entity.api.dajia.constants.CPayTaxType;
 import com.ydtech.modules.order.entity.api.dajia.constants.CProdNo;
 import com.ydtech.modules.order.entity.api.dajia.constants.Message;
 import com.ydtech.modules.order.entity.api.dajia.request.*;
@@ -343,7 +344,6 @@ public class DaJiaOrderServiceImpl implements DaJiaOrderService {
                 return quotation(orderNo, kindInfoVos, riskInfoVos, quoteInfoVo, odr1016Response,
                         insAccidentalDrivingDajia, insAccidentalDrivingSubDajias, daJiaConfigureParameters, isEnergy);
             }
-
         }
         return odr1009Response;
     }
@@ -515,7 +515,7 @@ public class DaJiaOrderServiceImpl implements DaJiaOrderService {
             syPremium = Double.parseDouble(odr1009Response.getResult().getBasePart().getSyPremium().toString());
         }
         if (!Objects.isNull(odr1009Response.getResult().getVehicleTaxation())) {
-            sumPayTax = Double.parseDouble(odr1009Response.getResult().getVehicleTaxation().getTaxTotalAmount());
+            sumPayTax = Double.parseDouble(odr1009Response.getResult().getVehicleTaxation().getTaxAggTax());
         }
         quoteRespVo.setJqPremium(jqPremium);
         quoteRespVo.setSyPremium(syPremium);