|
@@ -22,7 +22,6 @@ import com.ydtech.modules.order.entity.api.pingan.response.*;
|
|
|
import com.ydtech.modules.order.entity.api.pingan.utils.PDFUtil;
|
|
import com.ydtech.modules.order.entity.api.pingan.utils.PDFUtil;
|
|
|
import com.ydtech.modules.order.entity.api.pingan.utils.PinAnEnumUtils;
|
|
import com.ydtech.modules.order.entity.api.pingan.utils.PinAnEnumUtils;
|
|
|
import com.ydtech.modules.order.entity.api.pingan.utils.UUIDUtils;
|
|
import com.ydtech.modules.order.entity.api.pingan.utils.UUIDUtils;
|
|
|
-import com.ydtech.modules.order.entity.config.BoHaiConfigureParameters;
|
|
|
|
|
import com.ydtech.modules.order.entity.config.PingAnConfigureParameters;
|
|
import com.ydtech.modules.order.entity.config.PingAnConfigureParameters;
|
|
|
import com.ydtech.modules.order.entity.crawler.vo.CrawlerPolicyPrintVo;
|
|
import com.ydtech.modules.order.entity.crawler.vo.CrawlerPolicyPrintVo;
|
|
|
import com.ydtech.modules.order.entity.po.InsTaskImagesBase64;
|
|
import com.ydtech.modules.order.entity.po.InsTaskImagesBase64;
|
|
@@ -374,19 +373,17 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public HttpResult<Object> audit(String subOrderNo) {
|
|
|
|
|
- InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(subOrderNo);
|
|
|
|
|
|
|
+ public HttpResult<Object> audit(BaseQuoteInfoVo quoteInfo) {
|
|
|
|
|
+ InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(quoteInfo.getOrderNo());
|
|
|
// 账号信息
|
|
// 账号信息
|
|
|
PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
|
|
PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
|
|
|
// 通过 协议id获取配置实体
|
|
// 通过 协议id获取配置实体
|
|
|
PingAnConfigureParameters parameters = configureParametersComponents.toEntity(PingAnConfigureParameters.class,
|
|
PingAnConfigureParameters parameters = configureParametersComponents.toEntity(PingAnConfigureParameters.class,
|
|
|
ptlAgreementAttribution);
|
|
ptlAgreementAttribution);
|
|
|
- BaseQuoteInfoVo quoteInfo=new BaseQuoteInfoVo();
|
|
|
|
|
//此处的流程id必须传入 获取报价流程的返回的流程id
|
|
//此处的流程id必须传入 获取报价流程的返回的流程id
|
|
|
- String flowid="";
|
|
|
|
|
- SearchPAVehicleListResponse.ModelsDto modelsDto =new SearchPAVehicleListResponse.ModelsDto();
|
|
|
|
|
|
|
+ String flowid=insAreaCompany.getInsOrderNo();
|
|
|
//调用6.1 补充信息并核保
|
|
//调用6.1 补充信息并核保
|
|
|
- SubmitApplyRequest submitApplyRequest = new SubmitApplyRequest(parameters, quoteInfo, modelsDto,flowid);
|
|
|
|
|
|
|
+ SubmitApplyRequest submitApplyRequest = new SubmitApplyRequest(parameters, quoteInfo,flowid,"true");
|
|
|
SubmitApplyResponse submitApplyResponse=null;
|
|
SubmitApplyResponse submitApplyResponse=null;
|
|
|
try{
|
|
try{
|
|
|
submitApplyResponse= pinganRequestApiComponents.submitApply(submitApplyRequest);
|
|
submitApplyResponse= pinganRequestApiComponents.submitApply(submitApplyRequest);
|
|
@@ -561,12 +558,6 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
@Override
|
|
@Override
|
|
|
public void getOrderDetailNew(String subOrderNo) {
|
|
public void getOrderDetailNew(String subOrderNo) {
|
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(subOrderNo);
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(subOrderNo);
|
|
|
- // 账号信息
|
|
|
|
|
- PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
|
|
|
|
|
- // 通过 协议id获取配置实体
|
|
|
|
|
- BoHaiConfigureParameters parameters = configureParametersComponents.toEntity(BoHaiConfigureParameters.class,
|
|
|
|
|
- ptlAgreementAttribution);
|
|
|
|
|
-
|
|
|
|
|
//调用承保接口
|
|
//调用承保接口
|
|
|
String applyno = !StringUtils.isEmpty(insAreaCompany.getJqapplyno()) ? insAreaCompany.getJqapplyno() :
|
|
String applyno = !StringUtils.isEmpty(insAreaCompany.getJqapplyno()) ? insAreaCompany.getJqapplyno() :
|
|
|
insAreaCompany.getSyapplyno();
|
|
insAreaCompany.getSyapplyno();
|
|
@@ -616,7 +607,7 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
IndexResponse indexResponse = pinganRequestApiComponents.index(indexRequest);
|
|
IndexResponse indexResponse = pinganRequestApiComponents.index(indexRequest);
|
|
|
if(indexResponse!=null && IndexResposeCodeEnum.INDEX_CODE_MSG_0.getCode().equals(indexResponse.getResultCode())){
|
|
if(indexResponse!=null && IndexResposeCodeEnum.INDEX_CODE_MSG_0.getCode().equals(indexResponse.getResultCode())){
|
|
|
//调用 交管车辆验证码 4.3 传入标的接口返回的流程id
|
|
//调用 交管车辆验证码 4.3 传入标的接口返回的流程id
|
|
|
- DmvehicleInfoRequst dmvehicleInfoRequst = new DmvehicleInfoRequst(parameters,indexResponse.getFlowid(),"frameNo","engineNo",null);
|
|
|
|
|
|
|
+ DmvehicleInfoRequst dmvehicleInfoRequst = new DmvehicleInfoRequst(parameters,indexResponse.getFlowid(),quoteInfo.getCarInfo().getFrameNo(),quoteInfo.getCarInfo().getEngineNo(),null);
|
|
|
DmvehicleInfoResponse dmvehicleInfoResponse=null;
|
|
DmvehicleInfoResponse dmvehicleInfoResponse=null;
|
|
|
try{
|
|
try{
|
|
|
dmvehicleInfoResponse= pinganRequestApiComponents.getDmvehicleInfo(dmvehicleInfoRequst);
|
|
dmvehicleInfoResponse= pinganRequestApiComponents.getDmvehicleInfo(dmvehicleInfoRequst);
|
|
@@ -658,8 +649,9 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
IndexRequest indexRequest = new IndexRequest(parameters, quoteInfo.getCarInfo());
|
|
IndexRequest indexRequest = new IndexRequest(parameters, quoteInfo.getCarInfo());
|
|
|
IndexResponse indexResponse = pinganRequestApiComponents.index(indexRequest);
|
|
IndexResponse indexResponse = pinganRequestApiComponents.index(indexRequest);
|
|
|
if(indexResponse!=null && IndexResposeCodeEnum.INDEX_CODE_MSG_0.getCode().equals(indexResponse.getResultCode())){
|
|
if(indexResponse!=null && IndexResposeCodeEnum.INDEX_CODE_MSG_0.getCode().equals(indexResponse.getResultCode())){
|
|
|
- //调用 续保确认 4.1 传入标的接口返回的流程id
|
|
|
|
|
- RenewalConfirmRequest renewalConfirmRequest = new RenewalConfirmRequest(parameters,indexResponse.getFlowid(),"checkNo");
|
|
|
|
|
|
|
+ //调用 续保确认 4.1 传入标的接口返回的流程id 车主身份证号后6为
|
|
|
|
|
+ String identifyNumber = quoteInfo.getOwnerInfo().getIdentifyNumber();
|
|
|
|
|
+ RenewalConfirmRequest renewalConfirmRequest = new RenewalConfirmRequest(parameters,indexResponse.getFlowid(),identifyNumber.substring(identifyNumber.length() - 6));
|
|
|
RenewalConfirmResponse renewalConfirmResponse=null;
|
|
RenewalConfirmResponse renewalConfirmResponse=null;
|
|
|
try{
|
|
try{
|
|
|
renewalConfirmResponse= pinganRequestApiComponents.renewalConfirm(renewalConfirmRequest);
|
|
renewalConfirmResponse= pinganRequestApiComponents.renewalConfirm(renewalConfirmRequest);
|
|
@@ -688,10 +680,10 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public HttpResult<Object> queryServiceContract(BaseQuoteVo<List<BoHaiQuoteAccidentVo>> quoteVo, BaseQuoteInfoVo quoteInfo) {
|
|
|
|
|
|
|
+ public HttpResult<Object> queryServiceContract(String companyId) {
|
|
|
try{
|
|
try{
|
|
|
//调用
|
|
//调用
|
|
|
- ServiceContractRequest serviceContractRequest = new ServiceContractRequest(quoteVo.getCompanyId());
|
|
|
|
|
|
|
+ ServiceContractRequest serviceContractRequest = new ServiceContractRequest(companyId);
|
|
|
ServiceContractResponse serviceContractResponse=null;
|
|
ServiceContractResponse serviceContractResponse=null;
|
|
|
try{
|
|
try{
|
|
|
serviceContractResponse= pinganRequestApiComponents.queryServiceContract(serviceContractRequest);
|
|
serviceContractResponse= pinganRequestApiComponents.queryServiceContract(serviceContractRequest);
|
|
@@ -716,7 +708,7 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public HttpResult<Object> getDocumentStatusList(String subOrderNo,BaseQuoteVo<List<BoHaiQuoteAccidentVo>> quoteVo,BaseQuoteInfoVo quoteInfo) {
|
|
|
|
|
|
|
+ public HttpResult<Object> getDocumentStatusList(BaseQuoteVo<List<BoHaiQuoteAccidentVo>> quoteVo) {
|
|
|
|
|
|
|
|
try{
|
|
try{
|
|
|
//调用
|
|
//调用
|
|
@@ -727,7 +719,7 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
// 通过 协议id获取配置实体
|
|
// 通过 协议id获取配置实体
|
|
|
PingAnConfigureParameters parameters = configureParametersComponents.toEntity(PingAnConfigureParameters.class,
|
|
PingAnConfigureParameters parameters = configureParametersComponents.toEntity(PingAnConfigureParameters.class,
|
|
|
ptlAgreementAttribution);
|
|
ptlAgreementAttribution);
|
|
|
- DocumentStatusListRequest documentStatusListRequest=new DocumentStatusListRequest(subOrderNo,parameters);
|
|
|
|
|
|
|
+ DocumentStatusListRequest documentStatusListRequest=new DocumentStatusListRequest(quoteVo.getOrderNo(),parameters);
|
|
|
DocumentStatusListResponse documentStatusListResponse=null;
|
|
DocumentStatusListResponse documentStatusListResponse=null;
|
|
|
try{
|
|
try{
|
|
|
documentStatusListResponse= pinganRequestApiComponents.getDocumentStatusList(documentStatusListRequest);
|
|
documentStatusListResponse= pinganRequestApiComponents.getDocumentStatusList(documentStatusListRequest);
|
|
@@ -753,7 +745,7 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public HttpResult<Object> repealDocument(String subOrderNo,BaseQuoteVo<List<BoHaiQuoteAccidentVo>> quoteVo, BaseQuoteInfoVo quoteInfo) {
|
|
|
|
|
|
|
+ public HttpResult<Object> repealDocument(BaseQuoteVo<List<BoHaiQuoteAccidentVo>> quoteVo) {
|
|
|
try{
|
|
try{
|
|
|
//调用
|
|
//调用
|
|
|
// 协议id获取配置实体
|
|
// 协议id获取配置实体
|
|
@@ -763,7 +755,7 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
// 通过 协议id获取配置实体
|
|
// 通过 协议id获取配置实体
|
|
|
PingAnConfigureParameters parameters = configureParametersComponents.toEntity(PingAnConfigureParameters.class,
|
|
PingAnConfigureParameters parameters = configureParametersComponents.toEntity(PingAnConfigureParameters.class,
|
|
|
ptlAgreementAttribution);
|
|
ptlAgreementAttribution);
|
|
|
- RepealDocumentRequest repealDocumentRequest=new RepealDocumentRequest(subOrderNo,quoteVo,quoteInfo,"2");
|
|
|
|
|
|
|
+ RepealDocumentRequest repealDocumentRequest=new RepealDocumentRequest(quoteVo.getOrderNo(),parameters.getUserId(),parameters.getCityCode(),"2");
|
|
|
RepealDocumentResponse repealDocumentResponse=null;
|
|
RepealDocumentResponse repealDocumentResponse=null;
|
|
|
try{
|
|
try{
|
|
|
repealDocumentResponse= pinganRequestApiComponents.repealDocument(repealDocumentRequest);
|
|
repealDocumentResponse= pinganRequestApiComponents.repealDocument(repealDocumentRequest);
|