|
|
@@ -163,7 +163,14 @@ public class PtlInsAttributionTemplateServiceImpl extends ServiceImpl<PtlInsAttr
|
|
|
String companyId = substring + code;
|
|
|
LambdaQueryWrapper<PtlAgreementAttribution> wrapper = byInsCompanyIdAndApiTypeAndAgreementId(ptlInsAttributionTemplateVo.getAgreementId(),companyId, ptlInsAttributionTemplateVo.getApiType());
|
|
|
PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getOne(wrapper);
|
|
|
- AssertionUtils.isEmpty(ptlAgreementAttribution, "保险公司归属信息模板查询失败");
|
|
|
+ if(ObjectUtils.isEmpty(ptlAgreementAttribution)) {
|
|
|
+
|
|
|
+ PtlInsAttributionTemplate ptlInsAttributionTemplate = lambdaQuery().eq(PtlInsAttributionTemplate::getInsCompanyId, companyId)
|
|
|
+ .eq(PtlInsAttributionTemplate::getApiType, ptlInsAttributionTemplateVo.getApiType())
|
|
|
+ .one();
|
|
|
+ AssertionUtils.isEmpty(ptlInsAttributionTemplate, "保险公司归属信息模板查询失败");
|
|
|
+ ptlAgreementAttribution = new PtlAgreementAttribution(ptlInsAttributionTemplateVo.getAgreementId(), ptlInsAttributionTemplate);
|
|
|
+ }
|
|
|
return HttpResult.ok(ptlAgreementAttribution);
|
|
|
}
|
|
|
|