|
|
@@ -24,6 +24,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
@@ -132,7 +133,7 @@ public class PtlInsAttributionTemplateServiceImpl extends ServiceImpl<PtlInsAttr
|
|
|
LambdaQueryWrapper<PtlInsAttributionTemplate> wrapper = byInsCompanyIdAndApiType(ptlInsAttributionTemplateSaveVo.getInsCompanyId(), ptlInsAttributionTemplateSaveVo.getApiType());
|
|
|
PtlInsAttributionTemplate ptlInsAttributionTemplateOne = getOne(wrapper);
|
|
|
|
|
|
- if (!Objects.equals(ptlInsAttributionTemplateOne.getId(), id)) {
|
|
|
+ if (!ObjectUtils.isEmpty(ptlInsAttributionTemplate) && !Objects.equals(ptlInsAttributionTemplateOne.getId(), id)) {
|
|
|
throw new SystemException("一个保险公司,一种api方式只能配置一种");
|
|
|
}
|
|
|
|