class LoginUserDao extends BaseDao {

    public LoginUser getUserByUserName(String userName) throws SQLException {
        LoginUser loginUser = new LoginUser();
        loginUser.setUserName(userName);
        List<LoginUser> list = this.getDasClient().queryBySample(loginUser);
        return CollectionUtils.isNotEmpty(list) ? list.get(0) : null;
    }

}