Skip to content

Commit

Permalink
fixed a bug in userService
Browse files Browse the repository at this point in the history
  • Loading branch information
xenv committed Mar 1, 2018
1 parent 42d4d22 commit ab752c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tmall/service/impl/UserServiceImpl.java
Expand Up @@ -24,6 +24,6 @@ public Integer add(User user) throws Exception {

@Override
public User get(String name, String password) {
return (User) getOne("name", name, "password", PasswordUtil.encryptPassword(password));
return (User) getOne("name", name, "password", PasswordUtil.encryptPassword(password), "order","id asc");
}
}

0 comments on commit ab752c5

Please sign in to comment.