// Code generated by go-queryset. DO NOT EDIT.
package models

import (
	"errors"
	"fmt"
	"strings"
	"time"

	"github.com/jinzhu/gorm"
)

// ===== BEGIN of all query sets

// ===== BEGIN of query set DepositRefundRecordQuerySet

// DepositRefundRecordQuerySet is an queryset type for DepositRefundRecord
type DepositRefundRecordQuerySet struct {
	db *gorm.DB
}

// NewDepositRefundRecordQuerySet constructs new DepositRefundRecordQuerySet
func NewDepositRefundRecordQuerySet(db *gorm.DB) DepositRefundRecordQuerySet {
	return DepositRefundRecordQuerySet{
		db: db.Model(&DepositRefundRecord{}),
	}
}

func (qs DepositRefundRecordQuerySet) w(db *gorm.DB) DepositRefundRecordQuerySet {
	return NewDepositRefundRecordQuerySet(db)
}

func (qs DepositRefundRecordQuerySet) Select(fields ...DepositRefundRecordDBSchemaField) DepositRefundRecordQuerySet {
	names := []string{}
	for _, f := range fields {
		names = append(names, f.String())
	}

	return qs.w(qs.db.Select(strings.Join(names, ",")))
}

// Create is an autogenerated method
// nolint: dupl
func (o *DepositRefundRecord) Create(db *gorm.DB) error {
	return db.Create(o).Error
}

// Delete is an autogenerated method
// nolint: dupl
func (o *DepositRefundRecord) Delete(db *gorm.DB) error {
	return db.Delete(o).Error
}

// All is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) All(ret *[]DepositRefundRecord) error {
	return qs.db.Find(ret).Error
}

// AmountEq is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) AmountEq(amount uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("amount = ?", amount))
}

// AmountGt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) AmountGt(amount uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("amount > ?", amount))
}

// AmountGte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) AmountGte(amount uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("amount >= ?", amount))
}

// AmountIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) AmountIn(amount ...uint32) DepositRefundRecordQuerySet {
	if len(amount) == 0 {
		qs.db.AddError(errors.New("must at least pass one amount in AmountIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("amount IN (?)", amount))
}

// AmountLt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) AmountLt(amount uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("amount < ?", amount))
}

// AmountLte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) AmountLte(amount uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("amount <= ?", amount))
}

// AmountNe is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) AmountNe(amount uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("amount != ?", amount))
}

// AmountNotIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) AmountNotIn(amount ...uint32) DepositRefundRecordQuerySet {
	if len(amount) == 0 {
		qs.db.AddError(errors.New("must at least pass one amount in AmountNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("amount NOT IN (?)", amount))
}

// ConfirmTimeEq is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) ConfirmTimeEq(confirmTime time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("confirm_time = ?", confirmTime))
}

// ConfirmTimeGt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) ConfirmTimeGt(confirmTime time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("confirm_time > ?", confirmTime))
}

// ConfirmTimeGte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) ConfirmTimeGte(confirmTime time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("confirm_time >= ?", confirmTime))
}

// ConfirmTimeLt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) ConfirmTimeLt(confirmTime time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("confirm_time < ?", confirmTime))
}

// ConfirmTimeLte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) ConfirmTimeLte(confirmTime time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("confirm_time <= ?", confirmTime))
}

// ConfirmTimeNe is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) ConfirmTimeNe(confirmTime time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("confirm_time != ?", confirmTime))
}

// Count is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) Count() (int, error) {
	var count int
	err := qs.db.Count(&count).Error
	return count, err
}

// CreatedAtEq is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) CreatedAtEq(createdAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("created_at = ?", createdAt))
}

// CreatedAtGt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) CreatedAtGt(createdAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("created_at > ?", createdAt))
}

// CreatedAtGte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) CreatedAtGte(createdAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("created_at >= ?", createdAt))
}

// CreatedAtLt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) CreatedAtLt(createdAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("created_at < ?", createdAt))
}

// CreatedAtLte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) CreatedAtLte(createdAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("created_at <= ?", createdAt))
}

// CreatedAtNe is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) CreatedAtNe(createdAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("created_at != ?", createdAt))
}

// Delete is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) Delete() error {
	return qs.db.Delete(DepositRefundRecord{}).Error
}

// DeleteNum is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeleteNum() (int64, error) {
	db := qs.db.Delete(DepositRefundRecord{})
	return db.RowsAffected, db.Error
}

// DeleteNumUnscoped is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeleteNumUnscoped() (int64, error) {
	db := qs.db.Unscoped().Delete(DepositRefundRecord{})
	return db.RowsAffected, db.Error
}

// DeletedAtEq is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeletedAtEq(deletedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at = ?", deletedAt))
}

// DeletedAtGt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeletedAtGt(deletedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at > ?", deletedAt))
}

// DeletedAtGte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeletedAtGte(deletedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at >= ?", deletedAt))
}

// DeletedAtIsNotNull is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeletedAtIsNotNull() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at IS NOT NULL"))
}

// DeletedAtIsNull is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeletedAtIsNull() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at IS NULL"))
}

// DeletedAtLt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeletedAtLt(deletedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at < ?", deletedAt))
}

// DeletedAtLte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeletedAtLte(deletedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at <= ?", deletedAt))
}

// DeletedAtNe is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) DeletedAtNe(deletedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at != ?", deletedAt))
}

// GetDB is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) GetDB() *gorm.DB {
	return qs.db
}

// GetUpdater is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) GetUpdater() DepositRefundRecordUpdater {
	return NewDepositRefundRecordUpdater(qs.db)
}

// IDEq is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) IDEq(ID uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("id = ?", ID))
}

// IDGt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) IDGt(ID uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("id > ?", ID))
}

// IDGte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) IDGte(ID uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("id >= ?", ID))
}

// IDIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) IDIn(ID ...uint32) DepositRefundRecordQuerySet {
	if len(ID) == 0 {
		qs.db.AddError(errors.New("must at least pass one ID in IDIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("id IN (?)", ID))
}

// IDLt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) IDLt(ID uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("id < ?", ID))
}

// IDLte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) IDLte(ID uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("id <= ?", ID))
}

// IDNe is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) IDNe(ID uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("id != ?", ID))
}

// IDNotIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) IDNotIn(ID ...uint32) DepositRefundRecordQuerySet {
	if len(ID) == 0 {
		qs.db.AddError(errors.New("must at least pass one ID in IDNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("id NOT IN (?)", ID))
}

// Limit is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) Limit(limit int) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Limit(limit))
}

// Offset is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) Offset(offset int) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Offset(offset))
}

// One is used to retrieve one result. It returns gorm.ErrRecordNotFound
// if nothing was fetched
func (qs DepositRefundRecordQuerySet) One(ret *DepositRefundRecord) error {
	return qs.db.First(ret).Error
}

// OperatorEq is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OperatorEq(operator uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("operator = ?", operator))
}

// OperatorGt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OperatorGt(operator uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("operator > ?", operator))
}

// OperatorGte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OperatorGte(operator uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("operator >= ?", operator))
}

// OperatorIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OperatorIn(operator ...uint32) DepositRefundRecordQuerySet {
	if len(operator) == 0 {
		qs.db.AddError(errors.New("must at least pass one operator in OperatorIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("operator IN (?)", operator))
}

// OperatorLt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OperatorLt(operator uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("operator < ?", operator))
}

// OperatorLte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OperatorLte(operator uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("operator <= ?", operator))
}

// OperatorNe is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OperatorNe(operator uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("operator != ?", operator))
}

// OperatorNotIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OperatorNotIn(operator ...uint32) DepositRefundRecordQuerySet {
	if len(operator) == 0 {
		qs.db.AddError(errors.New("must at least pass one operator in OperatorNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("operator NOT IN (?)", operator))
}

// OrderAscByAmount is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderAscByAmount() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("amount ASC"))
}

// OrderAscByConfirmTime is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderAscByConfirmTime() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("confirm_time ASC"))
}

// OrderAscByCreatedAt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderAscByCreatedAt() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("created_at ASC"))
}

// OrderAscByDeletedAt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderAscByDeletedAt() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("deleted_at ASC"))
}

// OrderAscByID is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderAscByID() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("id ASC"))
}

// OrderAscByOperator is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderAscByOperator() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("operator ASC"))
}

// OrderAscByStatus is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderAscByStatus() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("status ASC"))
}

// OrderAscByUid is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderAscByUid() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("uid ASC"))
}

// OrderAscByUpdatedAt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderAscByUpdatedAt() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("updated_at ASC"))
}

// OrderDescByAmount is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderDescByAmount() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("amount DESC"))
}

// OrderDescByConfirmTime is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderDescByConfirmTime() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("confirm_time DESC"))
}

// OrderDescByCreatedAt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderDescByCreatedAt() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("created_at DESC"))
}

// OrderDescByDeletedAt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderDescByDeletedAt() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("deleted_at DESC"))
}

// OrderDescByID is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderDescByID() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("id DESC"))
}

// OrderDescByOperator is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderDescByOperator() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("operator DESC"))
}

// OrderDescByStatus is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderDescByStatus() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("status DESC"))
}

// OrderDescByUid is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderDescByUid() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("uid DESC"))
}

// OrderDescByUpdatedAt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) OrderDescByUpdatedAt() DepositRefundRecordQuerySet {
	return qs.w(qs.db.Order("updated_at DESC"))
}

// StatusEq is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) StatusEq(status uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("status = ?", status))
}

// StatusGt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) StatusGt(status uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("status > ?", status))
}

// StatusGte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) StatusGte(status uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("status >= ?", status))
}

// StatusIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) StatusIn(status ...uint32) DepositRefundRecordQuerySet {
	if len(status) == 0 {
		qs.db.AddError(errors.New("must at least pass one status in StatusIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("status IN (?)", status))
}

// StatusLt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) StatusLt(status uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("status < ?", status))
}

// StatusLte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) StatusLte(status uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("status <= ?", status))
}

// StatusNe is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) StatusNe(status uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("status != ?", status))
}

// StatusNotIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) StatusNotIn(status ...uint32) DepositRefundRecordQuerySet {
	if len(status) == 0 {
		qs.db.AddError(errors.New("must at least pass one status in StatusNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("status NOT IN (?)", status))
}

// UidEq is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UidEq(uid uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("uid = ?", uid))
}

// UidGt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UidGt(uid uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("uid > ?", uid))
}

// UidGte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UidGte(uid uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("uid >= ?", uid))
}

// UidIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UidIn(uid ...uint32) DepositRefundRecordQuerySet {
	if len(uid) == 0 {
		qs.db.AddError(errors.New("must at least pass one uid in UidIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("uid IN (?)", uid))
}

// UidLt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UidLt(uid uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("uid < ?", uid))
}

// UidLte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UidLte(uid uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("uid <= ?", uid))
}

// UidNe is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UidNe(uid uint32) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("uid != ?", uid))
}

// UidNotIn is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UidNotIn(uid ...uint32) DepositRefundRecordQuerySet {
	if len(uid) == 0 {
		qs.db.AddError(errors.New("must at least pass one uid in UidNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("uid NOT IN (?)", uid))
}

// UpdatedAtEq is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UpdatedAtEq(updatedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at = ?", updatedAt))
}

// UpdatedAtGt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UpdatedAtGt(updatedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at > ?", updatedAt))
}

// UpdatedAtGte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UpdatedAtGte(updatedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at >= ?", updatedAt))
}

// UpdatedAtLt is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UpdatedAtLt(updatedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at < ?", updatedAt))
}

// UpdatedAtLte is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UpdatedAtLte(updatedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at <= ?", updatedAt))
}

// UpdatedAtNe is an autogenerated method
// nolint: dupl
func (qs DepositRefundRecordQuerySet) UpdatedAtNe(updatedAt time.Time) DepositRefundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at != ?", updatedAt))
}

// SetAmount is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) SetAmount(amount uint32) DepositRefundRecordUpdater {
	u.fields[string(DepositRefundRecordDBSchema.Amount)] = amount
	return u
}

