1. 资源更新完成
2. 修复数据库连接未设置 UTF-8 3. 全局异常拦截器,显示具体的参数缺失~
This commit is contained in:
@@ -85,7 +85,7 @@ public class ResourceServiceImpl implements ResourceService {
|
||||
}
|
||||
// 校验资源唯一性
|
||||
ResourceDO existNameResource = resourceMapper.selectByName(resourceUpdateDTO.getName());
|
||||
if (existNameResource != null && existNameResource.getId().equals(resourceUpdateDTO.getId())) {
|
||||
if (existNameResource != null && !existNameResource.getId().equals(resourceUpdateDTO.getId())) {
|
||||
return ServiceExceptionUtil.error(AdminErrorCodeEnum.RESOURCE_NAME_DUPLICATE.getCode());
|
||||
}
|
||||
// 不能设置自己为父资源
|
||||
|
||||
Reference in New Issue
Block a user