@Test public void testListAllRolesByDepartmentId() throws Exception { }
@Override public CommonResult listAllRolesByDepartmentId(Integer departmentId){ JSONObject returnJson = new JSONObject(); List<HashMap> roles = roleMapper.listAllRolesByDepartmentId(departmentId); returnJson.put("roles", roles); return CommonResult.success(returnJson); }
UserManagementImpl implements UserManagementService { @Override public CommonResult listAllRolesByDepartmentId(Integer departmentId){ JSONObject returnJson = new JSONObject(); List<HashMap> roles = roleMapper.listAllRolesByDepartmentId(departmentId); returnJson.put("roles", roles); return CommonResult.success(returnJson); } }
UserManagementImpl implements UserManagementService { @Override public CommonResult listAllRolesByDepartmentId(Integer departmentId){ JSONObject returnJson = new JSONObject(); List<HashMap> roles = roleMapper.listAllRolesByDepartmentId(departmentId); returnJson.put("roles", roles); return CommonResult.success(returnJson); }  }
UserManagementImpl implements UserManagementService { @Override public CommonResult listAllRolesByDepartmentId(Integer departmentId){ JSONObject returnJson = new JSONObject(); List<HashMap> roles = roleMapper.listAllRolesByDepartmentId(departmentId); returnJson.put("roles", roles); return CommonResult.success(returnJson); }  @Override CommonResult getUserById(Integer id); @Override CommonResult insertUser(User user); @Override CommonResult updateUserById(User user); @Override CommonResult deleteUserById(Integer id); @Override CommonResult listAllUsersAndRoles(); @Override CommonResult listAllRolesByDepartmentId(Integer departmentId); }
UserManagementImpl implements UserManagementService { @Override public CommonResult listAllRolesByDepartmentId(Integer departmentId){ JSONObject returnJson = new JSONObject(); List<HashMap> roles = roleMapper.listAllRolesByDepartmentId(departmentId); returnJson.put("roles", roles); return CommonResult.success(returnJson); }  @Override CommonResult getUserById(Integer id); @Override CommonResult insertUser(User user); @Override CommonResult updateUserById(User user); @Override CommonResult deleteUserById(Integer id); @Override CommonResult listAllUsersAndRoles(); @Override CommonResult listAllRolesByDepartmentId(Integer departmentId);  }