|
|
@@ -117,13 +117,13 @@ public class InsDrivingIntentionInsuranceServiceImpl extends ServiceImpl<InsDriv
|
|
|
ProductsType productType = InsuranceRisk.determineInsuranceInformation(insuranceVo.getKind(), insuranceVo.getRisk());
|
|
|
if(insuranceVo.getCompanyCode() != null){
|
|
|
List<PtlAgreement> byCompanyCode = ptlAgreementService.getByCompanyCode(insuranceVo.getCompanyCode());
|
|
|
- List<String> collect = byCompanyCode.stream().map(x -> x.getId()).collect(Collectors.toList());
|
|
|
- query.in(PtlAgreementNonCarProductRule::getAgreementId, collect);
|
|
|
+ List<String> collect = byCompanyCode.stream().map(PtlAgreement::getId).collect(Collectors.toList());
|
|
|
+ query.in(!collect.isEmpty(), PtlAgreementNonCarProductRule::getAgreementId, collect);
|
|
|
}else {
|
|
|
PtlAgreement byAgreementIdNew = ptlAgreementService.getByAgreementIdNew(insuranceVo.getAgreementId());
|
|
|
List<PtlAgreement> byCompanyCode = ptlAgreementService.getByCompanyCode(byAgreementIdNew.getInsuranceCompanyId());
|
|
|
- List<String> collect = byCompanyCode.stream().map(x -> x.getId()).collect(Collectors.toList());
|
|
|
- query.in(PtlAgreementNonCarProductRule::getAgreementId, collect);
|
|
|
+ List<String> collect = byCompanyCode.stream().map(PtlAgreement::getId).collect(Collectors.toList());
|
|
|
+ query.in(!collect.isEmpty(), PtlAgreementNonCarProductRule::getAgreementId, collect);
|
|
|
}
|
|
|
query.le(PtlAgreementNonCarProductRule::getSeatNumMin, insuranceVo.getRuleSeatNum());
|
|
|
query.ge(PtlAgreementNonCarProductRule::getSeatNumMax, insuranceVo.getRuleSeatNum());
|