|
@@ -85,7 +85,7 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
|
|
|
|
|
private final InsUploadFilesService insUploadFilesService;
|
|
private final InsUploadFilesService insUploadFilesService;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ private final PinganApiLogService pinganApiLogService;
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1122,7 +1122,8 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
* @Date: 2024/7/18 14:45
|
|
* @Date: 2024/7/18 14:45
|
|
|
* @Description: 组合成驾意外险信息
|
|
* @Description: 组合成驾意外险信息
|
|
|
*/
|
|
*/
|
|
|
- public List<InsDrivingIntentionInsuranceVo> productQueryList(ProductDetailsRequest productDetailsRequest) {
|
|
|
|
|
|
|
+ public Map<String, List<InsDrivingIntentionInsuranceVo>> productQueryList(ProductDetailsRequest productDetailsRequest) {
|
|
|
|
|
+ Map<String, List<InsDrivingIntentionInsuranceVo>> map=new HashMap<String, List<InsDrivingIntentionInsuranceVo>>();
|
|
|
//参数验证
|
|
//参数验证
|
|
|
if (StringUtils.isBlank(productDetailsRequest.getAgreementId())) {
|
|
if (StringUtils.isBlank(productDetailsRequest.getAgreementId())) {
|
|
|
new SystemException("协议id不能为空!!");
|
|
new SystemException("协议id不能为空!!");
|
|
@@ -1174,11 +1175,11 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
List<InsDrivingIntentionInsuranceVo> cyList = getCYAndXWList(unAutoListInfo, productDetailsRequest.getSeats(), productDetailsRequest.getCompanyId());
|
|
List<InsDrivingIntentionInsuranceVo> cyList = getCYAndXWList(unAutoListInfo, productDetailsRequest.getSeats(), productDetailsRequest.getCompanyId());
|
|
|
List<InsDrivingIntentionInsuranceVo> xwList = getCYAndXWList(xiaoWeiListInfo, productDetailsRequest.getSeats(), productDetailsRequest.getCompanyId());
|
|
List<InsDrivingIntentionInsuranceVo> xwList = getCYAndXWList(xiaoWeiListInfo, productDetailsRequest.getSeats(), productDetailsRequest.getCompanyId());
|
|
|
List<InsDrivingIntentionInsuranceVo> zhList = getCHList(combinationInfoList, productDetailsRequest.getSeats(), productDetailsRequest.getCompanyId());
|
|
List<InsDrivingIntentionInsuranceVo> zhList = getCHList(combinationInfoList, productDetailsRequest.getSeats(), productDetailsRequest.getCompanyId());
|
|
|
- all.addAll(cyList);
|
|
|
|
|
- all.addAll(xwList);
|
|
|
|
|
- all.addAll(zhList);
|
|
|
|
|
|
|
+ map.put("1",cyList);
|
|
|
|
|
+ map.put("2",xwList);
|
|
|
|
|
+ map.put("3",zhList);
|
|
|
}
|
|
}
|
|
|
- return all;
|
|
|
|
|
|
|
+ return map;
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
* @version
|
|
* @version
|
|
@@ -1553,6 +1554,13 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
String businessNo = payReturnRequest.getBusinessNo();
|
|
String businessNo = payReturnRequest.getBusinessNo();
|
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getOne(new LambdaQueryWrapper<InsAreaCompany>()
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getOne(new LambdaQueryWrapper<InsAreaCompany>()
|
|
|
.eq(InsAreaCompany::getNoticeNo, businessNo));
|
|
.eq(InsAreaCompany::getNoticeNo, businessNo));
|
|
|
|
|
+ PinganApiLog pinganApiLog = new PinganApiLog(insAreaCompany.getOrderno(),insAreaCompany.getId(),insAreaCompany.getAgreementId());
|
|
|
|
|
+ pinganApiLog.setId(null);
|
|
|
|
|
+ pinganApiLog.setRequestUrl("/payReturn");
|
|
|
|
|
+ pinganApiLog.setRequestType("支付回调");
|
|
|
|
|
+ pinganApiLog.setRequestParam(payReturnRequest.toString());
|
|
|
|
|
+ pinganApiLog.setResponseBody(null);
|
|
|
|
|
+ pinganApiLogService.save(pinganApiLog);
|
|
|
// 账号信息
|
|
// 账号信息
|
|
|
PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
|
|
PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
|
|
|
//查询单证状态
|
|
//查询单证状态
|
|
@@ -1567,7 +1575,7 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
|
|
|
if (StringUtils.isNotBlank(forceApplyNo)) {
|
|
if (StringUtils.isNotBlank(forceApplyNo)) {
|
|
|
list.add(forceApplyNo);
|
|
list.add(forceApplyNo);
|
|
|
}
|
|
}
|
|
|
- PinganApiLog pinganApiLog = new PinganApiLog(insAreaCompany.getOrderno(),insAreaCompany.getId(),insAreaCompany.getAgreementId());
|
|
|
|
|
|
|
+ pinganApiLog.setId(null);
|
|
|
DocumentStatusListRequest documentStatusListRequest = new DocumentStatusListRequest(list, parameters);
|
|
DocumentStatusListRequest documentStatusListRequest = new DocumentStatusListRequest(list, parameters);
|
|
|
DocumentStatusListResponse documentStatusListResponse = null;
|
|
DocumentStatusListResponse documentStatusListResponse = null;
|
|
|
try {
|
|
try {
|