提交 bd7e73e4 作者: 张小凤

User(update)

上级 066b6698
......@@ -112,13 +112,4 @@ public class UserAccountController extends BaseController {
return userAccountService.removeAppAccount(userAccountId);
}
@ApiOperation(value = "角色管理-当前角色绑定了那些账号")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@GetMapping("roleAccountList")
public ResultBody<UserAccountSimpleDTO> roleAccountList(@ApiParam(value = "角色id", required = true) @RequestParam Integer id) {
return userAccountService.roleAccountList(id);
}
}
......@@ -169,11 +169,4 @@ public interface UserServiceDao {
*/
List<UserAccountDO> listAppUser(UserAccountQO param);
/**
* 角色关联了那些id
*
* @param id
* @return
*/
List<UserAccountDO> roleAccountList(Integer id);
}
......@@ -188,11 +188,4 @@ public interface UserAccountService {
ResultBody removeAppAccount(Integer userAccountId);
/**
* 角色关联了那些账号
*
* @param id
* @return
*/
ResultBody roleAccountList(Integer id);
}
......@@ -360,11 +360,5 @@ public class UserAccountServiceImpl implements UserAccountService {
return userAccountDOList;
}
@Override
public ResultBody roleAccountList(Integer id) {
List<UserAccountDO> roleInfoDOS = userServiceDao.roleAccountList(id);
List<UserAccountSimpleDTO> accountSimpleDTOS = roleInfoDOS.stream().map(UserAccountDO::buildUserAccountSimpleDTO).collect(Collectors.toList());
return ResultBody.success(accountSimpleDTOS);
}
}
......@@ -394,16 +394,5 @@
order by ua.create_time desc
limit #{pageNo}, #{pageSize}
</select>
<select id="roleAccountList" resultMap="userAccountResultMap">
SELECT urr.user_account_id,
ua.user_name,
ua.uid,
ua.phone_num,
ua.user_name,
ua.is_deleted
FROM user_role_rel urr
LEFT JOIN user_account ua ON ua.id = urr.user_account_id
WHERE urr.role_id = #{id}
AND ua.is_deleted = 0
</select>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论