|
@@ -1,7 +1,6 @@
|
|
|
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.JSONObject;
|
|
|
|
|
import com.ydtech.components.AnShengRequestComponents;
|
|
import com.ydtech.components.AnShengRequestComponents;
|
|
|
import com.ydtech.constants.enums.InsOrderStatus;
|
|
import com.ydtech.constants.enums.InsOrderStatus;
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
import com.ydtech.core.page.HttpResult;
|
|
@@ -91,7 +90,6 @@ public class AnShengOrderServiceImpl implements AnShengOrderService {
|
|
|
// 2. 获取订单
|
|
// 2. 获取订单
|
|
|
|
|
|
|
|
if (body.getCode() == 400) {
|
|
if (body.getCode() == 400) {
|
|
|
-// insTaskHistoryComponents.modifyStatus(InsTaskHistoryEnum.UNDERWRITING_FAILED, order);
|
|
|
|
|
return HttpResult.error("安盛天平--核保失败:" + body.getMessage());
|
|
return HttpResult.error("安盛天平--核保失败:" + body.getMessage());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -144,14 +142,14 @@ public class AnShengOrderServiceImpl implements AnShengOrderService {
|
|
|
InsAreaCompany insAreaCompany = new InsAreaCompany();
|
|
InsAreaCompany insAreaCompany = new InsAreaCompany();
|
|
|
insAreaCompany.setId(IdGenerate.nextId());
|
|
insAreaCompany.setId(IdGenerate.nextId());
|
|
|
insAreaCompany.setOrderno(orderNo);
|
|
insAreaCompany.setOrderno(orderNo);
|
|
|
- insAreaCompany.setReptxt(JSONObject.parseObject(JSONObject.toJSONString(response)));
|
|
|
|
|
|
|
+ insAreaCompany.setReptxt(JSON.parseObject(JSON.toJSONString(response)));
|
|
|
insAreaCompany.setJqpremium(BigDecimal.valueOf(response.getForceCarInsureRisk()));
|
|
insAreaCompany.setJqpremium(BigDecimal.valueOf(response.getForceCarInsureRisk()));
|
|
|
insAreaCompany.setSypremium(BigDecimal.valueOf(response.getBusiTotalPremium()));
|
|
insAreaCompany.setSypremium(BigDecimal.valueOf(response.getBusiTotalPremium()));
|
|
|
insAreaCompany.setTaxamount(BigDecimal.valueOf(response.getCarInsureShiptax()));
|
|
insAreaCompany.setTaxamount(BigDecimal.valueOf(response.getCarInsureShiptax()));
|
|
|
insAreaCompany.setSumpremium(BigDecimal.valueOf(response.getCarInsureMain()));
|
|
insAreaCompany.setSumpremium(BigDecimal.valueOf(response.getCarInsureMain()));
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatus.S_0.getCode()); // 1
|
|
insAreaCompany.setOrderstatus(InsOrderStatus.S_0.getCode()); // 1
|
|
|
- insAreaCompany.setRiskinfo(JSONObject.parseArray(JSONObject.toJSONString(quoteRespVo.getRiskList())));
|
|
|
|
|
- insAreaCompany.setKindinfo(JSONObject.parseArray(JSONObject.toJSONString(quoteRespVo.getKindList())));
|
|
|
|
|
|
|
+ insAreaCompany.setRiskinfo(JSON.parseArray(JSON.toJSONString(quoteRespVo.getRiskList())));
|
|
|
|
|
+ insAreaCompany.setKindinfo(JSON.parseArray(JSON.toJSONString(quoteRespVo.getKindList())));
|
|
|
insAreaCompany.setCompanyId(esmInsCompany.getId());
|
|
insAreaCompany.setCompanyId(esmInsCompany.getId());
|
|
|
insAreaCompany.setInscompany(esmInsCompany.getNamesimple());
|
|
insAreaCompany.setInscompany(esmInsCompany.getNamesimple());
|
|
|
insAreaCompanyService.save(insAreaCompany);
|
|
insAreaCompanyService.save(insAreaCompany);
|
|
@@ -221,7 +219,7 @@ public class AnShengOrderServiceImpl implements AnShengOrderService {
|
|
|
|
|
|
|
|
public AsLoginInfoCache getLoginInfo(String orderNo) {
|
|
public AsLoginInfoCache getLoginInfo(String orderNo) {
|
|
|
String s = redisTemplate.opsForValue().get(INS_ANSHENG_KEY + orderNo);
|
|
String s = redisTemplate.opsForValue().get(INS_ANSHENG_KEY + orderNo);
|
|
|
- return JSONObject.parseObject(s, AsLoginInfoCache.class);
|
|
|
|
|
|
|
+ return JSON.parseObject(s, AsLoginInfoCache.class);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|