class LoginUserDao extends BaseDao {

    public int updateUserPassword(LoginUser user) throws SQLException {
        if (user == null) {
            return 0;
        }
        String sql = "UPDATE login_users SET password = ? WHERE id = ?";
        return this.updataBysql(sql,
                Parameter.varcharOf(StringUtils.EMPTY, user.getPassword()),
                Parameter.integerOf(StringUtils.EMPTY, user.getId()));
    }

}