|
@@ -1,6 +1,7 @@
|
|
|
package com.ydtech.modules.order.service.impl;
|
|
package com.ydtech.modules.order.service.impl;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
|
import com.ydtech.constants.enums.dict.InsOrderStatusEnum;
|
|
import com.ydtech.constants.enums.dict.InsOrderStatusEnum;
|
|
@@ -144,7 +145,14 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
if (t.getAccidentalDrivingVo() != null && t.getCompanyId().equals("TPIC1000000")) {
|
|
if (t.getAccidentalDrivingVo() != null && t.getCompanyId().equals("TPIC1000000")) {
|
|
|
JSONObject jsonObject = JSON.parseObject(t.getAccidentalDrivingVo().toString());
|
|
JSONObject jsonObject = JSON.parseObject(t.getAccidentalDrivingVo().toString());
|
|
|
insAreaCompanyAccidentalDriving.setRideRiskCode(jsonObject.get("id").toString());
|
|
insAreaCompanyAccidentalDriving.setRideRiskCode(jsonObject.get("id").toString());
|
|
|
|
|
+ }else if(t.getAccidentalDrivingVo() != null && t.getCompanyId().equals("TKIC1000000")){
|
|
|
|
|
+ JSONObject jsonObject = JSON.parseObject(t.getAccidentalDrivingVo().toString());
|
|
|
|
|
+ insAreaCompanyAccidentalDriving.setRideRiskCode(jsonObject.getString("planCode"));
|
|
|
|
|
+ insAreaCompanyAccidentalDriving.setRideRiskName(jsonObject.getString("planName"));
|
|
|
|
|
+ insAreaCompanyAccidentalDriving.setCompanyId("TKIC1000000");
|
|
|
|
|
+ insAreaCompanyAccidentalDriving.setQuantity(1);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
//处理订单信息
|
|
//处理订单信息
|
|
|
QuoteRespVo responseVo = responseOrder(response, quoteRespVo, ptlAgreementAttribution, insAreaCompanyAccidentalDriving);
|
|
QuoteRespVo responseVo = responseOrder(response, quoteRespVo, ptlAgreementAttribution, insAreaCompanyAccidentalDriving);
|
|
|
|
|
|