docs(test): 更新电表箱装配业务回归测试文档
- 将文档从代码审计任务转换为端到端业务回归测试链路 - 重新组织文档结构为链路总览、示例数据基线和详细步骤 - 添加完整的业务场景清单涵盖WMS/MES/工位终端三大系统 - 定义统一的测试数据包括产品型号、物料清单、工位派工等 - 提供详细的步骤断言和数量等式验证方法 - 建立贯穿全链路的数据流向和状态变更追踪体系
This commit is contained in:
@@ -1,130 +0,0 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package dock
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the dock type in the database.
|
||||
Label = "dock"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldDockCode holds the string denoting the dock_code field in the database.
|
||||
FieldDockCode = "dock_code"
|
||||
// FieldName holds the string denoting the name field in the database.
|
||||
FieldName = "name"
|
||||
// FieldDockType holds the string denoting the dock_type field in the database.
|
||||
FieldDockType = "dock_type"
|
||||
// FieldStationNo holds the string denoting the station_no field in the database.
|
||||
FieldStationNo = "station_no"
|
||||
// FieldHasPallet holds the string denoting the has_pallet field in the database.
|
||||
FieldHasPallet = "has_pallet"
|
||||
// FieldPalletRef holds the string denoting the pallet_ref field in the database.
|
||||
FieldPalletRef = "pallet_ref"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the dock in the database.
|
||||
Table = "docks"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for dock fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldDockCode,
|
||||
FieldName,
|
||||
FieldDockType,
|
||||
FieldStationNo,
|
||||
FieldHasPallet,
|
||||
FieldPalletRef,
|
||||
FieldStatus,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// DockCodeValidator is a validator for the "dock_code" field. It is called by the builders before save.
|
||||
DockCodeValidator func(string) error
|
||||
// DefaultName holds the default value on creation for the "name" field.
|
||||
DefaultName string
|
||||
// NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
NameValidator func(string) error
|
||||
// DefaultDockType holds the default value on creation for the "dock_type" field.
|
||||
DefaultDockType string
|
||||
// DockTypeValidator is a validator for the "dock_type" field. It is called by the builders before save.
|
||||
DockTypeValidator func(string) error
|
||||
// DefaultStationNo holds the default value on creation for the "station_no" field.
|
||||
DefaultStationNo int
|
||||
// DefaultHasPallet holds the default value on creation for the "has_pallet" field.
|
||||
DefaultHasPallet bool
|
||||
// DefaultPalletRef holds the default value on creation for the "pallet_ref" field.
|
||||
DefaultPalletRef string
|
||||
// PalletRefValidator is a validator for the "pallet_ref" field. It is called by the builders before save.
|
||||
PalletRefValidator func(string) error
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
StatusValidator func(string) error
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Dock queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDockCode orders the results by the dock_code field.
|
||||
func ByDockCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDockCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDockType orders the results by the dock_type field.
|
||||
func ByDockType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDockType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStationNo orders the results by the station_no field.
|
||||
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHasPallet orders the results by the has_pallet field.
|
||||
func ByHasPallet(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHasPallet, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPalletRef orders the results by the pallet_ref field.
|
||||
func ByPalletRef(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPalletRef, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -1,534 +0,0 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package dock
|
||||
|
||||
import (
|
||||
"bj_power_wms/ent/predicate"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// DockCode applies equality check predicate on the "dock_code" field. It's identical to DockCodeEQ.
|
||||
func DockCode(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
||||
func Name(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// DockType applies equality check predicate on the "dock_type" field. It's identical to DockTypeEQ.
|
||||
func DockType(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldDockType, v))
|
||||
}
|
||||
|
||||
// StationNo applies equality check predicate on the "station_no" field. It's identical to StationNoEQ.
|
||||
func StationNo(v int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// HasPallet applies equality check predicate on the "has_pallet" field. It's identical to HasPalletEQ.
|
||||
func HasPallet(v bool) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldHasPallet, v))
|
||||
}
|
||||
|
||||
// PalletRef applies equality check predicate on the "pallet_ref" field. It's identical to PalletRefEQ.
|
||||
func PalletRef(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// DockCodeEQ applies the EQ predicate on the "dock_code" field.
|
||||
func DockCodeEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeNEQ applies the NEQ predicate on the "dock_code" field.
|
||||
func DockCodeNEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNEQ(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeIn applies the In predicate on the "dock_code" field.
|
||||
func DockCodeIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldIn(FieldDockCode, vs...))
|
||||
}
|
||||
|
||||
// DockCodeNotIn applies the NotIn predicate on the "dock_code" field.
|
||||
func DockCodeNotIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNotIn(FieldDockCode, vs...))
|
||||
}
|
||||
|
||||
// DockCodeGT applies the GT predicate on the "dock_code" field.
|
||||
func DockCodeGT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGT(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeGTE applies the GTE predicate on the "dock_code" field.
|
||||
func DockCodeGTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGTE(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeLT applies the LT predicate on the "dock_code" field.
|
||||
func DockCodeLT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLT(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeLTE applies the LTE predicate on the "dock_code" field.
|
||||
func DockCodeLTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLTE(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeContains applies the Contains predicate on the "dock_code" field.
|
||||
func DockCodeContains(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContains(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeHasPrefix applies the HasPrefix predicate on the "dock_code" field.
|
||||
func DockCodeHasPrefix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasPrefix(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeHasSuffix applies the HasSuffix predicate on the "dock_code" field.
|
||||
func DockCodeHasSuffix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasSuffix(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeEqualFold applies the EqualFold predicate on the "dock_code" field.
|
||||
func DockCodeEqualFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEqualFold(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// DockCodeContainsFold applies the ContainsFold predicate on the "dock_code" field.
|
||||
func DockCodeContainsFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContainsFold(FieldDockCode, v))
|
||||
}
|
||||
|
||||
// NameEQ applies the EQ predicate on the "name" field.
|
||||
func NameEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameNEQ applies the NEQ predicate on the "name" field.
|
||||
func NameNEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameIn applies the In predicate on the "name" field.
|
||||
func NameIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameNotIn applies the NotIn predicate on the "name" field.
|
||||
func NameNotIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNotIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameGT applies the GT predicate on the "name" field.
|
||||
func NameGT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameGTE applies the GTE predicate on the "name" field.
|
||||
func NameGTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLT applies the LT predicate on the "name" field.
|
||||
func NameLT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLTE applies the LTE predicate on the "name" field.
|
||||
func NameLTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContains applies the Contains predicate on the "name" field.
|
||||
func NameContains(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContains(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
||||
func NameHasPrefix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasPrefix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
||||
func NameHasSuffix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasSuffix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
||||
func NameEqualFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEqualFold(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
||||
func NameContainsFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContainsFold(FieldName, v))
|
||||
}
|
||||
|
||||
// DockTypeEQ applies the EQ predicate on the "dock_type" field.
|
||||
func DockTypeEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeNEQ applies the NEQ predicate on the "dock_type" field.
|
||||
func DockTypeNEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNEQ(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeIn applies the In predicate on the "dock_type" field.
|
||||
func DockTypeIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldIn(FieldDockType, vs...))
|
||||
}
|
||||
|
||||
// DockTypeNotIn applies the NotIn predicate on the "dock_type" field.
|
||||
func DockTypeNotIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNotIn(FieldDockType, vs...))
|
||||
}
|
||||
|
||||
// DockTypeGT applies the GT predicate on the "dock_type" field.
|
||||
func DockTypeGT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGT(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeGTE applies the GTE predicate on the "dock_type" field.
|
||||
func DockTypeGTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGTE(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeLT applies the LT predicate on the "dock_type" field.
|
||||
func DockTypeLT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLT(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeLTE applies the LTE predicate on the "dock_type" field.
|
||||
func DockTypeLTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLTE(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeContains applies the Contains predicate on the "dock_type" field.
|
||||
func DockTypeContains(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContains(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeHasPrefix applies the HasPrefix predicate on the "dock_type" field.
|
||||
func DockTypeHasPrefix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasPrefix(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeHasSuffix applies the HasSuffix predicate on the "dock_type" field.
|
||||
func DockTypeHasSuffix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasSuffix(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeEqualFold applies the EqualFold predicate on the "dock_type" field.
|
||||
func DockTypeEqualFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEqualFold(FieldDockType, v))
|
||||
}
|
||||
|
||||
// DockTypeContainsFold applies the ContainsFold predicate on the "dock_type" field.
|
||||
func DockTypeContainsFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContainsFold(FieldDockType, v))
|
||||
}
|
||||
|
||||
// StationNoEQ applies the EQ predicate on the "station_no" field.
|
||||
func StationNoEQ(v int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoNEQ applies the NEQ predicate on the "station_no" field.
|
||||
func StationNoNEQ(v int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoIn applies the In predicate on the "station_no" field.
|
||||
func StationNoIn(vs ...int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoNotIn applies the NotIn predicate on the "station_no" field.
|
||||
func StationNoNotIn(vs ...int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNotIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoGT applies the GT predicate on the "station_no" field.
|
||||
func StationNoGT(v int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoGTE applies the GTE predicate on the "station_no" field.
|
||||
func StationNoGTE(v int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLT applies the LT predicate on the "station_no" field.
|
||||
func StationNoLT(v int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLTE applies the LTE predicate on the "station_no" field.
|
||||
func StationNoLTE(v int) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// HasPalletEQ applies the EQ predicate on the "has_pallet" field.
|
||||
func HasPalletEQ(v bool) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldHasPallet, v))
|
||||
}
|
||||
|
||||
// HasPalletNEQ applies the NEQ predicate on the "has_pallet" field.
|
||||
func HasPalletNEQ(v bool) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNEQ(FieldHasPallet, v))
|
||||
}
|
||||
|
||||
// PalletRefEQ applies the EQ predicate on the "pallet_ref" field.
|
||||
func PalletRefEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefNEQ applies the NEQ predicate on the "pallet_ref" field.
|
||||
func PalletRefNEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNEQ(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefIn applies the In predicate on the "pallet_ref" field.
|
||||
func PalletRefIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldIn(FieldPalletRef, vs...))
|
||||
}
|
||||
|
||||
// PalletRefNotIn applies the NotIn predicate on the "pallet_ref" field.
|
||||
func PalletRefNotIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNotIn(FieldPalletRef, vs...))
|
||||
}
|
||||
|
||||
// PalletRefGT applies the GT predicate on the "pallet_ref" field.
|
||||
func PalletRefGT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGT(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefGTE applies the GTE predicate on the "pallet_ref" field.
|
||||
func PalletRefGTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGTE(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefLT applies the LT predicate on the "pallet_ref" field.
|
||||
func PalletRefLT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLT(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefLTE applies the LTE predicate on the "pallet_ref" field.
|
||||
func PalletRefLTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLTE(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefContains applies the Contains predicate on the "pallet_ref" field.
|
||||
func PalletRefContains(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContains(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefHasPrefix applies the HasPrefix predicate on the "pallet_ref" field.
|
||||
func PalletRefHasPrefix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasPrefix(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefHasSuffix applies the HasSuffix predicate on the "pallet_ref" field.
|
||||
func PalletRefHasSuffix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasSuffix(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefIsNil applies the IsNil predicate on the "pallet_ref" field.
|
||||
func PalletRefIsNil() predicate.Dock {
|
||||
return predicate.Dock(sql.FieldIsNull(FieldPalletRef))
|
||||
}
|
||||
|
||||
// PalletRefNotNil applies the NotNil predicate on the "pallet_ref" field.
|
||||
func PalletRefNotNil() predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNotNull(FieldPalletRef))
|
||||
}
|
||||
|
||||
// PalletRefEqualFold applies the EqualFold predicate on the "pallet_ref" field.
|
||||
func PalletRefEqualFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEqualFold(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// PalletRefContainsFold applies the ContainsFold predicate on the "pallet_ref" field.
|
||||
func PalletRefContainsFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContainsFold(FieldPalletRef, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v int64) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...int64) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...int64) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v int64) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v int64) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v int64) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v int64) predicate.Dock {
|
||||
return predicate.Dock(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.Dock) predicate.Dock {
|
||||
return predicate.Dock(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.Dock) predicate.Dock {
|
||||
return predicate.Dock(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.Dock) predicate.Dock {
|
||||
return predicate.Dock(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user