|
|
@@ -657,7 +657,7 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public boolean autoWriteOff(String companyId) throws Exception {
|
|
|
+ public HttpResult<Object> autoWriteOff(String companyId) throws Exception {
|
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(companyId);
|
|
|
YangGuangConfigureParameters ygConfigureParameters = configureParametersComponents.toEntity(YangGuangConfigureParameters.class,
|
|
|
insAreaCompany.getAgreementId());
|
|
|
@@ -669,7 +669,7 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
|
|
|
if (yangGuangAutoWriteOffResponse.getErrorCode().equals("0")) {
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.QUOTE_ING.getCode());
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
|
- return true;
|
|
|
+ return HttpResult.ok("撤单成功");
|
|
|
}
|
|
|
}
|
|
|
// 单商
|
|
|
@@ -679,7 +679,7 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
|
|
|
if (yangGuangAutoWriteOffResponse.getErrorCode().equals("0")) {
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.QUOTE_ING.getCode());
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
|
- return true;
|
|
|
+ return HttpResult.ok("撤单成功");
|
|
|
}
|
|
|
}
|
|
|
//交商同保
|
|
|
@@ -691,12 +691,12 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
|
|
|
if (yangGuangAutoWriteOffResponseJq.getErrorCode().equals("0") && yangGuangAutoWriteOffResponseSy.getErrorCode().equals("0")) {
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.QUOTE_ING.getCode());
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
|
- return true;
|
|
|
+ return HttpResult.ok("撤单成功");
|
|
|
} else {
|
|
|
- return false;
|
|
|
+ return HttpResult.error("撤单失败,原因:"+ yangGuangAutoWriteOffResponseSy.getErrorMessage() + yangGuangAutoWriteOffResponseJq.getErrorMessage());
|
|
|
}
|
|
|
}
|
|
|
- return true;
|
|
|
+ return HttpResult.ok("撤单成功");
|
|
|
}
|
|
|
|
|
|
public QuoteRespVo getQuoteRespVo (YangGuangAccuracyCalculateResponse yangGuangAccuracyCalculateResponse, BaseQuoteInfoVo yaQuoteInfoVo, List<YgQuoteAccidentVo> accidentalDrivingVo, boolean isEnergy) {
|