Commit efcf3a41 authored by hongguangwu's avatar hongguangwu

数据权限配置初始提交(增删改查)

parent de709b50
......@@ -127,10 +127,18 @@ public class SysDataAuthServiceImpl extends ServiceImpl<SysDataAuthMapper, SysDa
sysDataAuth.setCreateBy(user.getId());
sysDataAuth.setCreateName(user.getNickname());
sysDataAuth.setCreateTime(LocalDateTime.now());
sysDataAuth.setIsCreateAuth(0);
sysDataAuth.setIsDeptAuth(0);
sysDataAuth.setIsSettleAuth(0);
sysDataAuth.setIsDiySql(0);
if (Common.isEmpty(sysDataAuth.getIsCreateAuth())) {
sysDataAuth.setIsCreateAuth(0);
}
if (Common.isEmpty(sysDataAuth.getIsDeptAuth())) {
sysDataAuth.setIsDeptAuth(0);
}
if (Common.isEmpty(sysDataAuth.getIsSettleAuth())) {
sysDataAuth.setIsSettleAuth(0);
}
if (Common.isEmpty(sysDataAuth.getIsDiySql())) {
sysDataAuth.setIsDiySql(0);
}
this.save(sysDataAuth);
mainId = sysDataAuth.getId();
} else {
......
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