新版权限小组角色查询方式调整
This commit is contained in:
parent
5c5bfd37b9
commit
b54b65bc53
Binary file not shown.
@ -613,6 +613,9 @@ public class CoeCooperationAPIManager {
|
|||||||
public void removeCooperationHideRole(String teamId, String roleName) {
|
public void removeCooperationHideRole(String teamId, String roleName) {
|
||||||
CoeCooperationRoleDao roleDao = new CoeCooperationRoleDao();
|
CoeCooperationRoleDao roleDao = new CoeCooperationRoleDao();
|
||||||
CoeCooperationRoleModel deletedRole = roleDao.getCooperationHideRoleByRoleName(teamId, roleName);
|
CoeCooperationRoleModel deletedRole = roleDao.getCooperationHideRoleByRoleName(teamId, roleName);
|
||||||
|
if (deletedRole == null){
|
||||||
|
return;
|
||||||
|
}
|
||||||
removeCooperationRolePerms(teamId, deletedRole.getId());
|
removeCooperationRolePerms(teamId, deletedRole.getId());
|
||||||
roleDao.remove(teamId, deletedRole.getId());
|
roleDao.remove(teamId, deletedRole.getId());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -183,7 +183,7 @@ public class CoeCooperationRoleDao extends DaoObject<CoeCooperationRoleModel> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public List<CoeCooperationRoleModel> getCooperationRoleByTeam(String teamId) {
|
public List<CoeCooperationRoleModel> getCooperationRoleByTeam(String teamId) {
|
||||||
String sql = "SELECT * FROM " + entityName() + " WHERE " + CoeCooperationRoleModel.TEAMID + " =?";
|
String sql = "SELECT * FROM " + entityName() + " WHERE " + CoeCooperationRoleModel.TEAMID + " =? and "+CoeCooperationRoleModel.ISUSER +"=0";
|
||||||
return DBSql.query(sql, rowMapper(), new Object[]{teamId});
|
return DBSql.query(sql, rowMapper(), new Object[]{teamId});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user