|
@@ -133,9 +133,7 @@ public class CompanyFactory {
|
|
|
|
|
|
|
|
public QuotationBaseService getUnderwritingService(InsOrders insOrders, String companyCode, BaseController baseController, UnderwritingVo underwritingVo) {
|
|
public QuotationBaseService getUnderwritingService(InsOrders insOrders, String companyCode, BaseController baseController, UnderwritingVo underwritingVo) {
|
|
|
//设置归属信息
|
|
//设置归属信息
|
|
|
- String token = baseController.getToken();
|
|
|
|
|
- String systemCode = baseController.getAppSystemCode();
|
|
|
|
|
- HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(insOrders.getAgreementId(), token, systemCode);
|
|
|
|
|
|
|
+ HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(insOrders.getAgreementId());
|
|
|
log.info("agreementAttribution对象的值:{}", JSON.toJSONString(agreementAttribution.getData()));
|
|
log.info("agreementAttribution对象的值:{}", JSON.toJSONString(agreementAttribution.getData()));
|
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
|
|
|
|
|
@@ -170,11 +168,9 @@ public class CompanyFactory {
|
|
|
return getQuotationBase(Integer.parseInt(insOrders.getApiType()), companyCode);
|
|
return getQuotationBase(Integer.parseInt(insOrders.getApiType()), companyCode);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public QuotationBaseService getPaymentLinkService(InsOrders insOrders, String companyCode, BaseController baseController, PaymentLinkVo paymentLinkVo) {
|
|
|
|
|
|
|
+ public QuotationBaseService getPaymentLinkService(InsOrders insOrders, String companyCode, PaymentLinkVo paymentLinkVo) {
|
|
|
//设置归属信息
|
|
//设置归属信息
|
|
|
- String token = baseController.getToken();
|
|
|
|
|
- String systemCode = baseController.getAppSystemCode();
|
|
|
|
|
- HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(insOrders.getAgreementId(), token, systemCode);
|
|
|
|
|
|
|
+ HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(insOrders.getAgreementId());
|
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
@@ -190,12 +186,10 @@ public class CompanyFactory {
|
|
|
return getQuotationBase(Integer.parseInt(insOrders.getApiType()), companyCode);
|
|
return getQuotationBase(Integer.parseInt(insOrders.getApiType()), companyCode);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public QuotationBaseService getImageUploadService(InsuranceUploadImageVo insuranceUploadImageVo, BaseController baseController) {
|
|
|
|
|
|
|
+ public QuotationBaseService getImageUploadService(InsuranceUploadImageVo insuranceUploadImageVo) {
|
|
|
//设置归属信息
|
|
//设置归属信息
|
|
|
- String token = baseController.getToken();
|
|
|
|
|
- String systemCode = baseController.getAppSystemCode();
|
|
|
|
|
HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(insuranceUploadImageVo.getOrder()
|
|
HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(insuranceUploadImageVo.getOrder()
|
|
|
- .getAgreementId(), token, systemCode);
|
|
|
|
|
|
|
+ .getAgreementId());
|
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
@@ -221,13 +215,11 @@ public class CompanyFactory {
|
|
|
return service;
|
|
return service;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public QuotationBaseService getClauseDataService(ClauseDataVo clauseDataVo, BaseController baseController) {
|
|
|
|
|
|
|
+ public QuotationBaseService getClauseDataService(ClauseDataVo clauseDataVo) {
|
|
|
|
|
|
|
|
//设置归属信息
|
|
//设置归属信息
|
|
|
- String token = baseController.getToken();
|
|
|
|
|
- String systemCode = baseController.getAppSystemCode();
|
|
|
|
|
HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(clauseDataVo.getOrder()
|
|
HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(clauseDataVo.getOrder()
|
|
|
- .getAgreementId(), token, systemCode);
|
|
|
|
|
|
|
+ .getAgreementId());
|
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
@@ -246,13 +238,11 @@ public class CompanyFactory {
|
|
|
.getInsuranceCompanyCode());
|
|
.getInsuranceCompanyCode());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public QuotationBaseService getOrderStatusService(OrderStatusVo orderStatusVo, InsOrdersService insOrdersService, BaseController baseController) {
|
|
|
|
|
|
|
+ public QuotationBaseService getOrderStatusService(OrderStatusVo orderStatusVo) {
|
|
|
|
|
|
|
|
//设置归属信息
|
|
//设置归属信息
|
|
|
- String token = baseController.getToken();
|
|
|
|
|
- String systemCode = baseController.getAppSystemCode();
|
|
|
|
|
HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(orderStatusVo.getOrder()
|
|
HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(orderStatusVo.getOrder()
|
|
|
- .getAgreementId(), token, systemCode);
|
|
|
|
|
|
|
+ .getAgreementId());
|
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
@@ -272,8 +262,6 @@ public class CompanyFactory {
|
|
|
|
|
|
|
|
public QuotationBaseService getDownloadPolicyService(DownloadPolicyVo downloadPolicyVo, InsOrders insOrders) {
|
|
public QuotationBaseService getDownloadPolicyService(DownloadPolicyVo downloadPolicyVo, InsOrders insOrders) {
|
|
|
//设置归属信息
|
|
//设置归属信息
|
|
|
- String token = baseController.getToken();
|
|
|
|
|
- String systemCode = baseController.getAppSystemCode();
|
|
|
|
|
HttpResult<EsmInsCompany> esmInsCompanyHttpResult = platformClient.findById(insOrders.getCompanyId());
|
|
HttpResult<EsmInsCompany> esmInsCompanyHttpResult = platformClient.findById(insOrders.getCompanyId());
|
|
|
AssertionUtils.isFail(esmInsCompanyHttpResult.getCode() != 200, "保司代码错误");
|
|
AssertionUtils.isFail(esmInsCompanyHttpResult.getCode() != 200, "保司代码错误");
|
|
|
downloadPolicyVo.getOrder().setInsuranceCompanyCode(insOrders.getCompanyId());
|
|
downloadPolicyVo.getOrder().setInsuranceCompanyCode(insOrders.getCompanyId());
|
|
@@ -283,7 +271,7 @@ public class CompanyFactory {
|
|
|
.eq(InsOrdersPolicy::getOrderNo, insOrders.getId())));
|
|
.eq(InsOrdersPolicy::getOrderNo, insOrders.getId())));
|
|
|
downloadPolicyVo.setCarInfo(insOrdersCarInfoService.getOne(new LambdaUpdateWrapper<InsOrdersCarInfo>()
|
|
downloadPolicyVo.setCarInfo(insOrdersCarInfoService.getOne(new LambdaUpdateWrapper<InsOrdersCarInfo>()
|
|
|
.eq(InsOrdersCarInfo::getOrderNo, insOrders.getId())));
|
|
.eq(InsOrdersCarInfo::getOrderNo, insOrders.getId())));
|
|
|
- HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(insOrders.getAgreementId(), token, systemCode);
|
|
|
|
|
|
|
+ HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(insOrders.getAgreementId());
|
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|