Commit a13e3cfa authored by hongguangwu's avatar hongguangwu

数据权限配置提交-优化1

parent c8f1e60b
......@@ -90,7 +90,7 @@ public class DataAuthController {
@Operation(summary = "新增/编辑数据权限配置")
@SysLog("系统管理-数据权限-新增/编辑数据权限配置")
@PostMapping("/saveOrUpdate")
@PreAuthorize("@pms.hasPermission('sys_data_auth_add')")
//@PreAuthorize("@pms.hasPermission('sys_data_auth_add')")
public R<String> saveOrUpdate(@RequestBody SysDataAuthVO sysDataAuthVO) {
return sysDataAuthService.saveDataAuth(sysDataAuthVO);
}
......
......@@ -120,9 +120,15 @@ 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);
this.save(sysDataAuth);
mainId = sysDataAuth.getId();
} else {
sysDataAuth.setUpdateBy(user.getId());
sysDataAuth.setUpdateTime(LocalDateTime.now());
// 删除之前的关系
this.deleteSubInfoByMainId(mainId);
}
......
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