Skip to content

Commit

Permalink
[pinpoint-apm#1723] User select API was changed searching logic
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo-jung committed Apr 27, 2016
1 parent 5ec22f4 commit cf6aa24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public Object getUser(@RequestParam(value="userId", required=false) String userI
users.add(userService.selectUserByUserId(userId));
return users;
} else if (searchKey != null) {
List<User> users = userService.selectUserByUserName(searchKey);
users.addAll(userService.selectUserByDepartment(searchKey));
List<User> users = userService.selectUserByDepartment(searchKey);
users.addAll(userService.selectUserByUserName(searchKey));
return users;
} else {
return userService.selectUser();
Expand Down

0 comments on commit cf6aa24

Please # to comment.