Explorar o código

大家爬虫修改

wks %!s(int64=2) %!d(string=hai) anos
pai
achega
39f377e5b0

+ 12 - 0
src/main/java/com/ydtech/modules/order/service/impl/InsOrdersServiceImpl.java

@@ -1262,6 +1262,18 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
             jsonObject.put("sumPremium", accidentObject.getString("sumPremium"));
             taiKangBaseQuoteVo.setAccidentalDrivingVo(jsonObject);
             return taiKangBaseQuoteVo;
+        } else if (baseQuoteVo.getCompanyId().equals("DJPC1000000")) {
+            //大家爬虫
+            BaseQuoteVo<Object> dajiaBaseQuoteVo = new BaseQuoteVo<>();
+            JSONObject accidentObject = JSONObject.parseObject(JSONObject.toJSONString(dajiaBaseQuoteVo.getAccidentalDrivingVo()));
+            JSONObject jsonObject = new JSONObject();
+
+            BeanUtils.copyProperties(baseQuoteVo, dajiaBaseQuoteVo);
+            jsonObject.put("productCode", accidentObject.getString("projectCode"));
+            jsonObject.put("planId", accidentObject.getString("productId"));
+            jsonObject.put("perAmtSum", accidentObject.getString("sumAmount"));
+            jsonObject.put("sumPremium", accidentObject.getString("sumPremium"));
+            return dajiaBaseQuoteVo;
         }
         return null;
     }