feat: 新增检测单关联、基础数据优化与入库单升级
1. 新增出库单检测单号字段并添加索引支持溯源 2. 优化基础数据页面物料类型展示与选择逻辑 3. 升级入库单导入功能,支持自动生成单号并返回导入结果 4. 优化接驳台查询排序方式 5. 修复字符串拼接空格问题
This commit is contained in:
@@ -0,0 +1,984 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package zone
|
||||
|
||||
import (
|
||||
"bj_power_wms/predicate"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Level applies equality check predicate on the "level" field. It's identical to LevelEQ.
|
||||
func Level(v int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldLevel, v))
|
||||
}
|
||||
|
||||
// Code applies equality check predicate on the "code" field. It's identical to CodeEQ.
|
||||
func Code(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldCode, v))
|
||||
}
|
||||
|
||||
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
||||
func Name(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// ParentCode applies equality check predicate on the "parent_code" field. It's identical to ParentCodeEQ.
|
||||
func ParentCode(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ZoneCode applies equality check predicate on the "zone_code" field. It's identical to ZoneCodeEQ.
|
||||
func ZoneCode(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneName applies equality check predicate on the "zone_name" field. It's identical to ZoneNameEQ.
|
||||
func ZoneName(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
|
||||
func Description(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// ShelfNo applies equality check predicate on the "shelf_no" field. It's identical to ShelfNoEQ.
|
||||
func ShelfNo(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// LayerNo applies equality check predicate on the "layer_no" field. It's identical to LayerNoEQ.
|
||||
func LayerNo(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// PositionNo applies equality check predicate on the "position_no" field. It's identical to PositionNoEQ.
|
||||
func PositionNo(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// LevelEQ applies the EQ predicate on the "level" field.
|
||||
func LevelEQ(v int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldLevel, v))
|
||||
}
|
||||
|
||||
// LevelNEQ applies the NEQ predicate on the "level" field.
|
||||
func LevelNEQ(v int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldLevel, v))
|
||||
}
|
||||
|
||||
// LevelIn applies the In predicate on the "level" field.
|
||||
func LevelIn(vs ...int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldLevel, vs...))
|
||||
}
|
||||
|
||||
// LevelNotIn applies the NotIn predicate on the "level" field.
|
||||
func LevelNotIn(vs ...int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldLevel, vs...))
|
||||
}
|
||||
|
||||
// LevelGT applies the GT predicate on the "level" field.
|
||||
func LevelGT(v int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldLevel, v))
|
||||
}
|
||||
|
||||
// LevelGTE applies the GTE predicate on the "level" field.
|
||||
func LevelGTE(v int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldLevel, v))
|
||||
}
|
||||
|
||||
// LevelLT applies the LT predicate on the "level" field.
|
||||
func LevelLT(v int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldLevel, v))
|
||||
}
|
||||
|
||||
// LevelLTE applies the LTE predicate on the "level" field.
|
||||
func LevelLTE(v int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldLevel, v))
|
||||
}
|
||||
|
||||
// CodeEQ applies the EQ predicate on the "code" field.
|
||||
func CodeEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeNEQ applies the NEQ predicate on the "code" field.
|
||||
func CodeNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeIn applies the In predicate on the "code" field.
|
||||
func CodeIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldCode, vs...))
|
||||
}
|
||||
|
||||
// CodeNotIn applies the NotIn predicate on the "code" field.
|
||||
func CodeNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldCode, vs...))
|
||||
}
|
||||
|
||||
// CodeGT applies the GT predicate on the "code" field.
|
||||
func CodeGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeGTE applies the GTE predicate on the "code" field.
|
||||
func CodeGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeLT applies the LT predicate on the "code" field.
|
||||
func CodeLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeLTE applies the LTE predicate on the "code" field.
|
||||
func CodeLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeContains applies the Contains predicate on the "code" field.
|
||||
func CodeContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeHasPrefix applies the HasPrefix predicate on the "code" field.
|
||||
func CodeHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeHasSuffix applies the HasSuffix predicate on the "code" field.
|
||||
func CodeHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeEqualFold applies the EqualFold predicate on the "code" field.
|
||||
func CodeEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldCode, v))
|
||||
}
|
||||
|
||||
// CodeContainsFold applies the ContainsFold predicate on the "code" field.
|
||||
func CodeContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldCode, v))
|
||||
}
|
||||
|
||||
// NameEQ applies the EQ predicate on the "name" field.
|
||||
func NameEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameNEQ applies the NEQ predicate on the "name" field.
|
||||
func NameNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameIn applies the In predicate on the "name" field.
|
||||
func NameIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameNotIn applies the NotIn predicate on the "name" field.
|
||||
func NameNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameGT applies the GT predicate on the "name" field.
|
||||
func NameGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameGTE applies the GTE predicate on the "name" field.
|
||||
func NameGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLT applies the LT predicate on the "name" field.
|
||||
func NameLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLTE applies the LTE predicate on the "name" field.
|
||||
func NameLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContains applies the Contains predicate on the "name" field.
|
||||
func NameContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
||||
func NameHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
||||
func NameHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameIsNil applies the IsNil predicate on the "name" field.
|
||||
func NameIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldName))
|
||||
}
|
||||
|
||||
// NameNotNil applies the NotNil predicate on the "name" field.
|
||||
func NameNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldName))
|
||||
}
|
||||
|
||||
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
||||
func NameEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
||||
func NameContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldName, v))
|
||||
}
|
||||
|
||||
// ParentCodeEQ applies the EQ predicate on the "parent_code" field.
|
||||
func ParentCodeEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeNEQ applies the NEQ predicate on the "parent_code" field.
|
||||
func ParentCodeNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeIn applies the In predicate on the "parent_code" field.
|
||||
func ParentCodeIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldParentCode, vs...))
|
||||
}
|
||||
|
||||
// ParentCodeNotIn applies the NotIn predicate on the "parent_code" field.
|
||||
func ParentCodeNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldParentCode, vs...))
|
||||
}
|
||||
|
||||
// ParentCodeGT applies the GT predicate on the "parent_code" field.
|
||||
func ParentCodeGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeGTE applies the GTE predicate on the "parent_code" field.
|
||||
func ParentCodeGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeLT applies the LT predicate on the "parent_code" field.
|
||||
func ParentCodeLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeLTE applies the LTE predicate on the "parent_code" field.
|
||||
func ParentCodeLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeContains applies the Contains predicate on the "parent_code" field.
|
||||
func ParentCodeContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeHasPrefix applies the HasPrefix predicate on the "parent_code" field.
|
||||
func ParentCodeHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeHasSuffix applies the HasSuffix predicate on the "parent_code" field.
|
||||
func ParentCodeHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeIsNil applies the IsNil predicate on the "parent_code" field.
|
||||
func ParentCodeIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldParentCode))
|
||||
}
|
||||
|
||||
// ParentCodeNotNil applies the NotNil predicate on the "parent_code" field.
|
||||
func ParentCodeNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldParentCode))
|
||||
}
|
||||
|
||||
// ParentCodeEqualFold applies the EqualFold predicate on the "parent_code" field.
|
||||
func ParentCodeEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeContainsFold applies the ContainsFold predicate on the "parent_code" field.
|
||||
func ParentCodeContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeEQ applies the EQ predicate on the "zone_code" field.
|
||||
func ZoneCodeEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeNEQ applies the NEQ predicate on the "zone_code" field.
|
||||
func ZoneCodeNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeIn applies the In predicate on the "zone_code" field.
|
||||
func ZoneCodeIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldZoneCode, vs...))
|
||||
}
|
||||
|
||||
// ZoneCodeNotIn applies the NotIn predicate on the "zone_code" field.
|
||||
func ZoneCodeNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldZoneCode, vs...))
|
||||
}
|
||||
|
||||
// ZoneCodeGT applies the GT predicate on the "zone_code" field.
|
||||
func ZoneCodeGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeGTE applies the GTE predicate on the "zone_code" field.
|
||||
func ZoneCodeGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeLT applies the LT predicate on the "zone_code" field.
|
||||
func ZoneCodeLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeLTE applies the LTE predicate on the "zone_code" field.
|
||||
func ZoneCodeLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeContains applies the Contains predicate on the "zone_code" field.
|
||||
func ZoneCodeContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeHasPrefix applies the HasPrefix predicate on the "zone_code" field.
|
||||
func ZoneCodeHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeHasSuffix applies the HasSuffix predicate on the "zone_code" field.
|
||||
func ZoneCodeHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeEqualFold applies the EqualFold predicate on the "zone_code" field.
|
||||
func ZoneCodeEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeContainsFold applies the ContainsFold predicate on the "zone_code" field.
|
||||
func ZoneCodeContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneNameEQ applies the EQ predicate on the "zone_name" field.
|
||||
func ZoneNameEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameNEQ applies the NEQ predicate on the "zone_name" field.
|
||||
func ZoneNameNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameIn applies the In predicate on the "zone_name" field.
|
||||
func ZoneNameIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldZoneName, vs...))
|
||||
}
|
||||
|
||||
// ZoneNameNotIn applies the NotIn predicate on the "zone_name" field.
|
||||
func ZoneNameNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldZoneName, vs...))
|
||||
}
|
||||
|
||||
// ZoneNameGT applies the GT predicate on the "zone_name" field.
|
||||
func ZoneNameGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameGTE applies the GTE predicate on the "zone_name" field.
|
||||
func ZoneNameGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameLT applies the LT predicate on the "zone_name" field.
|
||||
func ZoneNameLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameLTE applies the LTE predicate on the "zone_name" field.
|
||||
func ZoneNameLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameContains applies the Contains predicate on the "zone_name" field.
|
||||
func ZoneNameContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameHasPrefix applies the HasPrefix predicate on the "zone_name" field.
|
||||
func ZoneNameHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameHasSuffix applies the HasSuffix predicate on the "zone_name" field.
|
||||
func ZoneNameHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameIsNil applies the IsNil predicate on the "zone_name" field.
|
||||
func ZoneNameIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldZoneName))
|
||||
}
|
||||
|
||||
// ZoneNameNotNil applies the NotNil predicate on the "zone_name" field.
|
||||
func ZoneNameNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldZoneName))
|
||||
}
|
||||
|
||||
// ZoneNameEqualFold applies the EqualFold predicate on the "zone_name" field.
|
||||
func ZoneNameEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameContainsFold applies the ContainsFold predicate on the "zone_name" field.
|
||||
func ZoneNameContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// DescriptionEQ applies the EQ predicate on the "description" field.
|
||||
func DescriptionEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionNEQ applies the NEQ predicate on the "description" field.
|
||||
func DescriptionNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionIn applies the In predicate on the "description" field.
|
||||
func DescriptionIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldDescription, vs...))
|
||||
}
|
||||
|
||||
// DescriptionNotIn applies the NotIn predicate on the "description" field.
|
||||
func DescriptionNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldDescription, vs...))
|
||||
}
|
||||
|
||||
// DescriptionGT applies the GT predicate on the "description" field.
|
||||
func DescriptionGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionGTE applies the GTE predicate on the "description" field.
|
||||
func DescriptionGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionLT applies the LT predicate on the "description" field.
|
||||
func DescriptionLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionLTE applies the LTE predicate on the "description" field.
|
||||
func DescriptionLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionContains applies the Contains predicate on the "description" field.
|
||||
func DescriptionContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
|
||||
func DescriptionHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
|
||||
func DescriptionHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionIsNil applies the IsNil predicate on the "description" field.
|
||||
func DescriptionIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldDescription))
|
||||
}
|
||||
|
||||
// DescriptionNotNil applies the NotNil predicate on the "description" field.
|
||||
func DescriptionNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldDescription))
|
||||
}
|
||||
|
||||
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
|
||||
func DescriptionEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
|
||||
func DescriptionContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldDescription, v))
|
||||
}
|
||||
|
||||
// ShelfNoEQ applies the EQ predicate on the "shelf_no" field.
|
||||
func ShelfNoEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoNEQ applies the NEQ predicate on the "shelf_no" field.
|
||||
func ShelfNoNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoIn applies the In predicate on the "shelf_no" field.
|
||||
func ShelfNoIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldShelfNo, vs...))
|
||||
}
|
||||
|
||||
// ShelfNoNotIn applies the NotIn predicate on the "shelf_no" field.
|
||||
func ShelfNoNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldShelfNo, vs...))
|
||||
}
|
||||
|
||||
// ShelfNoGT applies the GT predicate on the "shelf_no" field.
|
||||
func ShelfNoGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoGTE applies the GTE predicate on the "shelf_no" field.
|
||||
func ShelfNoGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoLT applies the LT predicate on the "shelf_no" field.
|
||||
func ShelfNoLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoLTE applies the LTE predicate on the "shelf_no" field.
|
||||
func ShelfNoLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoContains applies the Contains predicate on the "shelf_no" field.
|
||||
func ShelfNoContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoHasPrefix applies the HasPrefix predicate on the "shelf_no" field.
|
||||
func ShelfNoHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoHasSuffix applies the HasSuffix predicate on the "shelf_no" field.
|
||||
func ShelfNoHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoIsNil applies the IsNil predicate on the "shelf_no" field.
|
||||
func ShelfNoIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldShelfNo))
|
||||
}
|
||||
|
||||
// ShelfNoNotNil applies the NotNil predicate on the "shelf_no" field.
|
||||
func ShelfNoNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldShelfNo))
|
||||
}
|
||||
|
||||
// ShelfNoEqualFold applies the EqualFold predicate on the "shelf_no" field.
|
||||
func ShelfNoEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoContainsFold applies the ContainsFold predicate on the "shelf_no" field.
|
||||
func ShelfNoContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// LayerNoEQ applies the EQ predicate on the "layer_no" field.
|
||||
func LayerNoEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoNEQ applies the NEQ predicate on the "layer_no" field.
|
||||
func LayerNoNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoIn applies the In predicate on the "layer_no" field.
|
||||
func LayerNoIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldLayerNo, vs...))
|
||||
}
|
||||
|
||||
// LayerNoNotIn applies the NotIn predicate on the "layer_no" field.
|
||||
func LayerNoNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldLayerNo, vs...))
|
||||
}
|
||||
|
||||
// LayerNoGT applies the GT predicate on the "layer_no" field.
|
||||
func LayerNoGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoGTE applies the GTE predicate on the "layer_no" field.
|
||||
func LayerNoGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoLT applies the LT predicate on the "layer_no" field.
|
||||
func LayerNoLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoLTE applies the LTE predicate on the "layer_no" field.
|
||||
func LayerNoLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoContains applies the Contains predicate on the "layer_no" field.
|
||||
func LayerNoContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoHasPrefix applies the HasPrefix predicate on the "layer_no" field.
|
||||
func LayerNoHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoHasSuffix applies the HasSuffix predicate on the "layer_no" field.
|
||||
func LayerNoHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoIsNil applies the IsNil predicate on the "layer_no" field.
|
||||
func LayerNoIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldLayerNo))
|
||||
}
|
||||
|
||||
// LayerNoNotNil applies the NotNil predicate on the "layer_no" field.
|
||||
func LayerNoNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldLayerNo))
|
||||
}
|
||||
|
||||
// LayerNoEqualFold applies the EqualFold predicate on the "layer_no" field.
|
||||
func LayerNoEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoContainsFold applies the ContainsFold predicate on the "layer_no" field.
|
||||
func LayerNoContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// PositionNoEQ applies the EQ predicate on the "position_no" field.
|
||||
func PositionNoEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoNEQ applies the NEQ predicate on the "position_no" field.
|
||||
func PositionNoNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoIn applies the In predicate on the "position_no" field.
|
||||
func PositionNoIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldPositionNo, vs...))
|
||||
}
|
||||
|
||||
// PositionNoNotIn applies the NotIn predicate on the "position_no" field.
|
||||
func PositionNoNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldPositionNo, vs...))
|
||||
}
|
||||
|
||||
// PositionNoGT applies the GT predicate on the "position_no" field.
|
||||
func PositionNoGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoGTE applies the GTE predicate on the "position_no" field.
|
||||
func PositionNoGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoLT applies the LT predicate on the "position_no" field.
|
||||
func PositionNoLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoLTE applies the LTE predicate on the "position_no" field.
|
||||
func PositionNoLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoContains applies the Contains predicate on the "position_no" field.
|
||||
func PositionNoContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoHasPrefix applies the HasPrefix predicate on the "position_no" field.
|
||||
func PositionNoHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoHasSuffix applies the HasSuffix predicate on the "position_no" field.
|
||||
func PositionNoHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoIsNil applies the IsNil predicate on the "position_no" field.
|
||||
func PositionNoIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldPositionNo))
|
||||
}
|
||||
|
||||
// PositionNoNotNil applies the NotNil predicate on the "position_no" field.
|
||||
func PositionNoNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldPositionNo))
|
||||
}
|
||||
|
||||
// PositionNoEqualFold applies the EqualFold predicate on the "position_no" field.
|
||||
func PositionNoEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoContainsFold applies the ContainsFold predicate on the "position_no" field.
|
||||
func PositionNoContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
||||
func UpdatedAtEQ(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
||||
func UpdatedAtNEQ(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
||||
func UpdatedAtIn(vs ...int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
||||
func UpdatedAtNotIn(vs ...int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
||||
func UpdatedAtGT(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
||||
func UpdatedAtGTE(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
||||
func UpdatedAtLT(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
||||
func UpdatedAtLTE(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
|
||||
func UpdatedAtIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldUpdatedAt))
|
||||
}
|
||||
|
||||
// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
|
||||
func UpdatedAtNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldUpdatedAt))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.Zone) predicate.Zone {
|
||||
return predicate.Zone(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.Zone) predicate.Zone {
|
||||
return predicate.Zone(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.Zone) predicate.Zone {
|
||||
return predicate.Zone(sql.NotPredicates(p))
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package zone
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the zone type in the database.
|
||||
Label = "zone"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldLevel holds the string denoting the level field in the database.
|
||||
FieldLevel = "level"
|
||||
// FieldCode holds the string denoting the code field in the database.
|
||||
FieldCode = "code"
|
||||
// FieldName holds the string denoting the name field in the database.
|
||||
FieldName = "name"
|
||||
// FieldParentCode holds the string denoting the parent_code field in the database.
|
||||
FieldParentCode = "parent_code"
|
||||
// FieldZoneCode holds the string denoting the zone_code field in the database.
|
||||
FieldZoneCode = "zone_code"
|
||||
// FieldZoneName holds the string denoting the zone_name field in the database.
|
||||
FieldZoneName = "zone_name"
|
||||
// FieldDescription holds the string denoting the description field in the database.
|
||||
FieldDescription = "description"
|
||||
// FieldShelfNo holds the string denoting the shelf_no field in the database.
|
||||
FieldShelfNo = "shelf_no"
|
||||
// FieldLayerNo holds the string denoting the layer_no field in the database.
|
||||
FieldLayerNo = "layer_no"
|
||||
// FieldPositionNo holds the string denoting the position_no field in the database.
|
||||
FieldPositionNo = "position_no"
|
||||
// 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"
|
||||
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// Table holds the table name of the zone in the database.
|
||||
Table = "zones"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for zone fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldLevel,
|
||||
FieldCode,
|
||||
FieldName,
|
||||
FieldParentCode,
|
||||
FieldZoneCode,
|
||||
FieldZoneName,
|
||||
FieldDescription,
|
||||
FieldShelfNo,
|
||||
FieldLayerNo,
|
||||
FieldPositionNo,
|
||||
FieldStatus,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
|
||||
// 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 (
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
|
||||
DefaultUpdatedAt func() int64
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Zone 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()
|
||||
}
|
||||
|
||||
// ByLevel orders the results by the level field.
|
||||
func ByLevel(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLevel, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCode orders the results by the code field.
|
||||
func ByCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByParentCode orders the results by the parent_code field.
|
||||
func ByParentCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldParentCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByZoneCode orders the results by the zone_code field.
|
||||
func ByZoneCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldZoneCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByZoneName orders the results by the zone_name field.
|
||||
func ByZoneName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldZoneName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDescription orders the results by the description field.
|
||||
func ByDescription(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDescription, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByShelfNo orders the results by the shelf_no field.
|
||||
func ByShelfNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldShelfNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLayerNo orders the results by the layer_no field.
|
||||
func ByLayerNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLayerNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPositionNo orders the results by the position_no field.
|
||||
func ByPositionNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPositionNo, 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()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updated_at field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
Reference in New Issue
Block a user