Przeglądaj źródła

太平添加applyNo参数

785834757 1 rok temu
rodzic
commit
a9d6f7e066

+ 5 - 0
src/main/java/com/ydtech/modules/order/entity/crawler/request/CrawlerQuoteRequest.java

@@ -81,4 +81,9 @@ public class CrawlerQuoteRequest extends BaseQuoteInfoVo {
      */
     private String preDiscount;
 
+    /**
+     * 太平传递 applyNo   决策单元代码
+     */
+    private String applyNo;
+
 }

+ 11 - 0
src/main/java/com/ydtech/modules/order/service/impl/InsCrawlerOrderServiceImpl.java

@@ -179,6 +179,17 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
             crawlerQuoteRequest.setPricecoefficient(t.getPriceCoefficient() == null ? "1" : t.getPriceCoefficient());
         }
 
+        // 太平添加applyNo参数
+        if (ptlAgreementAttribution.getInsCompanyId().equals("TPIC1000000")){
+            JSONArray fields = ptlAgreementAttribution.getFields();
+            for(int k=0;k<fields.size();k++){
+                JSONObject jsonObject = fields.getJSONObject(k);
+                if("applyNo".equals(jsonObject.getString("field"))){
+                    crawlerQuoteRequest.setApplyNo(jsonObject.getString("value"));
+                }
+            }
+        }
+
         // 中煤添加netpointcode 代码
         if (ptlAgreementAttribution.getInsCompanyId().equals("ZMBX1000000")){
             JSONArray fields = ptlAgreementAttribution.getFields();