// SetConfirmTime is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) SetConfirmTime(confirmTime time.Time) DepositRefundRecordUpdater {
	u.fields[string(DepositRefundRecordDBSchema.ConfirmTime)] = confirmTime
	return u
}

// SetCreatedAt is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) SetCreatedAt(createdAt time.Time) DepositRefundRecordUpdater {
	u.fields[string(DepositRefundRecordDBSchema.CreatedAt)] = createdAt
	return u
}

// SetDeletedAt is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) SetDeletedAt(deletedAt *time.Time) DepositRefundRecordUpdater {
	u.fields[string(DepositRefundRecordDBSchema.DeletedAt)] = deletedAt
	return u
}

// SetID is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) SetID(ID uint32) DepositRefundRecordUpdater {
	u.fields[string(DepositRefundRecordDBSchema.ID)] = ID
	return u
}

// SetOperator is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) SetOperator(operator uint32) DepositRefundRecordUpdater {
	u.fields[string(DepositRefundRecordDBSchema.Operator)] = operator
	return u
}

// SetStatus is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) SetStatus(status uint32) DepositRefundRecordUpdater {
	u.fields[string(DepositRefundRecordDBSchema.Status)] = status
	return u
}

// SetUid is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) SetUid(uid uint32) DepositRefundRecordUpdater {
	u.fields[string(DepositRefundRecordDBSchema.Uid)] = uid
	return u
}

// SetUpdatedAt is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) SetUpdatedAt(updatedAt time.Time) DepositRefundRecordUpdater {
	u.fields[string(DepositRefundRecordDBSchema.UpdatedAt)] = updatedAt
	return u
}

// Update is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) Update() error {
	return u.db.Updates(u.fields).Error
}

// UpdateNum is an autogenerated method
// nolint: dupl
func (u DepositRefundRecordUpdater) UpdateNum() (int64, error) {
	db := u.db.Updates(u.fields)
	return db.RowsAffected, db.Error
}

// ===== END of query set DepositRefundRecordQuerySet

// ===== BEGIN of DepositRefundRecord modifiers

// DepositRefundRecordDBSchemaField describes database schema field. It requires for method 'Update'
type DepositRefundRecordDBSchemaField string

// String method returns string representation of field.
// nolint: dupl
func (f DepositRefundRecordDBSchemaField) String() string {
	return string(f)
}

// DepositRefundRecordDBSchema stores db field names of DepositRefundRecord
var DepositRefundRecordDBSchema = struct {
	ID          DepositRefundRecordDBSchemaField
	CreatedAt   DepositRefundRecordDBSchemaField
	UpdatedAt   DepositRefundRecordDBSchemaField
	DeletedAt   DepositRefundRecordDBSchemaField
	Uid         DepositRefundRecordDBSchemaField
	Status      DepositRefundRecordDBSchemaField
	Amount      DepositRefundRecordDBSchemaField
	Operator    DepositRefundRecordDBSchemaField
	ConfirmTime DepositRefundRecordDBSchemaField
}{

	ID:          DepositRefundRecordDBSchemaField("id"),
	CreatedAt:   DepositRefundRecordDBSchemaField("created_at"),
	UpdatedAt:   DepositRefundRecordDBSchemaField("updated_at"),
	DeletedAt:   DepositRefundRecordDBSchemaField("deleted_at"),
	Uid:         DepositRefundRecordDBSchemaField("uid"),
	Status:      DepositRefundRecordDBSchemaField("status"),
	Amount:      DepositRefundRecordDBSchemaField("amount"),
	Operator:    DepositRefundRecordDBSchemaField("operator"),
	ConfirmTime: DepositRefundRecordDBSchemaField("confirm_time"),
}

// Update updates DepositRefundRecord fields by primary key
// nolint: dupl
func (o *DepositRefundRecord) Update(db *gorm.DB, fields ...DepositRefundRecordDBSchemaField) error {
	dbNameToFieldName := map[string]interface{}{
		"id":           o.ID,
		"created_at":   o.CreatedAt,
		"updated_at":   o.UpdatedAt,
		"deleted_at":   o.DeletedAt,
		"uid":          o.Uid,
		"status":       o.Status,
		"amount":       o.Amount,
		"operator":     o.Operator,
		"confirm_time": o.ConfirmTime,
	}
	u := map[string]interface{}{}
	for _, f := range fields {
		fs := f.String()
		u[fs] = dbNameToFieldName[fs]
	}
	if err := db.Model(o).Updates(u).Error; err != nil {
		if err == gorm.ErrRecordNotFound {
			return err
		}

		return fmt.Errorf("can't update DepositRefundRecord %v fields %v: %s",
			o, fields, err)
	}

	return nil
}

// DepositRefundRecordUpdater is an DepositRefundRecord updates manager
type DepositRefundRecordUpdater struct {
	fields map[string]interface{}
	db     *gorm.DB
}

// NewDepositRefundRecordUpdater creates new DepositRefundRecord updater
// nolint: dupl
func NewDepositRefundRecordUpdater(db *gorm.DB) DepositRefundRecordUpdater {
	return DepositRefundRecordUpdater{
		fields: map[string]interface{}{},
		db:     db.Model(&DepositRefundRecord{}),
	}
}

// ===== END of DepositRefundRecord modifiers

// ===== BEGIN of query set FundRecordQuerySet

// FundRecordQuerySet is an queryset type for FundRecord
type FundRecordQuerySet struct {
	db *gorm.DB
}

// NewFundRecordQuerySet constructs new FundRecordQuerySet
func NewFundRecordQuerySet(db *gorm.DB) FundRecordQuerySet {
	return FundRecordQuerySet{
		db: db.Model(&FundRecord{}),
	}
}

func (qs FundRecordQuerySet) w(db *gorm.DB) FundRecordQuerySet {
	return NewFundRecordQuerySet(db)
}

func (qs FundRecordQuerySet) Select(fields ...FundRecordDBSchemaField) FundRecordQuerySet {
	names := []string{}
	for _, f := range fields {
		names = append(names, f.String())
	}

	return qs.w(qs.db.Select(strings.Join(names, ",")))
}

// Create is an autogenerated method
// nolint: dupl
func (o *FundRecord) Create(db *gorm.DB) error {
	return db.Create(o).Error
}

// Delete is an autogenerated method
// nolint: dupl
func (o *FundRecord) Delete(db *gorm.DB) error {
	return db.Delete(o).Error
}

// All is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) All(ret *[]FundRecord) error {
	return qs.db.Find(ret).Error
}

// AmountEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) AmountEq(amount int64) FundRecordQuerySet {
	return qs.w(qs.db.Where("amount = ?", amount))
}

// AmountGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) AmountGt(amount int64) FundRecordQuerySet {
	return qs.w(qs.db.Where("amount > ?", amount))
}

// AmountGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) AmountGte(amount int64) FundRecordQuerySet {
	return qs.w(qs.db.Where("amount >= ?", amount))
}

// AmountIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) AmountIn(amount ...int64) FundRecordQuerySet {
	if len(amount) == 0 {
		qs.db.AddError(errors.New("must at least pass one amount in AmountIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("amount IN (?)", amount))
}

// AmountLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) AmountLt(amount int64) FundRecordQuerySet {
	return qs.w(qs.db.Where("amount < ?", amount))
}

// AmountLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) AmountLte(amount int64) FundRecordQuerySet {
	return qs.w(qs.db.Where("amount <= ?", amount))
}

// AmountNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) AmountNe(amount int64) FundRecordQuerySet {
	return qs.w(qs.db.Where("amount != ?", amount))
}

// AmountNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) AmountNotIn(amount ...int64) FundRecordQuerySet {
	if len(amount) == 0 {
		qs.db.AddError(errors.New("must at least pass one amount in AmountNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("amount NOT IN (?)", amount))
}

// Count is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) Count() (int, error) {
	var count int
	err := qs.db.Count(&count).Error
	return count, err
}

// CreatedAtEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) CreatedAtEq(createdAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("created_at = ?", createdAt))
}

// CreatedAtGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) CreatedAtGt(createdAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("created_at > ?", createdAt))
}

// CreatedAtGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) CreatedAtGte(createdAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("created_at >= ?", createdAt))
}

// CreatedAtLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) CreatedAtLt(createdAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("created_at < ?", createdAt))
}

// CreatedAtLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) CreatedAtLte(createdAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("created_at <= ?", createdAt))
}

// CreatedAtNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) CreatedAtNe(createdAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("created_at != ?", createdAt))
}

// Delete is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) Delete() error {
	return qs.db.Delete(FundRecord{}).Error
}

// DeleteNum is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeleteNum() (int64, error) {
	db := qs.db.Delete(FundRecord{})
	return db.RowsAffected, db.Error
}

// DeleteNumUnscoped is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeleteNumUnscoped() (int64, error) {
	db := qs.db.Unscoped().Delete(FundRecord{})
	return db.RowsAffected, db.Error
}

// DeletedAtEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeletedAtEq(deletedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at = ?", deletedAt))
}

// DeletedAtGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeletedAtGt(deletedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at > ?", deletedAt))
}

// DeletedAtGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeletedAtGte(deletedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at >= ?", deletedAt))
}

// DeletedAtIsNotNull is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeletedAtIsNotNull() FundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at IS NOT NULL"))
}

// DeletedAtIsNull is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeletedAtIsNull() FundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at IS NULL"))
}

// DeletedAtLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeletedAtLt(deletedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at < ?", deletedAt))
}

// DeletedAtLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeletedAtLte(deletedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at <= ?", deletedAt))
}

// DeletedAtNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) DeletedAtNe(deletedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("deleted_at != ?", deletedAt))
}

// FundTypeEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeEq(fundType string) FundRecordQuerySet {
	return qs.w(qs.db.Where("fund_type = ?", fundType))
}

// FundTypeGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeGt(fundType string) FundRecordQuerySet {
	return qs.w(qs.db.Where("fund_type > ?", fundType))
}

// FundTypeGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeGte(fundType string) FundRecordQuerySet {
	return qs.w(qs.db.Where("fund_type >= ?", fundType))
}

// FundTypeIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeIn(fundType ...string) FundRecordQuerySet {
	if len(fundType) == 0 {
		qs.db.AddError(errors.New("must at least pass one fundType in FundTypeIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("fund_type IN (?)", fundType))
}

// FundTypeLike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeLike(fundType string) FundRecordQuerySet {
	return qs.w(qs.db.Where("fund_type LIKE ?", fundType))
}

// FundTypeLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeLt(fundType string) FundRecordQuerySet {
	return qs.w(qs.db.Where("fund_type < ?", fundType))
}

// FundTypeLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeLte(fundType string) FundRecordQuerySet {
	return qs.w(qs.db.Where("fund_type <= ?", fundType))
}

// FundTypeNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeNe(fundType string) FundRecordQuerySet {
	return qs.w(qs.db.Where("fund_type != ?", fundType))
}

// FundTypeNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeNotIn(fundType ...string) FundRecordQuerySet {
	if len(fundType) == 0 {
		qs.db.AddError(errors.New("must at least pass one fundType in FundTypeNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("fund_type NOT IN (?)", fundType))
}

// FundTypeNotlike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) FundTypeNotlike(fundType string) FundRecordQuerySet {
	return qs.w(qs.db.Where("fund_type NOT LIKE ?", fundType))
}

// GetDB is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) GetDB() *gorm.DB {
	return qs.db
}

// GetUpdater is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) GetUpdater() FundRecordUpdater {
	return NewFundRecordUpdater(qs.db)
}

// IDEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) IDEq(ID uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("id = ?", ID))
}

// IDGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) IDGt(ID uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("id > ?", ID))
}

// IDGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) IDGte(ID uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("id >= ?", ID))
}

// IDIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) IDIn(ID ...uint32) FundRecordQuerySet {
	if len(ID) == 0 {
		qs.db.AddError(errors.New("must at least pass one ID in IDIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("id IN (?)", ID))
}

// IDLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) IDLt(ID uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("id < ?", ID))
}

// IDLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) IDLte(ID uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("id <= ?", ID))
}

// IDNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) IDNe(ID uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("id != ?", ID))
}

// IDNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) IDNotIn(ID ...uint32) FundRecordQuerySet {
	if len(ID) == 0 {
		qs.db.AddError(errors.New("must at least pass one ID in IDNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("id NOT IN (?)", ID))
}

// Limit is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) Limit(limit int) FundRecordQuerySet {
	return qs.w(qs.db.Limit(limit))
}

// Offset is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) Offset(offset int) FundRecordQuerySet {
	return qs.w(qs.db.Offset(offset))
}

// One is used to retrieve one result. It returns gorm.ErrRecordNotFound
// if nothing was fetched
func (qs FundRecordQuerySet) One(ret *FundRecord) error {
	return qs.db.First(ret).Error
}

// OrderAscByAmount is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByAmount() FundRecordQuerySet {
	return qs.w(qs.db.Order("amount ASC"))
}

// OrderAscByCreatedAt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByCreatedAt() FundRecordQuerySet {
	return qs.w(qs.db.Order("created_at ASC"))
}

// OrderAscByDeletedAt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByDeletedAt() FundRecordQuerySet {
	return qs.w(qs.db.Order("deleted_at ASC"))
}

// OrderAscByFundType is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByFundType() FundRecordQuerySet {
	return qs.w(qs.db.Order("fund_type ASC"))
}

// OrderAscByID is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByID() FundRecordQuerySet {
	return qs.w(qs.db.Order("id ASC"))
}

// OrderAscByOutTradeNo is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByOutTradeNo() FundRecordQuerySet {
	return qs.w(qs.db.Order("out_trade_no ASC"))
}

// OrderAscByPaymentNo is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByPaymentNo() FundRecordQuerySet {
	return qs.w(qs.db.Order("payment_no ASC"))
}

// OrderAscByRefundId is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByRefundId() FundRecordQuerySet {
	return qs.w(qs.db.Order("refund_id ASC"))
}

// OrderAscByRemark is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByRemark() FundRecordQuerySet {
	return qs.w(qs.db.Order("remark ASC"))
}

// OrderAscByStatus is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByStatus() FundRecordQuerySet {
	return qs.w(qs.db.Order("status ASC"))
}

// OrderAscByTransactionId is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByTransactionId() FundRecordQuerySet {
	return qs.w(qs.db.Order("transaction_id ASC"))
}

// OrderAscByUid is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByUid() FundRecordQuerySet {
	return qs.w(qs.db.Order("uid ASC"))
}

// OrderAscByUpdatedAt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderAscByUpdatedAt() FundRecordQuerySet {
	return qs.w(qs.db.Order("updated_at ASC"))
}

// OrderDescByAmount is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByAmount() FundRecordQuerySet {
	return qs.w(qs.db.Order("amount DESC"))
}

// OrderDescByCreatedAt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByCreatedAt() FundRecordQuerySet {
	return qs.w(qs.db.Order("created_at DESC"))
}

// OrderDescByDeletedAt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByDeletedAt() FundRecordQuerySet {
	return qs.w(qs.db.Order("deleted_at DESC"))
}

// OrderDescByFundType is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByFundType() FundRecordQuerySet {
	return qs.w(qs.db.Order("fund_type DESC"))
}

// OrderDescByID is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByID() FundRecordQuerySet {
	return qs.w(qs.db.Order("id DESC"))
}

// OrderDescByOutTradeNo is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByOutTradeNo() FundRecordQuerySet {
	return qs.w(qs.db.Order("out_trade_no DESC"))
}

// OrderDescByPaymentNo is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByPaymentNo() FundRecordQuerySet {
	return qs.w(qs.db.Order("payment_no DESC"))
}

// OrderDescByRefundId is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByRefundId() FundRecordQuerySet {
	return qs.w(qs.db.Order("refund_id DESC"))
}

// OrderDescByRemark is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByRemark() FundRecordQuerySet {
	return qs.w(qs.db.Order("remark DESC"))
}

// OrderDescByStatus is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByStatus() FundRecordQuerySet {
	return qs.w(qs.db.Order("status DESC"))
}

// OrderDescByTransactionId is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByTransactionId() FundRecordQuerySet {
	return qs.w(qs.db.Order("transaction_id DESC"))
}

// OrderDescByUid is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByUid() FundRecordQuerySet {
	return qs.w(qs.db.Order("uid DESC"))
}

// OrderDescByUpdatedAt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OrderDescByUpdatedAt() FundRecordQuerySet {
	return qs.w(qs.db.Order("updated_at DESC"))
}

// OutTradeNoEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoEq(outTradeNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("out_trade_no = ?", outTradeNo))
}

// OutTradeNoGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoGt(outTradeNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("out_trade_no > ?", outTradeNo))
}

// OutTradeNoGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoGte(outTradeNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("out_trade_no >= ?", outTradeNo))
}

// OutTradeNoIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoIn(outTradeNo ...string) FundRecordQuerySet {
	if len(outTradeNo) == 0 {
		qs.db.AddError(errors.New("must at least pass one outTradeNo in OutTradeNoIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("out_trade_no IN (?)", outTradeNo))
}

// OutTradeNoLike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoLike(outTradeNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("out_trade_no LIKE ?", outTradeNo))
}

// OutTradeNoLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoLt(outTradeNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("out_trade_no < ?", outTradeNo))
}

// OutTradeNoLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoLte(outTradeNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("out_trade_no <= ?", outTradeNo))
}

// OutTradeNoNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoNe(outTradeNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("out_trade_no != ?", outTradeNo))
}

// OutTradeNoNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoNotIn(outTradeNo ...string) FundRecordQuerySet {
	if len(outTradeNo) == 0 {
		qs.db.AddError(errors.New("must at least pass one outTradeNo in OutTradeNoNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("out_trade_no NOT IN (?)", outTradeNo))
}

// OutTradeNoNotlike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) OutTradeNoNotlike(outTradeNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("out_trade_no NOT LIKE ?", outTradeNo))
}

// PaymentNoEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoEq(paymentNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("payment_no = ?", paymentNo))
}

// PaymentNoGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoGt(paymentNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("payment_no > ?", paymentNo))
}

// PaymentNoGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoGte(paymentNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("payment_no >= ?", paymentNo))
}

// PaymentNoIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoIn(paymentNo ...string) FundRecordQuerySet {
	if len(paymentNo) == 0 {
		qs.db.AddError(errors.New("must at least pass one paymentNo in PaymentNoIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("payment_no IN (?)", paymentNo))
}

// PaymentNoLike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoLike(paymentNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("payment_no LIKE ?", paymentNo))
}

// PaymentNoLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoLt(paymentNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("payment_no < ?", paymentNo))
}

// PaymentNoLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoLte(paymentNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("payment_no <= ?", paymentNo))
}

// PaymentNoNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoNe(paymentNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("payment_no != ?", paymentNo))
}

// PaymentNoNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoNotIn(paymentNo ...string) FundRecordQuerySet {
	if len(paymentNo) == 0 {
		qs.db.AddError(errors.New("must at least pass one paymentNo in PaymentNoNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("payment_no NOT IN (?)", paymentNo))
}

// PaymentNoNotlike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) PaymentNoNotlike(paymentNo string) FundRecordQuerySet {
	return qs.w(qs.db.Where("payment_no NOT LIKE ?", paymentNo))
}

// RefundIdEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdEq(refundId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("refund_id = ?", refundId))
}

// RefundIdGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdGt(refundId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("refund_id > ?", refundId))
}

// RefundIdGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdGte(refundId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("refund_id >= ?", refundId))
}

// RefundIdIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdIn(refundId ...string) FundRecordQuerySet {
	if len(refundId) == 0 {
		qs.db.AddError(errors.New("must at least pass one refundId in RefundIdIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("refund_id IN (?)", refundId))
}

// RefundIdLike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdLike(refundId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("refund_id LIKE ?", refundId))
}

// RefundIdLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdLt(refundId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("refund_id < ?", refundId))
}

// RefundIdLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdLte(refundId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("refund_id <= ?", refundId))
}

// RefundIdNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdNe(refundId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("refund_id != ?", refundId))
}

// RefundIdNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdNotIn(refundId ...string) FundRecordQuerySet {
	if len(refundId) == 0 {
		qs.db.AddError(errors.New("must at least pass one refundId in RefundIdNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("refund_id NOT IN (?)", refundId))
}

// RefundIdNotlike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RefundIdNotlike(refundId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("refund_id NOT LIKE ?", refundId))
}

// RemarkEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkEq(remark string) FundRecordQuerySet {
	return qs.w(qs.db.Where("remark = ?", remark))
}

// RemarkGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkGt(remark string) FundRecordQuerySet {
	return qs.w(qs.db.Where("remark > ?", remark))
}

// RemarkGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkGte(remark string) FundRecordQuerySet {
	return qs.w(qs.db.Where("remark >= ?", remark))
}

// RemarkIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkIn(remark ...string) FundRecordQuerySet {
	if len(remark) == 0 {
		qs.db.AddError(errors.New("must at least pass one remark in RemarkIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("remark IN (?)", remark))
}

// RemarkLike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkLike(remark string) FundRecordQuerySet {
	return qs.w(qs.db.Where("remark LIKE ?", remark))
}

// RemarkLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkLt(remark string) FundRecordQuerySet {
	return qs.w(qs.db.Where("remark < ?", remark))
}

// RemarkLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkLte(remark string) FundRecordQuerySet {
	return qs.w(qs.db.Where("remark <= ?", remark))
}

// RemarkNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkNe(remark string) FundRecordQuerySet {
	return qs.w(qs.db.Where("remark != ?", remark))
}

// RemarkNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkNotIn(remark ...string) FundRecordQuerySet {
	if len(remark) == 0 {
		qs.db.AddError(errors.New("must at least pass one remark in RemarkNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("remark NOT IN (?)", remark))
}

// RemarkNotlike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) RemarkNotlike(remark string) FundRecordQuerySet {
	return qs.w(qs.db.Where("remark NOT LIKE ?", remark))
}

// StatusEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) StatusEq(status uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("status = ?", status))
}

// StatusGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) StatusGt(status uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("status > ?", status))
}

// StatusGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) StatusGte(status uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("status >= ?", status))
}

// StatusIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) StatusIn(status ...uint32) FundRecordQuerySet {
	if len(status) == 0 {
		qs.db.AddError(errors.New("must at least pass one status in StatusIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("status IN (?)", status))
}

// StatusLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) StatusLt(status uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("status < ?", status))
}

// StatusLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) StatusLte(status uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("status <= ?", status))
}

// StatusNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) StatusNe(status uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("status != ?", status))
}

// StatusNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) StatusNotIn(status ...uint32) FundRecordQuerySet {
	if len(status) == 0 {
		qs.db.AddError(errors.New("must at least pass one status in StatusNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("status NOT IN (?)", status))
}

// TransactionIdEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdEq(transactionId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("transaction_id = ?", transactionId))
}

// TransactionIdGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdGt(transactionId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("transaction_id > ?", transactionId))
}

// TransactionIdGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdGte(transactionId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("transaction_id >= ?", transactionId))
}

// TransactionIdIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdIn(transactionId ...string) FundRecordQuerySet {
	if len(transactionId) == 0 {
		qs.db.AddError(errors.New("must at least pass one transactionId in TransactionIdIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("transaction_id IN (?)", transactionId))
}

// TransactionIdLike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdLike(transactionId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("transaction_id LIKE ?", transactionId))
}

// TransactionIdLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdLt(transactionId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("transaction_id < ?", transactionId))
}

// TransactionIdLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdLte(transactionId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("transaction_id <= ?", transactionId))
}

// TransactionIdNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdNe(transactionId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("transaction_id != ?", transactionId))
}

// TransactionIdNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdNotIn(transactionId ...string) FundRecordQuerySet {
	if len(transactionId) == 0 {
		qs.db.AddError(errors.New("must at least pass one transactionId in TransactionIdNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("transaction_id NOT IN (?)", transactionId))
}

// TransactionIdNotlike is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) TransactionIdNotlike(transactionId string) FundRecordQuerySet {
	return qs.w(qs.db.Where("transaction_id NOT LIKE ?", transactionId))
}

// UidEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UidEq(uid uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("uid = ?", uid))
}

// UidGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UidGt(uid uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("uid > ?", uid))
}

// UidGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UidGte(uid uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("uid >= ?", uid))
}

// UidIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UidIn(uid ...uint32) FundRecordQuerySet {
	if len(uid) == 0 {
		qs.db.AddError(errors.New("must at least pass one uid in UidIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("uid IN (?)", uid))
}

// UidLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UidLt(uid uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("uid < ?", uid))
}

// UidLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UidLte(uid uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("uid <= ?", uid))
}

// UidNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UidNe(uid uint32) FundRecordQuerySet {
	return qs.w(qs.db.Where("uid != ?", uid))
}

// UidNotIn is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UidNotIn(uid ...uint32) FundRecordQuerySet {
	if len(uid) == 0 {
		qs.db.AddError(errors.New("must at least pass one uid in UidNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("uid NOT IN (?)", uid))
}

// UpdatedAtEq is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UpdatedAtEq(updatedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at = ?", updatedAt))
}

// UpdatedAtGt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UpdatedAtGt(updatedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at > ?", updatedAt))
}

// UpdatedAtGte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UpdatedAtGte(updatedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at >= ?", updatedAt))
}

// UpdatedAtLt is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UpdatedAtLt(updatedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at < ?", updatedAt))
}

// UpdatedAtLte is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UpdatedAtLte(updatedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at <= ?", updatedAt))
}

// UpdatedAtNe is an autogenerated method
// nolint: dupl
func (qs FundRecordQuerySet) UpdatedAtNe(updatedAt time.Time) FundRecordQuerySet {
	return qs.w(qs.db.Where("updated_at != ?", updatedAt))
}

// SetAmount is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetAmount(amount int64) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.Amount)] = amount
	return u
}

// SetCreatedAt is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetCreatedAt(createdAt time.Time) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.CreatedAt)] = createdAt
	return u
}

// SetDeletedAt is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetDeletedAt(deletedAt *time.Time) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.DeletedAt)] = deletedAt
	return u
}

// SetFundType is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetFundType(fundType string) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.FundType)] = fundType
	return u
}

// SetID is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetID(ID uint32) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.ID)] = ID
	return u
}

// SetOutTradeNo is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetOutTradeNo(outTradeNo string) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.OutTradeNo)] = outTradeNo
	return u
}

// SetPaymentNo is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetPaymentNo(paymentNo string) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.PaymentNo)] = paymentNo
	return u
}

// SetRefundId is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetRefundId(refundId string) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.RefundId)] = refundId
	return u
}

// SetRemark is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetRemark(remark string) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.Remark)] = remark
	return u
}

// SetStatus is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetStatus(status uint32) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.Status)] = status
	return u
}

// SetTransactionId is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetTransactionId(transactionId string) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.TransactionId)] = transactionId
	return u
}

// SetUid is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetUid(uid uint32) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.Uid)] = uid
	return u
}

// SetUpdatedAt is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) SetUpdatedAt(updatedAt time.Time) FundRecordUpdater {
	u.fields[string(FundRecordDBSchema.UpdatedAt)] = updatedAt
	return u
}

// Update is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) Update() error {
	return u.db.Updates(u.fields).Error
}

// UpdateNum is an autogenerated method
// nolint: dupl
func (u FundRecordUpdater) UpdateNum() (int64, error) {
	db := u.db.Updates(u.fields)
	return db.RowsAffected, db.Error
}

// ===== END of query set FundRecordQuerySet

// ===== BEGIN of FundRecord modifiers

// FundRecordDBSchemaField describes database schema field. It requires for method 'Update'
type FundRecordDBSchemaField string

// String method returns string representation of field.
// nolint: dupl
func (f FundRecordDBSchemaField) String() string {
	return string(f)
}

// FundRecordDBSchema stores db field names of FundRecord
var FundRecordDBSchema = struct {
	ID            FundRecordDBSchemaField
	CreatedAt     FundRecordDBSchemaField
	UpdatedAt     FundRecordDBSchemaField
	DeletedAt     FundRecordDBSchemaField
	Uid           FundRecordDBSchemaField
	FundType      FundRecordDBSchemaField
	Amount        FundRecordDBSchemaField
	TransactionId FundRecordDBSchemaField
	OutTradeNo    FundRecordDBSchemaField
	RefundId      FundRecordDBSchemaField
	PaymentNo     FundRecordDBSchemaField
	Status        FundRecordDBSchemaField
	Remark        FundRecordDBSchemaField
}{

	ID:            FundRecordDBSchemaField("id"),
	CreatedAt:     FundRecordDBSchemaField("created_at"),
	UpdatedAt:     FundRecordDBSchemaField("updated_at"),
	DeletedAt:     FundRecordDBSchemaField("deleted_at"),
	Uid:           FundRecordDBSchemaField("uid"),
	FundType:      FundRecordDBSchemaField("fund_type"),
	Amount:        FundRecordDBSchemaField("amount"),
	TransactionId: FundRecordDBSchemaField("transaction_id"),
	OutTradeNo:    FundRecordDBSchemaField("out_trade_no"),
	RefundId:      FundRecordDBSchemaField("refund_id"),
	PaymentNo:     FundRecordDBSchemaField("payment_no"),
	Status:        FundRecordDBSchemaField("status"),
	Remark:        FundRecordDBSchemaField("remark"),
}

// Update updates FundRecord fields by primary key
// nolint: dupl
func (o *FundRecord) Update(db *gorm.DB, fields ...FundRecordDBSchemaField) error {
	dbNameToFieldName := map[string]interface{}{
		"id":             o.ID,
		"created_at":     o.CreatedAt,
		"updated_at":     o.UpdatedAt,
		"deleted_at":     o.DeletedAt,
		"uid":            o.Uid,
		"fund_type":      o.FundType,
		"amount":         o.Amount,
		"transaction_id": o.TransactionId,
		"out_trade_no":   o.OutTradeNo,
		"refund_id":      o.RefundId,
		"payment_no":     o.PaymentNo,
		"status":         o.Status,
		"remark":         o.Remark,
	}
	u := map[string]interface{}{}
	for _, f := range fields {
		fs := f.String()
		u[fs] = dbNameToFieldName[fs]
	}
	if err := db.Model(o).Updates(u).Error; err != nil {
		if err == gorm.ErrRecordNotFound {
			return err
		}

		return fmt.Errorf("can't update FundRecord %v fields %v: %s",
			o, fields, err)
	}

	return nil
}

// FundRecordUpdater is an FundRecord updates manager
type FundRecordUpdater struct {
	fields map[string]interface{}
	db     *gorm.DB
}

// NewFundRecordUpdater creates new FundRecord updater
// nolint: dupl
func NewFundRecordUpdater(db *gorm.DB) FundRecordUpdater {
	return FundRecordUpdater{
		fields: map[string]interface{}{},
		db:     db.Model(&FundRecord{}),
	}
}

// ===== END of FundRecord modifiers

// ===== BEGIN of query set UserInfoQuerySet

// UserInfoQuerySet is an queryset type for UserInfo
type UserInfoQuerySet struct {
	db *gorm.DB
}

// NewUserInfoQuerySet constructs new UserInfoQuerySet
func NewUserInfoQuerySet(db *gorm.DB) UserInfoQuerySet {
	return UserInfoQuerySet{
		db: db.Model(&UserInfo{}),
	}
}

func (qs UserInfoQuerySet) w(db *gorm.DB) UserInfoQuerySet {
	return NewUserInfoQuerySet(db)
}

func (qs UserInfoQuerySet) Select(fields ...UserInfoDBSchemaField) UserInfoQuerySet {
	names := []string{}
	for _, f := range fields {
		names = append(names, f.String())
	}

	return qs.w(qs.db.Select(strings.Join(names, ",")))
}

// Create is an autogenerated method
// nolint: dupl
func (o *UserInfo) Create(db *gorm.DB) error {
	return db.Create(o).Error
}

// Delete is an autogenerated method
// nolint: dupl
func (o *UserInfo) Delete(db *gorm.DB) error {
	return db.Delete(o).Error
}

// All is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) All(ret *[]UserInfo) error {
	return qs.db.Find(ret).Error
}

// AppOpenIDEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDEq(appOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("app_open_id = ?", appOpenID))
}

// AppOpenIDGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDGt(appOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("app_open_id > ?", appOpenID))
}

// AppOpenIDGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDGte(appOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("app_open_id >= ?", appOpenID))
}

// AppOpenIDIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDIn(appOpenID ...string) UserInfoQuerySet {
	if len(appOpenID) == 0 {
		qs.db.AddError(errors.New("must at least pass one appOpenID in AppOpenIDIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("app_open_id IN (?)", appOpenID))
}

// AppOpenIDLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDLike(appOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("app_open_id LIKE ?", appOpenID))
}

// AppOpenIDLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDLt(appOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("app_open_id < ?", appOpenID))
}

// AppOpenIDLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDLte(appOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("app_open_id <= ?", appOpenID))
}

// AppOpenIDNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDNe(appOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("app_open_id != ?", appOpenID))
}

// AppOpenIDNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDNotIn(appOpenID ...string) UserInfoQuerySet {
	if len(appOpenID) == 0 {
		qs.db.AddError(errors.New("must at least pass one appOpenID in AppOpenIDNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("app_open_id NOT IN (?)", appOpenID))
}

// AppOpenIDNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) AppOpenIDNotlike(appOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("app_open_id NOT LIKE ?", appOpenID))
}

// BondEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) BondEq(bond uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("bond = ?", bond))
}

// BondGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) BondGt(bond uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("bond > ?", bond))
}

// BondGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) BondGte(bond uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("bond >= ?", bond))
}

// BondIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) BondIn(bond ...uint32) UserInfoQuerySet {
	if len(bond) == 0 {
		qs.db.AddError(errors.New("must at least pass one bond in BondIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("bond IN (?)", bond))
}

// BondLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) BondLt(bond uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("bond < ?", bond))
}

// BondLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) BondLte(bond uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("bond <= ?", bond))
}

// BondNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) BondNe(bond uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("bond != ?", bond))
}

// BondNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) BondNotIn(bond ...uint32) UserInfoQuerySet {
	if len(bond) == 0 {
		qs.db.AddError(errors.New("must at least pass one bond in BondNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("bond NOT IN (?)", bond))
}

// CityEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityEq(city string) UserInfoQuerySet {
	return qs.w(qs.db.Where("city = ?", city))
}

// CityGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityGt(city string) UserInfoQuerySet {
	return qs.w(qs.db.Where("city > ?", city))
}

// CityGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityGte(city string) UserInfoQuerySet {
	return qs.w(qs.db.Where("city >= ?", city))
}

// CityIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityIn(city ...string) UserInfoQuerySet {
	if len(city) == 0 {
		qs.db.AddError(errors.New("must at least pass one city in CityIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("city IN (?)", city))
}

// CityLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityLike(city string) UserInfoQuerySet {
	return qs.w(qs.db.Where("city LIKE ?", city))
}

// CityLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityLt(city string) UserInfoQuerySet {
	return qs.w(qs.db.Where("city < ?", city))
}

// CityLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityLte(city string) UserInfoQuerySet {
	return qs.w(qs.db.Where("city <= ?", city))
}

// CityNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityNe(city string) UserInfoQuerySet {
	return qs.w(qs.db.Where("city != ?", city))
}

// CityNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityNotIn(city ...string) UserInfoQuerySet {
	if len(city) == 0 {
		qs.db.AddError(errors.New("must at least pass one city in CityNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("city NOT IN (?)", city))
}

// CityNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CityNotlike(city string) UserInfoQuerySet {
	return qs.w(qs.db.Where("city NOT LIKE ?", city))
}

// Count is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) Count() (int, error) {
	var count int
	err := qs.db.Count(&count).Error
	return count, err
}

// CountryEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryEq(country string) UserInfoQuerySet {
	return qs.w(qs.db.Where("country = ?", country))
}

// CountryGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryGt(country string) UserInfoQuerySet {
	return qs.w(qs.db.Where("country > ?", country))
}

// CountryGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryGte(country string) UserInfoQuerySet {
	return qs.w(qs.db.Where("country >= ?", country))
}

// CountryIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryIn(country ...string) UserInfoQuerySet {
	if len(country) == 0 {
		qs.db.AddError(errors.New("must at least pass one country in CountryIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("country IN (?)", country))
}

// CountryLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryLike(country string) UserInfoQuerySet {
	return qs.w(qs.db.Where("country LIKE ?", country))
}

// CountryLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryLt(country string) UserInfoQuerySet {
	return qs.w(qs.db.Where("country < ?", country))
}

// CountryLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryLte(country string) UserInfoQuerySet {
	return qs.w(qs.db.Where("country <= ?", country))
}

// CountryNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryNe(country string) UserInfoQuerySet {
	return qs.w(qs.db.Where("country != ?", country))
}

// CountryNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryNotIn(country ...string) UserInfoQuerySet {
	if len(country) == 0 {
		qs.db.AddError(errors.New("must at least pass one country in CountryNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("country NOT IN (?)", country))
}

// CountryNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CountryNotlike(country string) UserInfoQuerySet {
	return qs.w(qs.db.Where("country NOT LIKE ?", country))
}

// CreatedAtEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CreatedAtEq(createdAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("created_at = ?", createdAt))
}

// CreatedAtGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CreatedAtGt(createdAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("created_at > ?", createdAt))
}

// CreatedAtGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CreatedAtGte(createdAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("created_at >= ?", createdAt))
}

// CreatedAtLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CreatedAtLt(createdAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("created_at < ?", createdAt))
}

// CreatedAtLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CreatedAtLte(createdAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("created_at <= ?", createdAt))
}

// CreatedAtNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) CreatedAtNe(createdAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("created_at != ?", createdAt))
}

// Delete is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) Delete() error {
	return qs.db.Delete(UserInfo{}).Error
}

// DeleteNum is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeleteNum() (int64, error) {
	db := qs.db.Delete(UserInfo{})
	return db.RowsAffected, db.Error
}

// DeleteNumUnscoped is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeleteNumUnscoped() (int64, error) {
	db := qs.db.Unscoped().Delete(UserInfo{})
	return db.RowsAffected, db.Error
}

// DeletedAtEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeletedAtEq(deletedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("deleted_at = ?", deletedAt))
}

// DeletedAtGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeletedAtGt(deletedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("deleted_at > ?", deletedAt))
}

// DeletedAtGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeletedAtGte(deletedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("deleted_at >= ?", deletedAt))
}

// DeletedAtIsNotNull is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeletedAtIsNotNull() UserInfoQuerySet {
	return qs.w(qs.db.Where("deleted_at IS NOT NULL"))
}

// DeletedAtIsNull is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeletedAtIsNull() UserInfoQuerySet {
	return qs.w(qs.db.Where("deleted_at IS NULL"))
}

// DeletedAtLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeletedAtLt(deletedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("deleted_at < ?", deletedAt))
}

// DeletedAtLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeletedAtLte(deletedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("deleted_at <= ?", deletedAt))
}

// DeletedAtNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DeletedAtNe(deletedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("deleted_at != ?", deletedAt))
}

// DepositEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DepositEq(deposit uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("deposit = ?", deposit))
}

// DepositGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DepositGt(deposit uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("deposit > ?", deposit))
}

// DepositGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DepositGte(deposit uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("deposit >= ?", deposit))
}

// DepositIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DepositIn(deposit ...uint32) UserInfoQuerySet {
	if len(deposit) == 0 {
		qs.db.AddError(errors.New("must at least pass one deposit in DepositIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("deposit IN (?)", deposit))
}

// DepositLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DepositLt(deposit uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("deposit < ?", deposit))
}

// DepositLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DepositLte(deposit uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("deposit <= ?", deposit))
}

// DepositNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DepositNe(deposit uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("deposit != ?", deposit))
}

// DepositNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) DepositNotIn(deposit ...uint32) UserInfoQuerySet {
	if len(deposit) == 0 {
		qs.db.AddError(errors.New("must at least pass one deposit in DepositNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("deposit NOT IN (?)", deposit))
}

// GenderEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GenderEq(gender uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("gender = ?", gender))
}

// GenderGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GenderGt(gender uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("gender > ?", gender))
}

// GenderGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GenderGte(gender uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("gender >= ?", gender))
}

// GenderIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GenderIn(gender ...uint8) UserInfoQuerySet {
	if len(gender) == 0 {
		qs.db.AddError(errors.New("must at least pass one gender in GenderIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("gender IN (?)", gender))
}

// GenderLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GenderLt(gender uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("gender < ?", gender))
}

// GenderLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GenderLte(gender uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("gender <= ?", gender))
}

// GenderNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GenderNe(gender uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("gender != ?", gender))
}

// GenderNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GenderNotIn(gender ...uint8) UserInfoQuerySet {
	if len(gender) == 0 {
		qs.db.AddError(errors.New("must at least pass one gender in GenderNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("gender NOT IN (?)", gender))
}

// GetDB is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GetDB() *gorm.DB {
	return qs.db
}

// GetUpdater is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) GetUpdater() UserInfoUpdater {
	return NewUserInfoUpdater(qs.db)
}

// IDEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IDEq(ID uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("id = ?", ID))
}

// IDGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IDGt(ID uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("id > ?", ID))
}

// IDGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IDGte(ID uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("id >= ?", ID))
}

// IDIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IDIn(ID ...uint32) UserInfoQuerySet {
	if len(ID) == 0 {
		qs.db.AddError(errors.New("must at least pass one ID in IDIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("id IN (?)", ID))
}

// IDLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IDLt(ID uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("id < ?", ID))
}

// IDLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IDLte(ID uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("id <= ?", ID))
}

// IDNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IDNe(ID uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("id != ?", ID))
}

// IDNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IDNotIn(ID ...uint32) UserInfoQuerySet {
	if len(ID) == 0 {
		qs.db.AddError(errors.New("must at least pass one ID in IDNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("id NOT IN (?)", ID))
}

// IPEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPEq(IP string) UserInfoQuerySet {
	return qs.w(qs.db.Where("ip = ?", IP))
}

// IPGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPGt(IP string) UserInfoQuerySet {
	return qs.w(qs.db.Where("ip > ?", IP))
}

// IPGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPGte(IP string) UserInfoQuerySet {
	return qs.w(qs.db.Where("ip >= ?", IP))
}

// IPIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPIn(IP ...string) UserInfoQuerySet {
	if len(IP) == 0 {
		qs.db.AddError(errors.New("must at least pass one IP in IPIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("ip IN (?)", IP))
}

// IPLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPLike(IP string) UserInfoQuerySet {
	return qs.w(qs.db.Where("ip LIKE ?", IP))
}

// IPLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPLt(IP string) UserInfoQuerySet {
	return qs.w(qs.db.Where("ip < ?", IP))
}

// IPLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPLte(IP string) UserInfoQuerySet {
	return qs.w(qs.db.Where("ip <= ?", IP))
}

// IPNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPNe(IP string) UserInfoQuerySet {
	return qs.w(qs.db.Where("ip != ?", IP))
}

// IPNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPNotIn(IP ...string) UserInfoQuerySet {
	if len(IP) == 0 {
		qs.db.AddError(errors.New("must at least pass one IP in IPNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("ip NOT IN (?)", IP))
}

// IPNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) IPNotlike(IP string) UserInfoQuerySet {
	return qs.w(qs.db.Where("ip NOT LIKE ?", IP))
}

// InBlackEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InBlackEq(inBlack bool) UserInfoQuerySet {
	return qs.w(qs.db.Where("in_black = ?", inBlack))
}

// InBlackIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InBlackIn(inBlack ...bool) UserInfoQuerySet {
	if len(inBlack) == 0 {
		qs.db.AddError(errors.New("must at least pass one inBlack in InBlackIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("in_black IN (?)", inBlack))
}

// InBlackNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InBlackNe(inBlack bool) UserInfoQuerySet {
	return qs.w(qs.db.Where("in_black != ?", inBlack))
}

// InBlackNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InBlackNotIn(inBlack ...bool) UserInfoQuerySet {
	if len(inBlack) == 0 {
		qs.db.AddError(errors.New("must at least pass one inBlack in InBlackNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("in_black NOT IN (?)", inBlack))
}

// InviteCodeUrlEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlEq(inviteCodeUrl string) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_code_url = ?", inviteCodeUrl))
}

// InviteCodeUrlGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlGt(inviteCodeUrl string) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_code_url > ?", inviteCodeUrl))
}

// InviteCodeUrlGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlGte(inviteCodeUrl string) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_code_url >= ?", inviteCodeUrl))
}

// InviteCodeUrlIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlIn(inviteCodeUrl ...string) UserInfoQuerySet {
	if len(inviteCodeUrl) == 0 {
		qs.db.AddError(errors.New("must at least pass one inviteCodeUrl in InviteCodeUrlIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("invite_code_url IN (?)", inviteCodeUrl))
}

// InviteCodeUrlLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlLike(inviteCodeUrl string) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_code_url LIKE ?", inviteCodeUrl))
}

// InviteCodeUrlLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlLt(inviteCodeUrl string) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_code_url < ?", inviteCodeUrl))
}

// InviteCodeUrlLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlLte(inviteCodeUrl string) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_code_url <= ?", inviteCodeUrl))
}

// InviteCodeUrlNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlNe(inviteCodeUrl string) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_code_url != ?", inviteCodeUrl))
}

// InviteCodeUrlNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlNotIn(inviteCodeUrl ...string) UserInfoQuerySet {
	if len(inviteCodeUrl) == 0 {
		qs.db.AddError(errors.New("must at least pass one inviteCodeUrl in InviteCodeUrlNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("invite_code_url NOT IN (?)", inviteCodeUrl))
}

// InviteCodeUrlNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteCodeUrlNotlike(inviteCodeUrl string) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_code_url NOT LIKE ?", inviteCodeUrl))
}

// InviteTimeEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteTimeEq(inviteTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_time = ?", inviteTime))
}

// InviteTimeGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteTimeGt(inviteTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_time > ?", inviteTime))
}

// InviteTimeGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteTimeGte(inviteTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_time >= ?", inviteTime))
}

// InviteTimeLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteTimeLt(inviteTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_time < ?", inviteTime))
}

// InviteTimeLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteTimeLte(inviteTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_time <= ?", inviteTime))
}

// InviteTimeNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) InviteTimeNe(inviteTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("invite_time != ?", inviteTime))
}

// LastLoginAtEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) LastLoginAtEq(lastLoginAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("last_login_at = ?", lastLoginAt))
}

// LastLoginAtGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) LastLoginAtGt(lastLoginAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("last_login_at > ?", lastLoginAt))
}

// LastLoginAtGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) LastLoginAtGte(lastLoginAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("last_login_at >= ?", lastLoginAt))
}

// LastLoginAtLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) LastLoginAtLt(lastLoginAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("last_login_at < ?", lastLoginAt))
}

// LastLoginAtLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) LastLoginAtLte(lastLoginAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("last_login_at <= ?", lastLoginAt))
}

// LastLoginAtNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) LastLoginAtNe(lastLoginAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("last_login_at != ?", lastLoginAt))
}

// Limit is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) Limit(limit int) UserInfoQuerySet {
	return qs.w(qs.db.Limit(limit))
}

// MemberExpireEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberExpireEq(memberExpire time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_expire = ?", memberExpire))
}

// MemberExpireGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberExpireGt(memberExpire time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_expire > ?", memberExpire))
}

// MemberExpireGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberExpireGte(memberExpire time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_expire >= ?", memberExpire))
}

// MemberExpireLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberExpireLt(memberExpire time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_expire < ?", memberExpire))
}

// MemberExpireLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberExpireLte(memberExpire time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_expire <= ?", memberExpire))
}

// MemberExpireNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberExpireNe(memberExpire time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_expire != ?", memberExpire))
}

// MemberLevelEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberLevelEq(memberLevel uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_level = ?", memberLevel))
}

// MemberLevelGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberLevelGt(memberLevel uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_level > ?", memberLevel))
}

// MemberLevelGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberLevelGte(memberLevel uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_level >= ?", memberLevel))
}

// MemberLevelIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberLevelIn(memberLevel ...uint32) UserInfoQuerySet {
	if len(memberLevel) == 0 {
		qs.db.AddError(errors.New("must at least pass one memberLevel in MemberLevelIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("member_level IN (?)", memberLevel))
}

// MemberLevelLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberLevelLt(memberLevel uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_level < ?", memberLevel))
}

// MemberLevelLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberLevelLte(memberLevel uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_level <= ?", memberLevel))
}

// MemberLevelNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberLevelNe(memberLevel uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("member_level != ?", memberLevel))
}

// MemberLevelNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) MemberLevelNotIn(memberLevel ...uint32) UserInfoQuerySet {
	if len(memberLevel) == 0 {
		qs.db.AddError(errors.New("must at least pass one memberLevel in MemberLevelNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("member_level NOT IN (?)", memberLevel))
}

// Offset is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) Offset(offset int) UserInfoQuerySet {
	return qs.w(qs.db.Offset(offset))
}

// One is used to retrieve one result. It returns gorm.ErrRecordNotFound
// if nothing was fetched
func (qs UserInfoQuerySet) One(ret *UserInfo) error {
	return qs.db.First(ret).Error
}

// OpenMemberTimeEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OpenMemberTimeEq(openMemberTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("open_member_time = ?", openMemberTime))
}

// OpenMemberTimeGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OpenMemberTimeGt(openMemberTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("open_member_time > ?", openMemberTime))
}

// OpenMemberTimeGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OpenMemberTimeGte(openMemberTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("open_member_time >= ?", openMemberTime))
}

// OpenMemberTimeLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OpenMemberTimeLt(openMemberTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("open_member_time < ?", openMemberTime))
}

// OpenMemberTimeLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OpenMemberTimeLte(openMemberTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("open_member_time <= ?", openMemberTime))
}

// OpenMemberTimeNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OpenMemberTimeNe(openMemberTime time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("open_member_time != ?", openMemberTime))
}

// OrderAscByAppOpenID is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByAppOpenID() UserInfoQuerySet {
	return qs.w(qs.db.Order("app_open_id ASC"))
}

// OrderAscByBond is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByBond() UserInfoQuerySet {
	return qs.w(qs.db.Order("bond ASC"))
}

// OrderAscByCity is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByCity() UserInfoQuerySet {
	return qs.w(qs.db.Order("city ASC"))
}

// OrderAscByCountry is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByCountry() UserInfoQuerySet {
	return qs.w(qs.db.Order("country ASC"))
}

// OrderAscByCreatedAt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByCreatedAt() UserInfoQuerySet {
	return qs.w(qs.db.Order("created_at ASC"))
}

// OrderAscByDeletedAt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByDeletedAt() UserInfoQuerySet {
	return qs.w(qs.db.Order("deleted_at ASC"))
}

// OrderAscByDeposit is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByDeposit() UserInfoQuerySet {
	return qs.w(qs.db.Order("deposit ASC"))
}

// OrderAscByGender is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByGender() UserInfoQuerySet {
	return qs.w(qs.db.Order("gender ASC"))
}

// OrderAscByID is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByID() UserInfoQuerySet {
	return qs.w(qs.db.Order("id ASC"))
}

// OrderAscByIP is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByIP() UserInfoQuerySet {
	return qs.w(qs.db.Order("ip ASC"))
}

// OrderAscByInBlack is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByInBlack() UserInfoQuerySet {
	return qs.w(qs.db.Order("in_black ASC"))
}

// OrderAscByInviteCodeUrl is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByInviteCodeUrl() UserInfoQuerySet {
	return qs.w(qs.db.Order("invite_code_url ASC"))
}

// OrderAscByInviteTime is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByInviteTime() UserInfoQuerySet {
	return qs.w(qs.db.Order("invite_time ASC"))
}

// OrderAscByLastLoginAt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByLastLoginAt() UserInfoQuerySet {
	return qs.w(qs.db.Order("last_login_at ASC"))
}

// OrderAscByMemberExpire is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByMemberExpire() UserInfoQuerySet {
	return qs.w(qs.db.Order("member_expire ASC"))
}

// OrderAscByMemberLevel is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByMemberLevel() UserInfoQuerySet {
	return qs.w(qs.db.Order("member_level ASC"))
}

// OrderAscByOpenMemberTime is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByOpenMemberTime() UserInfoQuerySet {
	return qs.w(qs.db.Order("open_member_time ASC"))
}

// OrderAscByProvince is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByProvince() UserInfoQuerySet {
	return qs.w(qs.db.Order("province ASC"))
}

// OrderAscByShopAssistantName is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByShopAssistantName() UserInfoQuerySet {
	return qs.w(qs.db.Order("shop_assistant_name ASC"))
}

// OrderAscByStoreId is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByStoreId() UserInfoQuerySet {
	return qs.w(qs.db.Order("store_id ASC"))
}

// OrderAscByTel is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByTel() UserInfoQuerySet {
	return qs.w(qs.db.Order("tel ASC"))
}

// OrderAscByUid is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByUid() UserInfoQuerySet {
	return qs.w(qs.db.Order("uid ASC"))
}

// OrderAscByUpdatedAt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByUpdatedAt() UserInfoQuerySet {
	return qs.w(qs.db.Order("updated_at ASC"))
}

// OrderAscByUserType is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByUserType() UserInfoQuerySet {
	return qs.w(qs.db.Order("user_type ASC"))
}

// OrderAscByVersion is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByVersion() UserInfoQuerySet {
	return qs.w(qs.db.Order("version ASC"))
}

// OrderAscByWxAvatar is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByWxAvatar() UserInfoQuerySet {
	return qs.w(qs.db.Order("wx_avatar ASC"))
}

// OrderAscByWxName is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByWxName() UserInfoQuerySet {
	return qs.w(qs.db.Order("wx_name ASC"))
}

// OrderAscByWxOpenID is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByWxOpenID() UserInfoQuerySet {
	return qs.w(qs.db.Order("wx_open_id ASC"))
}

// OrderAscByWxUnionID is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderAscByWxUnionID() UserInfoQuerySet {
	return qs.w(qs.db.Order("wx_union_id ASC"))
}

// OrderDescByAppOpenID is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByAppOpenID() UserInfoQuerySet {
	return qs.w(qs.db.Order("app_open_id DESC"))
}

// OrderDescByBond is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByBond() UserInfoQuerySet {
	return qs.w(qs.db.Order("bond DESC"))
}

// OrderDescByCity is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByCity() UserInfoQuerySet {
	return qs.w(qs.db.Order("city DESC"))
}

// OrderDescByCountry is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByCountry() UserInfoQuerySet {
	return qs.w(qs.db.Order("country DESC"))
}

// OrderDescByCreatedAt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByCreatedAt() UserInfoQuerySet {
	return qs.w(qs.db.Order("created_at DESC"))
}

// OrderDescByDeletedAt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByDeletedAt() UserInfoQuerySet {
	return qs.w(qs.db.Order("deleted_at DESC"))
}

// OrderDescByDeposit is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByDeposit() UserInfoQuerySet {
	return qs.w(qs.db.Order("deposit DESC"))
}

// OrderDescByGender is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByGender() UserInfoQuerySet {
	return qs.w(qs.db.Order("gender DESC"))
}

// OrderDescByID is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByID() UserInfoQuerySet {
	return qs.w(qs.db.Order("id DESC"))
}

// OrderDescByIP is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByIP() UserInfoQuerySet {
	return qs.w(qs.db.Order("ip DESC"))
}

// OrderDescByInBlack is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByInBlack() UserInfoQuerySet {
	return qs.w(qs.db.Order("in_black DESC"))
}

// OrderDescByInviteCodeUrl is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByInviteCodeUrl() UserInfoQuerySet {
	return qs.w(qs.db.Order("invite_code_url DESC"))
}

// OrderDescByInviteTime is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByInviteTime() UserInfoQuerySet {
	return qs.w(qs.db.Order("invite_time DESC"))
}

// OrderDescByLastLoginAt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByLastLoginAt() UserInfoQuerySet {
	return qs.w(qs.db.Order("last_login_at DESC"))
}

// OrderDescByMemberExpire is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByMemberExpire() UserInfoQuerySet {
	return qs.w(qs.db.Order("member_expire DESC"))
}

// OrderDescByMemberLevel is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByMemberLevel() UserInfoQuerySet {
	return qs.w(qs.db.Order("member_level DESC"))
}

// OrderDescByOpenMemberTime is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByOpenMemberTime() UserInfoQuerySet {
	return qs.w(qs.db.Order("open_member_time DESC"))
}

// OrderDescByProvince is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByProvince() UserInfoQuerySet {
	return qs.w(qs.db.Order("province DESC"))
}

// OrderDescByShopAssistantName is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByShopAssistantName() UserInfoQuerySet {
	return qs.w(qs.db.Order("shop_assistant_name DESC"))
}

// OrderDescByStoreId is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByStoreId() UserInfoQuerySet {
	return qs.w(qs.db.Order("store_id DESC"))
}

// OrderDescByTel is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByTel() UserInfoQuerySet {
	return qs.w(qs.db.Order("tel DESC"))
}

// OrderDescByUid is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByUid() UserInfoQuerySet {
	return qs.w(qs.db.Order("uid DESC"))
}

// OrderDescByUpdatedAt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByUpdatedAt() UserInfoQuerySet {
	return qs.w(qs.db.Order("updated_at DESC"))
}

// OrderDescByUserType is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByUserType() UserInfoQuerySet {
	return qs.w(qs.db.Order("user_type DESC"))
}

// OrderDescByVersion is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByVersion() UserInfoQuerySet {
	return qs.w(qs.db.Order("version DESC"))
}

// OrderDescByWxAvatar is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByWxAvatar() UserInfoQuerySet {
	return qs.w(qs.db.Order("wx_avatar DESC"))
}

// OrderDescByWxName is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByWxName() UserInfoQuerySet {
	return qs.w(qs.db.Order("wx_name DESC"))
}

// OrderDescByWxOpenID is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByWxOpenID() UserInfoQuerySet {
	return qs.w(qs.db.Order("wx_open_id DESC"))
}

// OrderDescByWxUnionID is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) OrderDescByWxUnionID() UserInfoQuerySet {
	return qs.w(qs.db.Order("wx_union_id DESC"))
}

// ProvinceEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceEq(province string) UserInfoQuerySet {
	return qs.w(qs.db.Where("province = ?", province))
}

// ProvinceGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceGt(province string) UserInfoQuerySet {
	return qs.w(qs.db.Where("province > ?", province))
}

// ProvinceGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceGte(province string) UserInfoQuerySet {
	return qs.w(qs.db.Where("province >= ?", province))
}

// ProvinceIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceIn(province ...string) UserInfoQuerySet {
	if len(province) == 0 {
		qs.db.AddError(errors.New("must at least pass one province in ProvinceIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("province IN (?)", province))
}

// ProvinceLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceLike(province string) UserInfoQuerySet {
	return qs.w(qs.db.Where("province LIKE ?", province))
}

// ProvinceLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceLt(province string) UserInfoQuerySet {
	return qs.w(qs.db.Where("province < ?", province))
}

// ProvinceLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceLte(province string) UserInfoQuerySet {
	return qs.w(qs.db.Where("province <= ?", province))
}

// ProvinceNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceNe(province string) UserInfoQuerySet {
	return qs.w(qs.db.Where("province != ?", province))
}

// ProvinceNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceNotIn(province ...string) UserInfoQuerySet {
	if len(province) == 0 {
		qs.db.AddError(errors.New("must at least pass one province in ProvinceNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("province NOT IN (?)", province))
}

// ProvinceNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ProvinceNotlike(province string) UserInfoQuerySet {
	return qs.w(qs.db.Where("province NOT LIKE ?", province))
}

// ShopAssistantNameEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameEq(shopAssistantName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("shop_assistant_name = ?", shopAssistantName))
}

// ShopAssistantNameGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameGt(shopAssistantName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("shop_assistant_name > ?", shopAssistantName))
}

// ShopAssistantNameGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameGte(shopAssistantName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("shop_assistant_name >= ?", shopAssistantName))
}

// ShopAssistantNameIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameIn(shopAssistantName ...string) UserInfoQuerySet {
	if len(shopAssistantName) == 0 {
		qs.db.AddError(errors.New("must at least pass one shopAssistantName in ShopAssistantNameIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("shop_assistant_name IN (?)", shopAssistantName))
}

// ShopAssistantNameLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameLike(shopAssistantName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("shop_assistant_name LIKE ?", shopAssistantName))
}

// ShopAssistantNameLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameLt(shopAssistantName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("shop_assistant_name < ?", shopAssistantName))
}

// ShopAssistantNameLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameLte(shopAssistantName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("shop_assistant_name <= ?", shopAssistantName))
}

// ShopAssistantNameNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameNe(shopAssistantName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("shop_assistant_name != ?", shopAssistantName))
}

// ShopAssistantNameNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameNotIn(shopAssistantName ...string) UserInfoQuerySet {
	if len(shopAssistantName) == 0 {
		qs.db.AddError(errors.New("must at least pass one shopAssistantName in ShopAssistantNameNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("shop_assistant_name NOT IN (?)", shopAssistantName))
}

// ShopAssistantNameNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) ShopAssistantNameNotlike(shopAssistantName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("shop_assistant_name NOT LIKE ?", shopAssistantName))
}

// StoreIdEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) StoreIdEq(storeId uint64) UserInfoQuerySet {
	return qs.w(qs.db.Where("store_id = ?", storeId))
}

// StoreIdGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) StoreIdGt(storeId uint64) UserInfoQuerySet {
	return qs.w(qs.db.Where("store_id > ?", storeId))
}

// StoreIdGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) StoreIdGte(storeId uint64) UserInfoQuerySet {
	return qs.w(qs.db.Where("store_id >= ?", storeId))
}

// StoreIdIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) StoreIdIn(storeId ...uint64) UserInfoQuerySet {
	if len(storeId) == 0 {
		qs.db.AddError(errors.New("must at least pass one storeId in StoreIdIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("store_id IN (?)", storeId))
}

// StoreIdLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) StoreIdLt(storeId uint64) UserInfoQuerySet {
	return qs.w(qs.db.Where("store_id < ?", storeId))
}

// StoreIdLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) StoreIdLte(storeId uint64) UserInfoQuerySet {
	return qs.w(qs.db.Where("store_id <= ?", storeId))
}

// StoreIdNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) StoreIdNe(storeId uint64) UserInfoQuerySet {
	return qs.w(qs.db.Where("store_id != ?", storeId))
}

// StoreIdNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) StoreIdNotIn(storeId ...uint64) UserInfoQuerySet {
	if len(storeId) == 0 {
		qs.db.AddError(errors.New("must at least pass one storeId in StoreIdNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("store_id NOT IN (?)", storeId))
}

// TelEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelEq(tel string) UserInfoQuerySet {
	return qs.w(qs.db.Where("tel = ?", tel))
}

// TelGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelGt(tel string) UserInfoQuerySet {
	return qs.w(qs.db.Where("tel > ?", tel))
}

// TelGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelGte(tel string) UserInfoQuerySet {
	return qs.w(qs.db.Where("tel >= ?", tel))
}

// TelIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelIn(tel ...string) UserInfoQuerySet {
	if len(tel) == 0 {
		qs.db.AddError(errors.New("must at least pass one tel in TelIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("tel IN (?)", tel))
}

// TelLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelLike(tel string) UserInfoQuerySet {
	return qs.w(qs.db.Where("tel LIKE ?", tel))
}

// TelLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelLt(tel string) UserInfoQuerySet {
	return qs.w(qs.db.Where("tel < ?", tel))
}

// TelLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelLte(tel string) UserInfoQuerySet {
	return qs.w(qs.db.Where("tel <= ?", tel))
}

// TelNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelNe(tel string) UserInfoQuerySet {
	return qs.w(qs.db.Where("tel != ?", tel))
}

// TelNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelNotIn(tel ...string) UserInfoQuerySet {
	if len(tel) == 0 {
		qs.db.AddError(errors.New("must at least pass one tel in TelNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("tel NOT IN (?)", tel))
}

// TelNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) TelNotlike(tel string) UserInfoQuerySet {
	return qs.w(qs.db.Where("tel NOT LIKE ?", tel))
}

// UidEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UidEq(uid uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("uid = ?", uid))
}

// UidGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UidGt(uid uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("uid > ?", uid))
}

// UidGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UidGte(uid uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("uid >= ?", uid))
}

// UidIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UidIn(uid ...uint32) UserInfoQuerySet {
	if len(uid) == 0 {
		qs.db.AddError(errors.New("must at least pass one uid in UidIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("uid IN (?)", uid))
}

// UidLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UidLt(uid uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("uid < ?", uid))
}

// UidLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UidLte(uid uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("uid <= ?", uid))
}

// UidNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UidNe(uid uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("uid != ?", uid))
}

// UidNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UidNotIn(uid ...uint32) UserInfoQuerySet {
	if len(uid) == 0 {
		qs.db.AddError(errors.New("must at least pass one uid in UidNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("uid NOT IN (?)", uid))
}

// UpdatedAtEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UpdatedAtEq(updatedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("updated_at = ?", updatedAt))
}

// UpdatedAtGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UpdatedAtGt(updatedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("updated_at > ?", updatedAt))
}

// UpdatedAtGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UpdatedAtGte(updatedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("updated_at >= ?", updatedAt))
}

// UpdatedAtLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UpdatedAtLt(updatedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("updated_at < ?", updatedAt))
}

// UpdatedAtLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UpdatedAtLte(updatedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("updated_at <= ?", updatedAt))
}

// UpdatedAtNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UpdatedAtNe(updatedAt time.Time) UserInfoQuerySet {
	return qs.w(qs.db.Where("updated_at != ?", updatedAt))
}

// UserTypeEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UserTypeEq(userType uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("user_type = ?", userType))
}

// UserTypeGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UserTypeGt(userType uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("user_type > ?", userType))
}

// UserTypeGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UserTypeGte(userType uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("user_type >= ?", userType))
}

// UserTypeIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UserTypeIn(userType ...uint8) UserInfoQuerySet {
	if len(userType) == 0 {
		qs.db.AddError(errors.New("must at least pass one userType in UserTypeIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("user_type IN (?)", userType))
}

// UserTypeLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UserTypeLt(userType uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("user_type < ?", userType))
}

// UserTypeLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UserTypeLte(userType uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("user_type <= ?", userType))
}

// UserTypeNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UserTypeNe(userType uint8) UserInfoQuerySet {
	return qs.w(qs.db.Where("user_type != ?", userType))
}

// UserTypeNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) UserTypeNotIn(userType ...uint8) UserInfoQuerySet {
	if len(userType) == 0 {
		qs.db.AddError(errors.New("must at least pass one userType in UserTypeNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("user_type NOT IN (?)", userType))
}

// VersionEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) VersionEq(version uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("version = ?", version))
}

// VersionGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) VersionGt(version uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("version > ?", version))
}

// VersionGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) VersionGte(version uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("version >= ?", version))
}

// VersionIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) VersionIn(version ...uint32) UserInfoQuerySet {
	if len(version) == 0 {
		qs.db.AddError(errors.New("must at least pass one version in VersionIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("version IN (?)", version))
}

// VersionLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) VersionLt(version uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("version < ?", version))
}

// VersionLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) VersionLte(version uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("version <= ?", version))
}

// VersionNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) VersionNe(version uint32) UserInfoQuerySet {
	return qs.w(qs.db.Where("version != ?", version))
}

// VersionNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) VersionNotIn(version ...uint32) UserInfoQuerySet {
	if len(version) == 0 {
		qs.db.AddError(errors.New("must at least pass one version in VersionNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("version NOT IN (?)", version))
}

// WxAvatarEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarEq(wxAvatar string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_avatar = ?", wxAvatar))
}

// WxAvatarGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarGt(wxAvatar string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_avatar > ?", wxAvatar))
}

// WxAvatarGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarGte(wxAvatar string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_avatar >= ?", wxAvatar))
}

// WxAvatarIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarIn(wxAvatar ...string) UserInfoQuerySet {
	if len(wxAvatar) == 0 {
		qs.db.AddError(errors.New("must at least pass one wxAvatar in WxAvatarIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("wx_avatar IN (?)", wxAvatar))
}

// WxAvatarLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarLike(wxAvatar string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_avatar LIKE ?", wxAvatar))
}

// WxAvatarLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarLt(wxAvatar string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_avatar < ?", wxAvatar))
}

// WxAvatarLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarLte(wxAvatar string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_avatar <= ?", wxAvatar))
}

// WxAvatarNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarNe(wxAvatar string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_avatar != ?", wxAvatar))
}

// WxAvatarNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarNotIn(wxAvatar ...string) UserInfoQuerySet {
	if len(wxAvatar) == 0 {
		qs.db.AddError(errors.New("must at least pass one wxAvatar in WxAvatarNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("wx_avatar NOT IN (?)", wxAvatar))
}

// WxAvatarNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxAvatarNotlike(wxAvatar string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_avatar NOT LIKE ?", wxAvatar))
}

// WxNameEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameEq(wxName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_name = ?", wxName))
}

// WxNameGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameGt(wxName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_name > ?", wxName))
}

// WxNameGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameGte(wxName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_name >= ?", wxName))
}

// WxNameIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameIn(wxName ...string) UserInfoQuerySet {
	if len(wxName) == 0 {
		qs.db.AddError(errors.New("must at least pass one wxName in WxNameIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("wx_name IN (?)", wxName))
}

// WxNameLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameLike(wxName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_name LIKE ?", wxName))
}

// WxNameLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameLt(wxName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_name < ?", wxName))
}

// WxNameLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameLte(wxName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_name <= ?", wxName))
}

// WxNameNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameNe(wxName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_name != ?", wxName))
}

// WxNameNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameNotIn(wxName ...string) UserInfoQuerySet {
	if len(wxName) == 0 {
		qs.db.AddError(errors.New("must at least pass one wxName in WxNameNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("wx_name NOT IN (?)", wxName))
}

// WxNameNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxNameNotlike(wxName string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_name NOT LIKE ?", wxName))
}

// WxOpenIDEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDEq(wxOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_open_id = ?", wxOpenID))
}

// WxOpenIDGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDGt(wxOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_open_id > ?", wxOpenID))
}

// WxOpenIDGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDGte(wxOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_open_id >= ?", wxOpenID))
}

// WxOpenIDIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDIn(wxOpenID ...string) UserInfoQuerySet {
	if len(wxOpenID) == 0 {
		qs.db.AddError(errors.New("must at least pass one wxOpenID in WxOpenIDIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("wx_open_id IN (?)", wxOpenID))
}

// WxOpenIDLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDLike(wxOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_open_id LIKE ?", wxOpenID))
}

// WxOpenIDLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDLt(wxOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_open_id < ?", wxOpenID))
}

// WxOpenIDLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDLte(wxOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_open_id <= ?", wxOpenID))
}

// WxOpenIDNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDNe(wxOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_open_id != ?", wxOpenID))
}

// WxOpenIDNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDNotIn(wxOpenID ...string) UserInfoQuerySet {
	if len(wxOpenID) == 0 {
		qs.db.AddError(errors.New("must at least pass one wxOpenID in WxOpenIDNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("wx_open_id NOT IN (?)", wxOpenID))
}

// WxOpenIDNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxOpenIDNotlike(wxOpenID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_open_id NOT LIKE ?", wxOpenID))
}

// WxUnionIDEq is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDEq(wxUnionID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_union_id = ?", wxUnionID))
}

// WxUnionIDGt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDGt(wxUnionID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_union_id > ?", wxUnionID))
}

// WxUnionIDGte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDGte(wxUnionID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_union_id >= ?", wxUnionID))
}

// WxUnionIDIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDIn(wxUnionID ...string) UserInfoQuerySet {
	if len(wxUnionID) == 0 {
		qs.db.AddError(errors.New("must at least pass one wxUnionID in WxUnionIDIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("wx_union_id IN (?)", wxUnionID))
}

// WxUnionIDLike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDLike(wxUnionID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_union_id LIKE ?", wxUnionID))
}

// WxUnionIDLt is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDLt(wxUnionID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_union_id < ?", wxUnionID))
}

// WxUnionIDLte is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDLte(wxUnionID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_union_id <= ?", wxUnionID))
}

// WxUnionIDNe is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDNe(wxUnionID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_union_id != ?", wxUnionID))
}

// WxUnionIDNotIn is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDNotIn(wxUnionID ...string) UserInfoQuerySet {
	if len(wxUnionID) == 0 {
		qs.db.AddError(errors.New("must at least pass one wxUnionID in WxUnionIDNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("wx_union_id NOT IN (?)", wxUnionID))
}

// WxUnionIDNotlike is an autogenerated method
// nolint: dupl
func (qs UserInfoQuerySet) WxUnionIDNotlike(wxUnionID string) UserInfoQuerySet {
	return qs.w(qs.db.Where("wx_union_id NOT LIKE ?", wxUnionID))
}

// SetAppOpenID is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetAppOpenID(appOpenID string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.AppOpenID)] = appOpenID
	return u
}

// SetBond is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetBond(bond uint32) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.Bond)] = bond
	return u
}

// SetCity is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetCity(city string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.City)] = city
	return u
}

// SetCountry is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetCountry(country string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.Country)] = country
	return u
}

// SetCreatedAt is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetCreatedAt(createdAt time.Time) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.CreatedAt)] = createdAt
	return u
}

// SetDeletedAt is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetDeletedAt(deletedAt *time.Time) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.DeletedAt)] = deletedAt
	return u
}

// SetDeposit is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetDeposit(deposit uint32) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.Deposit)] = deposit
	return u
}

// SetGender is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetGender(gender uint8) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.Gender)] = gender
	return u
}

// SetID is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetID(ID uint32) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.ID)] = ID
	return u
}

// SetIP is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetIP(IP string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.IP)] = IP
	return u
}

// SetInBlack is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetInBlack(inBlack bool) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.InBlack)] = inBlack
	return u
}

// SetInviteCodeUrl is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetInviteCodeUrl(inviteCodeUrl string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.InviteCodeUrl)] = inviteCodeUrl
	return u
}

// SetInviteTime is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetInviteTime(inviteTime time.Time) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.InviteTime)] = inviteTime
	return u
}

// SetLastLoginAt is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetLastLoginAt(lastLoginAt time.Time) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.LastLoginAt)] = lastLoginAt
	return u
}

// SetMemberExpire is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetMemberExpire(memberExpire time.Time) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.MemberExpire)] = memberExpire
	return u
}

// SetMemberLevel is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetMemberLevel(memberLevel uint32) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.MemberLevel)] = memberLevel
	return u
}

// SetOpenMemberTime is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetOpenMemberTime(openMemberTime time.Time) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.OpenMemberTime)] = openMemberTime
	return u
}

// SetProvince is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetProvince(province string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.Province)] = province
	return u
}

// SetShopAssistantName is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetShopAssistantName(shopAssistantName string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.ShopAssistantName)] = shopAssistantName
	return u
}

// SetStoreId is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetStoreId(storeId uint64) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.StoreId)] = storeId
	return u
}

// SetTel is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetTel(tel string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.Tel)] = tel
	return u
}

// SetUid is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetUid(uid uint32) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.Uid)] = uid
	return u
}

// SetUpdatedAt is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetUpdatedAt(updatedAt time.Time) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.UpdatedAt)] = updatedAt
	return u
}

// SetUserType is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetUserType(userType uint8) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.UserType)] = userType
	return u
}

// SetVersion is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetVersion(version uint32) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.Version)] = version
	return u
}

// SetWxAvatar is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetWxAvatar(wxAvatar string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.WxAvatar)] = wxAvatar
	return u
}

// SetWxName is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetWxName(wxName string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.WxName)] = wxName
	return u
}

// SetWxOpenID is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetWxOpenID(wxOpenID string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.WxOpenID)] = wxOpenID
	return u
}

// SetWxUnionID is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) SetWxUnionID(wxUnionID string) UserInfoUpdater {
	u.fields[string(UserInfoDBSchema.WxUnionID)] = wxUnionID
	return u
}

// Update is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) Update() error {
	return u.db.Updates(u.fields).Error
}

// UpdateNum is an autogenerated method
// nolint: dupl
func (u UserInfoUpdater) UpdateNum() (int64, error) {
	db := u.db.Updates(u.fields)
	return db.RowsAffected, db.Error
}

// ===== END of query set UserInfoQuerySet

// ===== BEGIN of UserInfo modifiers

// UserInfoDBSchemaField describes database schema field. It requires for method 'Update'
type UserInfoDBSchemaField string

// String method returns string representation of field.
// nolint: dupl
func (f UserInfoDBSchemaField) String() string {
	return string(f)
}

// UserInfoDBSchema stores db field names of UserInfo
var UserInfoDBSchema = struct {
	ID                UserInfoDBSchemaField
	CreatedAt         UserInfoDBSchemaField
	UpdatedAt         UserInfoDBSchemaField
	DeletedAt         UserInfoDBSchemaField
	Uid               UserInfoDBSchemaField
	MemberLevel       UserInfoDBSchemaField
	MemberExpire      UserInfoDBSchemaField
	OpenMemberTime    UserInfoDBSchemaField
	Bond              UserInfoDBSchemaField
	WxName            UserInfoDBSchemaField
	WxAvatar          UserInfoDBSchemaField
	WxOpenID          UserInfoDBSchemaField
	AppOpenID         UserInfoDBSchemaField
	WxUnionID         UserInfoDBSchemaField
	Tel               UserInfoDBSchemaField
	Gender            UserInfoDBSchemaField
	City              UserInfoDBSchemaField
	Province          UserInfoDBSchemaField
	Country           UserInfoDBSchemaField
	Deposit           UserInfoDBSchemaField
	UserType          UserInfoDBSchemaField
	StoreId           UserInfoDBSchemaField
	InviteCodeUrl     UserInfoDBSchemaField
	LastLoginAt       UserInfoDBSchemaField
	IP                UserInfoDBSchemaField
	InBlack           UserInfoDBSchemaField
	Version           UserInfoDBSchemaField
	InviteTime        UserInfoDBSchemaField
	ShopAssistantName UserInfoDBSchemaField
}{

	ID:                UserInfoDBSchemaField("id"),
	CreatedAt:         UserInfoDBSchemaField("created_at"),
	UpdatedAt:         UserInfoDBSchemaField("updated_at"),
	DeletedAt:         UserInfoDBSchemaField("deleted_at"),
	Uid:               UserInfoDBSchemaField("uid"),
	MemberLevel:       UserInfoDBSchemaField("member_level"),
	MemberExpire:      UserInfoDBSchemaField("member_expire"),
	OpenMemberTime:    UserInfoDBSchemaField("open_member_time"),
	Bond:              UserInfoDBSchemaField("bond"),
	WxName:            UserInfoDBSchemaField("wx_name"),
	WxAvatar:          UserInfoDBSchemaField("wx_avatar"),
	WxOpenID:          UserInfoDBSchemaField("wx_open_id"),
	AppOpenID:         UserInfoDBSchemaField("app_open_id"),
	WxUnionID:         UserInfoDBSchemaField("wx_union_id"),
	Tel:               UserInfoDBSchemaField("tel"),
	Gender:            UserInfoDBSchemaField("gender"),
	City:              UserInfoDBSchemaField("city"),
	Province:          UserInfoDBSchemaField("province"),
	Country:           UserInfoDBSchemaField("country"),
	Deposit:           UserInfoDBSchemaField("deposit"),
	UserType:          UserInfoDBSchemaField("user_type"),
	StoreId:           UserInfoDBSchemaField("store_id"),
	InviteCodeUrl:     UserInfoDBSchemaField("invite_code_url"),
	LastLoginAt:       UserInfoDBSchemaField("last_login_at"),
	IP:                UserInfoDBSchemaField("ip"),
	InBlack:           UserInfoDBSchemaField("in_black"),
	Version:           UserInfoDBSchemaField("version"),
	InviteTime:        UserInfoDBSchemaField("invite_time"),
	ShopAssistantName: UserInfoDBSchemaField("shop_assistant_name"),
}

// Update updates UserInfo fields by primary key
// nolint: dupl
func (o *UserInfo) Update(db *gorm.DB, fields ...UserInfoDBSchemaField) error {
	dbNameToFieldName := map[string]interface{}{
		"id":                  o.ID,
		"created_at":          o.CreatedAt,
		"updated_at":          o.UpdatedAt,
		"deleted_at":          o.DeletedAt,
		"uid":                 o.Uid,
		"member_level":        o.MemberLevel,
		"member_expire":       o.MemberExpire,
		"open_member_time":    o.OpenMemberTime,
		"bond":                o.Bond,
		"wx_name":             o.WxName,
		"wx_avatar":           o.WxAvatar,
		"wx_open_id":          o.WxOpenID,
		"app_open_id":         o.AppOpenID,
		"wx_union_id":         o.WxUnionID,
		"tel":                 o.Tel,
		"gender":              o.Gender,
		"city":                o.City,
		"province":            o.Province,
		"country":             o.Country,
		"deposit":             o.Deposit,
		"user_type":           o.UserType,
		"store_id":            o.StoreId,
		"invite_code_url":     o.InviteCodeUrl,
		"last_login_at":       o.LastLoginAt,
		"ip":                  o.IP,
		"in_black":            o.InBlack,
		"version":             o.Version,
		"invite_time":         o.InviteTime,
		"shop_assistant_name": o.ShopAssistantName,
	}
	u := map[string]interface{}{}
	for _, f := range fields {
		fs := f.String()
		u[fs] = dbNameToFieldName[fs]
	}
	if err := db.Model(o).Updates(u).Error; err != nil {
		if err == gorm.ErrRecordNotFound {
			return err
		}

		return fmt.Errorf("can't update UserInfo %v fields %v: %s",
			o, fields, err)
	}

	return nil
}

// UserInfoUpdater is an UserInfo updates manager
type UserInfoUpdater struct {
	fields map[string]interface{}
	db     *gorm.DB
}

// NewUserInfoUpdater creates new UserInfo updater
// nolint: dupl
func NewUserInfoUpdater(db *gorm.DB) UserInfoUpdater {
	return UserInfoUpdater{
		fields: map[string]interface{}{},
		db:     db.Model(&UserInfo{}),
	}
}

// ===== END of UserInfo modifiers

// ===== END of all query sets
