|
|
@@ -152,7 +152,7 @@ public class HuaTaiOrderApiServiceImpl implements HuaTaiOrderApiService {
|
|
|
*/
|
|
|
@Override
|
|
|
public HttpResult<Object> audit(String companyId) {
|
|
|
- InsAreaCompany insAreaCompany = insAreaCompanyService.getByInsOrderNo(companyId);
|
|
|
+ InsAreaCompany insAreaCompany = insAreaCompanyService.getById(companyId);
|
|
|
// 1. 协议id获取配置实体
|
|
|
HuaTaiConfigureParameters huaTaiConfigureParameters = configureParametersComponents.toEntity(HuaTaiConfigureParameters.class, insAreaCompany.getAgreementId());
|
|
|
InsOrders insOrders = insOrdersService.getById(insAreaCompany.getOrderno());
|
|
|
@@ -267,7 +267,7 @@ public class HuaTaiOrderApiServiceImpl implements HuaTaiOrderApiService {
|
|
|
*/
|
|
|
@Override
|
|
|
public HttpResult<Object> paymentEnquiry(String companyId) {
|
|
|
- InsAreaCompany insAreaCompany = insAreaCompanyService.getByInsOrderNo(companyId);
|
|
|
+ InsAreaCompany insAreaCompany = insAreaCompanyService.getById(companyId);
|
|
|
|
|
|
// 1. 协议id获取配置实体
|
|
|
HuaTaiConfigureParameters huaTaiConfigureParameters = configureParametersComponents.toEntity(HuaTaiConfigureParameters.class, insAreaCompany.getAgreementId());
|
|
|
@@ -320,7 +320,7 @@ public class HuaTaiOrderApiServiceImpl implements HuaTaiOrderApiService {
|
|
|
*/
|
|
|
@Override
|
|
|
public HttpResult<List<String>> getPolicyPrint(PolicyPrintVo policyPrintVo) {
|
|
|
- InsAreaCompany insAreaCompany = insAreaCompanyService.getByInsOrderNo(policyPrintVo.getCompanyId());
|
|
|
+ InsAreaCompany insAreaCompany = insAreaCompanyService.getById(policyPrintVo.getCompanyId());
|
|
|
// 1. 协议id获取配置实体
|
|
|
HuaTaiConfigureParameters huaTaiConfigureParameters = configureParametersComponents.toEntity(HuaTaiConfigureParameters.class, insAreaCompany.getAgreementId());
|
|
|
InsOrders order = insOrdersService.getById(insAreaCompany.getOrderno());
|
|
|
@@ -474,22 +474,28 @@ public class HuaTaiOrderApiServiceImpl implements HuaTaiOrderApiService {
|
|
|
//华泰没有总订单号,使用自定义订单号
|
|
|
String orderNo = IdGenerate.nextId();
|
|
|
insAreaCompany.setId(orderNo);
|
|
|
- insAreaCompany.setInsOrderNo(orderNo);
|
|
|
insAreaCompany.setJqapplyno(quoteRespVo.getJqApplyNo());
|
|
|
insAreaCompany.setSyapplyno(quoteRespVo.getSyApplyNo());
|
|
|
HuaTaiQuotedPriceResponse.ContractDto.TaxDto taxDto = null;
|
|
|
List<HuaTaiQuotedPriceResponse.ContractDto> contractDtoList = quotedPriceResponse.getBusinessData().getContract();
|
|
|
+ String jqQuerySequenceNo = " ";
|
|
|
+ String syQuerySequenceNo = " ";
|
|
|
for(HuaTaiQuotedPriceResponse.ContractDto contractDto:contractDtoList) {
|
|
|
HuaTaiQuotedPriceResponse.ContractDto.ContractMainDto contractMain = contractDto.getContractMain();
|
|
|
+ HuaTaiQuotedPriceResponse.ContractDto.PlatFormMessageDto platFormMessageDto = contractDto.getPlatFormMessage();
|
|
|
if ("1002".equals(contractMain.getRiskCode())) {
|
|
|
+ jqQuerySequenceNo = platFormMessageDto.getQuerySequenceNo();
|
|
|
taxDto = contractDto.getTax();
|
|
|
// 车船税
|
|
|
TaxArrears taxArrears = new TaxArrears("往年欠税",taxDto.getSumTaxDefault(), taxDto.getSumOverdue());
|
|
|
List<TaxArrears> taxArrearsList = Collections.singletonList(taxArrears);
|
|
|
insAreaCompany.setTaxArrears(JSON.parseArray(JSON.toJSONString(taxArrearsList)));
|
|
|
quoteRespVo.setTaxArrears(taxArrearsList);
|
|
|
+ }else{
|
|
|
+ syQuerySequenceNo = platFormMessageDto.getQuerySequenceNo();
|
|
|
}
|
|
|
}
|
|
|
+ insAreaCompany.setInsOrderNo(jqQuerySequenceNo+"-"+syQuerySequenceNo);
|
|
|
quoteRespVo.setCompanyId(insAreaCompany.getId());
|
|
|
insAreaCompanyService.insertCompanyAndOrders(insAreaCompany);
|
|
|
return HttpResult.ok(quotedPriceResponse.getHead().getReturnMessage(), quoteRespVo);
|