public User findUserByAccount(String userAccount) { return userDao.findUserByAccount(userAccount).get(0); }
@Transactional public boolean updatePwd(String id, String userPwd, String ouserPwd) { int cot = userDao.updatePwd(id, userPwd, ouserPwd); return cot > 0 ? true : false; }
public List<Role> getUserNotRole(String userId) { return userDao.getUserNotRole(userId); }
public List<User> login(String useraccount, String userpwd) { return userDao.login(useraccount, userpwd); }