Pārlūkot izejas kodu

判断是否为真单交

wks 2 gadi atpakaļ
vecāks
revīzija
a4efc47f9e

+ 1 - 1
src/main/java/com/ydtech/modules/ins/model/vo/QuoteRespVo.java

@@ -61,7 +61,7 @@ public class QuoteRespVo {
     private String orderno;
 
     @ApiModelProperty("是否真单交")
-    private String iszdj;
+    private boolean iszdj;
 
     @ApiModelProperty("交强险保费")
     private double jqPremium;

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

@@ -1062,9 +1062,9 @@ public class YongAnOrderServiceImpl implements YongAnOrderService {
         List<ExtendInfoDto> extendInfo = responseBodyC2.getExtendInfo();
         Map<String, String> maps = extendInfo.stream().collect(LinkedHashMap::new, (m, v) -> m.put(v.getKey(), v.getValue()), LinkedHashMap::putAll);
         String relationType = maps.get("relationType");
-        quoteRespVo.setIszdj("0");
+        quoteRespVo.setIszdj(false);
         if ("7".equals(relationType)) {
-            quoteRespVo.setIszdj("1");
+            quoteRespVo.setIszdj(true);
         }
         return quoteRespVo;
     }

+ 4 - 1
src/main/java/com/ydtech/modules/order/service/impl/ZijinOrderApiServiceImpl.java

@@ -41,6 +41,7 @@ import com.ydtech.modules.protocol.service.PtlAgreementAttributionService;
 import com.ydtech.utils.CalculateUtils;
 import com.ydtech.utils.StringUtils;
 import com.ydtech.utils.baidu.FileUtil;
+import com.ydtech.utils.baidu.GsonUtils;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.http.HttpHeaders;
@@ -504,6 +505,7 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
         quoteRespVo.setSumPermium(CalculateUtils.add(jqPremium, syPremium, sumPayTax, jyPremium));//保费合计
         quoteRespVo.setTotalAdjustRate(0);
         quoteRespVo.setOrderno(yaQuoteInfoVo.getOrderNo()); //订单号
+        quoteRespVo.setIszdj("1".equals(calculatePremiumResponse.getBasePart().getIsDjq()));
         return quoteRespVo;
     }
 
@@ -526,8 +528,9 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
                 Double.parseDouble(carShipTax.getLateFee()));
         List<TaxArrears> taxArrearsList = Collections.singletonList(taxArrears);
         insAreaCompany.setTaxArrears(JSON.parseArray(JSON.toJSONString(taxArrearsList)));
-
         return HttpResult.ok("报价成功", quoteRespVo);
     }
 
+
+
 }