|
@@ -191,7 +191,7 @@ public class DataAuthManagementFacade {
|
|
|
DataAuth dataAuth = new DataAuth();
|
|
|
BeanUtils.copyProperties(addAuthVO.getAddDataAuthVO(), dataAuth);
|
|
|
dataAuth.setGmtCreate(DateUtil.now());
|
|
|
- dataAuth.setCreator(SysUserUtils.getCurrentPrincipleId());
|
|
|
+ dataAuth.setCreator(SysUserUtils.getCurrentPrincipleId()+"");
|
|
|
if (dataAuthFacade.save(dataAuth)) {
|
|
|
//2.插入新建数据权限与系统的关系 sys_software_data_auth
|
|
|
return saveServiceDataAuth(addAuthVO.getAddDataAuthVO().getSoftwareVOS(), addAuthVO.getRoles(), dataAuth.getId());
|
|
@@ -225,7 +225,7 @@ public class DataAuthManagementFacade {
|
|
|
roleServiceDataAuth.setRoleId(roleId);
|
|
|
roleServiceDataAuth.setSoftwareDataAuthId(softwareDataAuth.getId());
|
|
|
roleServiceDataAuth.setGmtCreate(DateUtil.now());
|
|
|
- roleServiceDataAuth.setCreator(SysUserUtils.getCurrentPrincipleId());
|
|
|
+ roleServiceDataAuth.setCreator(SysUserUtils.getCurrentPrincipleId()+"");
|
|
|
roleSoftwareDataAuths.add(roleServiceDataAuth);
|
|
|
}
|
|
|
if (new RoleSoftwareDataAuthServiceImpl().saveBatch(roleSoftwareDataAuths)) {
|