Commit 9e37b133 authored by zjy's avatar zjy

user/role/tright 7.15

parent d67cd8f3
...@@ -260,6 +260,7 @@ public class PangdingManagementController { ...@@ -260,6 +260,7 @@ public class PangdingManagementController {
public ResponseResult batchDelete(@RequestBody BatchDeleteReqVo reqVo){ public ResponseResult batchDelete(@RequestBody BatchDeleteReqVo reqVo){
CheckerHelper.newInstance() CheckerHelper.newInstance()
.notBlankCheck("userIdList",reqVo.getUserIdList()) .notBlankCheck("userIdList",reqVo.getUserIdList())
.notBlankCheck("roleId",reqVo.getRoleId())
.checkException(); .checkException();
companyServiceImpl.batchDelete(reqVo); companyServiceImpl.batchDelete(reqVo);
return new ResponseResult(); return new ResponseResult();
......
...@@ -55,6 +55,13 @@ public class AuthorityServiceImpl implements AuthorityService { ...@@ -55,6 +55,13 @@ public class AuthorityServiceImpl implements AuthorityService {
authorityVo.setId(StringHelper.getNewID()); authorityVo.setId(StringHelper.getNewID());
authorityDao.create(authorityVo); authorityDao.create(authorityVo);
/*需要给胖丁默认角色绑定上该权限*/
RoleAuthorityVo roleAuthorityVo = new RoleAuthorityVo();
roleAuthorityVo.setId(StringHelper.getNewID());
roleAuthorityVo.setRoleId(RoleConstant.DEFAULT_ROLE_ID);
roleAuthorityVo.setAuthorityId(authorityVo.getId());
roleAuthorityDao.create(roleAuthorityVo);
AuthorityListReqVo reqVo = new AuthorityListReqVo(); AuthorityListReqVo reqVo = new AuthorityListReqVo();
reqVo.setLevelOne("levelOne"); reqVo.setLevelOne("levelOne");
return this.getListByLevel(reqVo); return this.getListByLevel(reqVo);
......
...@@ -9,7 +9,5 @@ public class RoleConstant { ...@@ -9,7 +9,5 @@ public class RoleConstant {
/** /**
* 超级管理员角色id * 超级管理员角色id
*/ */
public static final String SUPER_ADMIN_ROLE_ID = "z001559267717678b813b7a85db4521f"; public static final String DEFAULT_ROLE_ID = "1";
public static final String ADMIN_ROLE_ID = "z0015604817387d5bcf3437fce751234";
} }
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