|
|
@@ -6,6 +6,8 @@ import com.ydtech.constants.enums.InsuranceRisk;
|
|
|
import com.ydtech.constants.enums.dict.InsOrderStatusEnum;
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
|
import com.ydtech.exception.SystemException;
|
|
|
+import com.ydtech.modules.admin.model.vo.PersonAreaVo;
|
|
|
+import com.ydtech.modules.admin.service.SysAreaService;
|
|
|
import com.ydtech.modules.fee.service.FeeRuleSchemeService;
|
|
|
import com.ydtech.modules.ins.model.vo.*;
|
|
|
import com.ydtech.modules.ins.model.ya.YaQuoteInfoVo;
|
|
|
@@ -76,6 +78,8 @@ public class HuaTaiOrderApiServiceImpl implements HuaTaiOrderApiService {
|
|
|
|
|
|
private final HuaTaiQuotationProcessorComponent huaTaiQuotationProcessorComponent;
|
|
|
|
|
|
+ private final SysAreaService sysAreaService;
|
|
|
+
|
|
|
@Value("${upload.file.path}")
|
|
|
private String uploadFilePath;
|
|
|
|
|
|
@@ -165,6 +169,13 @@ public class HuaTaiOrderApiServiceImpl implements HuaTaiOrderApiService {
|
|
|
InsOrders insOrders = insOrdersService.getById(insAreaCompany.getOrderno());
|
|
|
YaQuoteInfoVo yaQuoteInfoVo = new YaQuoteInfoVo(insOrders);
|
|
|
|
|
|
+ //查找车主的区划信息
|
|
|
+ PersonAreaVo ownerPersonArea = sysAreaService.queryByAddress(yaQuoteInfoVo.getOwnerInfo().getAddr(),
|
|
|
+ yaQuoteInfoVo.getOwnerInfo().getIdentifyNumber());
|
|
|
+ huaTaiConfigureParameters.setCity(ownerPersonArea.getCityCode());
|
|
|
+ huaTaiConfigureParameters.setProvince(ownerPersonArea.getProvinceCode());
|
|
|
+ huaTaiConfigureParameters.setDistrict(ownerPersonArea.getCountyCode());
|
|
|
+
|
|
|
// 2. 调用转投保接口
|
|
|
HuaTaiSubmitResponse response = submitForUnderwriting(yaQuoteInfoVo, insAreaCompany, huaTaiConfigureParameters, engageList);
|
|
|
|