wks vor 3 Jahren
Ursprung
Commit
30b0930a9a

+ 1 - 2
src/main/java/com/ydtech/modules/protocol/service/impl/PtlInsAttributionTemplateServiceImpl.java

@@ -132,8 +132,7 @@ public class PtlInsAttributionTemplateServiceImpl extends ServiceImpl<PtlInsAttr
 
 
         LambdaQueryWrapper<PtlInsAttributionTemplate> wrapper = byInsCompanyIdAndApiType(ptlInsAttributionTemplateSaveVo.getInsCompanyId(), ptlInsAttributionTemplateSaveVo.getApiType());
         LambdaQueryWrapper<PtlInsAttributionTemplate> wrapper = byInsCompanyIdAndApiType(ptlInsAttributionTemplateSaveVo.getInsCompanyId(), ptlInsAttributionTemplateSaveVo.getApiType());
         PtlInsAttributionTemplate ptlInsAttributionTemplateOne = getOne(wrapper);
         PtlInsAttributionTemplate ptlInsAttributionTemplateOne = getOne(wrapper);
-
-        if (!ObjectUtils.isEmpty(ptlInsAttributionTemplate) && !Objects.equals(ptlInsAttributionTemplateOne.getId(), id)) {
+        if (!ObjectUtils.isEmpty(ptlInsAttributionTemplateOne) && !Objects.equals(ptlInsAttributionTemplateOne.getId(), id)) {
             throw new SystemException("一个保险公司,一种api方式只能配置一种");
             throw new SystemException("一个保险公司,一种api方式只能配置一种");
         }
         }