|
@@ -994,16 +994,20 @@ public class CommunityArticleController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- @ApiOperation("搜索用户列表信息")
|
|
|
|
|
|
+ @ApiOperation("根据条件搜索用户列表信息(无权限卡控)")
|
|
@GetMapping("/userList")
|
|
@GetMapping("/userList")
|
|
public AjaxResult userList(String SearchValue) {
|
|
public AjaxResult userList(String SearchValue) {
|
|
if (Objects.isNull(SearchValue)) {
|
|
if (Objects.isNull(SearchValue)) {
|
|
return AjaxResult.error();
|
|
return AjaxResult.error();
|
|
}
|
|
}
|
|
|
|
+ int pageNum = Convert.toInt(ServletUtils.getParameter("pageNum"), 1);
|
|
|
|
+ int pageSize = Convert.toInt(ServletUtils.getParameter("pageSize"), 10);
|
|
|
|
+ int offset = (pageNum - 1) * pageSize;
|
|
|
|
+
|
|
Long userId = SecurityUtils.getLoginUser().getUserId();
|
|
Long userId = SecurityUtils.getLoginUser().getUserId();
|
|
List<CommunityUserInfoVo> communityUserInfoVos = null;
|
|
List<CommunityUserInfoVo> communityUserInfoVos = null;
|
|
try {
|
|
try {
|
|
- communityUserInfoVos = communityArticleService.selectUserBySearchValue(SearchValue);
|
|
|
|
|
|
+ communityUserInfoVos = communityArticleService.selectUserBySearchValue(SearchValue, offset, pageSize);
|
|
|
|
|
|
List<CommunityUserInfoVo> communityUserInfoVos_copy = new ArrayList<>(communityUserInfoVos);
|
|
List<CommunityUserInfoVo> communityUserInfoVos_copy = new ArrayList<>(communityUserInfoVos);
|
|
for (CommunityUserInfoVo communityUserInfoVo : communityUserInfoVos_copy) {
|
|
for (CommunityUserInfoVo communityUserInfoVo : communityUserInfoVos_copy) {
|
|
@@ -1053,15 +1057,18 @@ public class CommunityArticleController extends BaseController {
|
|
return AjaxResult.success(communityUserInfoVos);
|
|
return AjaxResult.success(communityUserInfoVos);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation("根据条件查询账户")
|
|
|
|
|
|
+ @ApiOperation("根据条件搜索用户列表信息(有权限卡控)")
|
|
@GetMapping("/selectUserList")
|
|
@GetMapping("/selectUserList")
|
|
public AjaxResult selectUserList(String SearchValue) {
|
|
public AjaxResult selectUserList(String SearchValue) {
|
|
if (Objects.isNull(SearchValue)) {
|
|
if (Objects.isNull(SearchValue)) {
|
|
return AjaxResult.error();
|
|
return AjaxResult.error();
|
|
}
|
|
}
|
|
|
|
+ int pageNum = Convert.toInt(ServletUtils.getParameter("pageNum"), 1);
|
|
|
|
+ int pageSize = Convert.toInt(ServletUtils.getParameter("pageSize"), 10);
|
|
|
|
+ int offset = (pageNum - 1) * pageSize;
|
|
List<CommunityUserInfoVo> communityUserInfoVos = null;
|
|
List<CommunityUserInfoVo> communityUserInfoVos = null;
|
|
try {
|
|
try {
|
|
- communityUserInfoVos = communityArticleService.selectUsersByAccountOrName(SearchValue);
|
|
|
|
|
|
+ communityUserInfoVos = communityArticleService.selectUsersByAccountOrName(SearchValue, offset, pageSize);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.info(e.getMessage());
|
|
log.info(e.getMessage());
|
|
throw new ProjectException();
|
|
throw new ProjectException();
|