Commit ca98ff50 authored by hongguangwu's avatar hongguangwu

数据权限配置-拦截

parent 93777b7d
......@@ -116,6 +116,13 @@ public class SysDataAuthServiceImpl extends ServiceImpl<SysDataAuthMapper, SysDa
String mainId = sysDataAuth.getId();
R<String> failed;
if (mainId == null) {
SysDataAuth old = new SysDataAuth();
old.setLinkId(sysDataAuth.getLinkId());
old.setLinkType(sysDataAuth.getLinkType());
List<SysDataAuth> oldList = this.getSysDataAuthList(old);
if (oldList != null && !oldList.isEmpty()) {
return R.failed(sysDataAuth.getLinkName() + " 已存在,不可新增,请去编辑!");
}
// 新增
sysDataAuth.setCreateBy(user.getId());
sysDataAuth.setCreateName(user.getNickname());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment