本次重构将原manage_mode字段拆分为独立的分类维度(manage_mode)和SN管理维度(sn_mode),实现全链路(MES/WMS/工位终端)的SN管理行为统一依据: 1. 新增sn_mode字段,定义1=序列号件、2=批次件、0=未选择,替代原manage_mode的SN判断逻辑 2. 移除冗余的manage_mode字段在多个实体中的使用,统一使用sn_mode决定业务行为 3. 新增工位接驳台配置,服务端固定接驳台,前端不可修改,确保AGV送达准确性 4. 优化检验记录导出,新增装配物料绑定明细,满足客户追溯需求 5. 修正前端提示文本,统一使用序列号件/批次件表述,与后端逻辑对齐
791 lines
28 KiB
Go
791 lines
28 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package material
|
|
|
|
import (
|
|
"bj_power_mes/ent/predicate"
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Code applies equality check predicate on the "code" field. It's identical to CodeEQ.
|
|
func Code(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldCode, v))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// Spec applies equality check predicate on the "spec" field. It's identical to SpecEQ.
|
|
func Spec(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldSpec, v))
|
|
}
|
|
|
|
// Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
|
|
func Unit(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldUnit, v))
|
|
}
|
|
|
|
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
|
|
func Description(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldDescription, v))
|
|
}
|
|
|
|
// ItemType applies equality check predicate on the "itemType" field. It's identical to ItemTypeEQ.
|
|
func ItemType(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldItemType, v))
|
|
}
|
|
|
|
// ManageMode applies equality check predicate on the "manageMode" field. It's identical to ManageModeEQ.
|
|
func ManageMode(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldManageMode, v))
|
|
}
|
|
|
|
// SnMode applies equality check predicate on the "snMode" field. It's identical to SnModeEQ.
|
|
func SnMode(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldSnMode, v))
|
|
}
|
|
|
|
// TemplateCode applies equality check predicate on the "templateCode" field. It's identical to TemplateCodeEQ.
|
|
func TemplateCode(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldTemplateCode, v))
|
|
}
|
|
|
|
// SafetyStock applies equality check predicate on the "safetyStock" field. It's identical to SafetyStockEQ.
|
|
func SafetyStock(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldSafetyStock, v))
|
|
}
|
|
|
|
// IsActive applies equality check predicate on the "isActive" field. It's identical to IsActiveEQ.
|
|
func IsActive(v bool) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldIsActive, v))
|
|
}
|
|
|
|
// SyncPending applies equality check predicate on the "syncPending" field. It's identical to SyncPendingEQ.
|
|
func SyncPending(v bool) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldSyncPending, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// CodeEQ applies the EQ predicate on the "code" field.
|
|
func CodeEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldCode, v))
|
|
}
|
|
|
|
// CodeNEQ applies the NEQ predicate on the "code" field.
|
|
func CodeNEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldCode, v))
|
|
}
|
|
|
|
// CodeIn applies the In predicate on the "code" field.
|
|
func CodeIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldCode, vs...))
|
|
}
|
|
|
|
// CodeNotIn applies the NotIn predicate on the "code" field.
|
|
func CodeNotIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldCode, vs...))
|
|
}
|
|
|
|
// CodeGT applies the GT predicate on the "code" field.
|
|
func CodeGT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldCode, v))
|
|
}
|
|
|
|
// CodeGTE applies the GTE predicate on the "code" field.
|
|
func CodeGTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldCode, v))
|
|
}
|
|
|
|
// CodeLT applies the LT predicate on the "code" field.
|
|
func CodeLT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldCode, v))
|
|
}
|
|
|
|
// CodeLTE applies the LTE predicate on the "code" field.
|
|
func CodeLTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldCode, v))
|
|
}
|
|
|
|
// CodeContains applies the Contains predicate on the "code" field.
|
|
func CodeContains(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContains(FieldCode, v))
|
|
}
|
|
|
|
// CodeHasPrefix applies the HasPrefix predicate on the "code" field.
|
|
func CodeHasPrefix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasPrefix(FieldCode, v))
|
|
}
|
|
|
|
// CodeHasSuffix applies the HasSuffix predicate on the "code" field.
|
|
func CodeHasSuffix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasSuffix(FieldCode, v))
|
|
}
|
|
|
|
// CodeEqualFold applies the EqualFold predicate on the "code" field.
|
|
func CodeEqualFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEqualFold(FieldCode, v))
|
|
}
|
|
|
|
// CodeContainsFold applies the ContainsFold predicate on the "code" field.
|
|
func CodeContainsFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContainsFold(FieldCode, v))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// SpecEQ applies the EQ predicate on the "spec" field.
|
|
func SpecEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldSpec, v))
|
|
}
|
|
|
|
// SpecNEQ applies the NEQ predicate on the "spec" field.
|
|
func SpecNEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldSpec, v))
|
|
}
|
|
|
|
// SpecIn applies the In predicate on the "spec" field.
|
|
func SpecIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldSpec, vs...))
|
|
}
|
|
|
|
// SpecNotIn applies the NotIn predicate on the "spec" field.
|
|
func SpecNotIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldSpec, vs...))
|
|
}
|
|
|
|
// SpecGT applies the GT predicate on the "spec" field.
|
|
func SpecGT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldSpec, v))
|
|
}
|
|
|
|
// SpecGTE applies the GTE predicate on the "spec" field.
|
|
func SpecGTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldSpec, v))
|
|
}
|
|
|
|
// SpecLT applies the LT predicate on the "spec" field.
|
|
func SpecLT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldSpec, v))
|
|
}
|
|
|
|
// SpecLTE applies the LTE predicate on the "spec" field.
|
|
func SpecLTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldSpec, v))
|
|
}
|
|
|
|
// SpecContains applies the Contains predicate on the "spec" field.
|
|
func SpecContains(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContains(FieldSpec, v))
|
|
}
|
|
|
|
// SpecHasPrefix applies the HasPrefix predicate on the "spec" field.
|
|
func SpecHasPrefix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasPrefix(FieldSpec, v))
|
|
}
|
|
|
|
// SpecHasSuffix applies the HasSuffix predicate on the "spec" field.
|
|
func SpecHasSuffix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasSuffix(FieldSpec, v))
|
|
}
|
|
|
|
// SpecEqualFold applies the EqualFold predicate on the "spec" field.
|
|
func SpecEqualFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEqualFold(FieldSpec, v))
|
|
}
|
|
|
|
// SpecContainsFold applies the ContainsFold predicate on the "spec" field.
|
|
func SpecContainsFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContainsFold(FieldSpec, v))
|
|
}
|
|
|
|
// UnitEQ applies the EQ predicate on the "unit" field.
|
|
func UnitEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldUnit, v))
|
|
}
|
|
|
|
// UnitNEQ applies the NEQ predicate on the "unit" field.
|
|
func UnitNEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldUnit, v))
|
|
}
|
|
|
|
// UnitIn applies the In predicate on the "unit" field.
|
|
func UnitIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldUnit, vs...))
|
|
}
|
|
|
|
// UnitNotIn applies the NotIn predicate on the "unit" field.
|
|
func UnitNotIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldUnit, vs...))
|
|
}
|
|
|
|
// UnitGT applies the GT predicate on the "unit" field.
|
|
func UnitGT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldUnit, v))
|
|
}
|
|
|
|
// UnitGTE applies the GTE predicate on the "unit" field.
|
|
func UnitGTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldUnit, v))
|
|
}
|
|
|
|
// UnitLT applies the LT predicate on the "unit" field.
|
|
func UnitLT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldUnit, v))
|
|
}
|
|
|
|
// UnitLTE applies the LTE predicate on the "unit" field.
|
|
func UnitLTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldUnit, v))
|
|
}
|
|
|
|
// UnitContains applies the Contains predicate on the "unit" field.
|
|
func UnitContains(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContains(FieldUnit, v))
|
|
}
|
|
|
|
// UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
|
|
func UnitHasPrefix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasPrefix(FieldUnit, v))
|
|
}
|
|
|
|
// UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
|
|
func UnitHasSuffix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasSuffix(FieldUnit, v))
|
|
}
|
|
|
|
// UnitEqualFold applies the EqualFold predicate on the "unit" field.
|
|
func UnitEqualFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEqualFold(FieldUnit, v))
|
|
}
|
|
|
|
// UnitContainsFold applies the ContainsFold predicate on the "unit" field.
|
|
func UnitContainsFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContainsFold(FieldUnit, v))
|
|
}
|
|
|
|
// DescriptionEQ applies the EQ predicate on the "description" field.
|
|
func DescriptionEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionNEQ applies the NEQ predicate on the "description" field.
|
|
func DescriptionNEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionIn applies the In predicate on the "description" field.
|
|
func DescriptionIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldDescription, vs...))
|
|
}
|
|
|
|
// DescriptionNotIn applies the NotIn predicate on the "description" field.
|
|
func DescriptionNotIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldDescription, vs...))
|
|
}
|
|
|
|
// DescriptionGT applies the GT predicate on the "description" field.
|
|
func DescriptionGT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionGTE applies the GTE predicate on the "description" field.
|
|
func DescriptionGTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionLT applies the LT predicate on the "description" field.
|
|
func DescriptionLT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionLTE applies the LTE predicate on the "description" field.
|
|
func DescriptionLTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionContains applies the Contains predicate on the "description" field.
|
|
func DescriptionContains(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContains(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
|
|
func DescriptionHasPrefix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasPrefix(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
|
|
func DescriptionHasSuffix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasSuffix(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
|
|
func DescriptionEqualFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEqualFold(FieldDescription, v))
|
|
}
|
|
|
|
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
|
|
func DescriptionContainsFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContainsFold(FieldDescription, v))
|
|
}
|
|
|
|
// ItemTypeEQ applies the EQ predicate on the "itemType" field.
|
|
func ItemTypeEQ(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldItemType, v))
|
|
}
|
|
|
|
// ItemTypeNEQ applies the NEQ predicate on the "itemType" field.
|
|
func ItemTypeNEQ(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldItemType, v))
|
|
}
|
|
|
|
// ItemTypeIn applies the In predicate on the "itemType" field.
|
|
func ItemTypeIn(vs ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldItemType, vs...))
|
|
}
|
|
|
|
// ItemTypeNotIn applies the NotIn predicate on the "itemType" field.
|
|
func ItemTypeNotIn(vs ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldItemType, vs...))
|
|
}
|
|
|
|
// ItemTypeGT applies the GT predicate on the "itemType" field.
|
|
func ItemTypeGT(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldItemType, v))
|
|
}
|
|
|
|
// ItemTypeGTE applies the GTE predicate on the "itemType" field.
|
|
func ItemTypeGTE(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldItemType, v))
|
|
}
|
|
|
|
// ItemTypeLT applies the LT predicate on the "itemType" field.
|
|
func ItemTypeLT(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldItemType, v))
|
|
}
|
|
|
|
// ItemTypeLTE applies the LTE predicate on the "itemType" field.
|
|
func ItemTypeLTE(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldItemType, v))
|
|
}
|
|
|
|
// ManageModeEQ applies the EQ predicate on the "manageMode" field.
|
|
func ManageModeEQ(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldManageMode, v))
|
|
}
|
|
|
|
// ManageModeNEQ applies the NEQ predicate on the "manageMode" field.
|
|
func ManageModeNEQ(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldManageMode, v))
|
|
}
|
|
|
|
// ManageModeIn applies the In predicate on the "manageMode" field.
|
|
func ManageModeIn(vs ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldManageMode, vs...))
|
|
}
|
|
|
|
// ManageModeNotIn applies the NotIn predicate on the "manageMode" field.
|
|
func ManageModeNotIn(vs ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldManageMode, vs...))
|
|
}
|
|
|
|
// ManageModeGT applies the GT predicate on the "manageMode" field.
|
|
func ManageModeGT(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldManageMode, v))
|
|
}
|
|
|
|
// ManageModeGTE applies the GTE predicate on the "manageMode" field.
|
|
func ManageModeGTE(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldManageMode, v))
|
|
}
|
|
|
|
// ManageModeLT applies the LT predicate on the "manageMode" field.
|
|
func ManageModeLT(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldManageMode, v))
|
|
}
|
|
|
|
// ManageModeLTE applies the LTE predicate on the "manageMode" field.
|
|
func ManageModeLTE(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldManageMode, v))
|
|
}
|
|
|
|
// SnModeEQ applies the EQ predicate on the "snMode" field.
|
|
func SnModeEQ(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldSnMode, v))
|
|
}
|
|
|
|
// SnModeNEQ applies the NEQ predicate on the "snMode" field.
|
|
func SnModeNEQ(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldSnMode, v))
|
|
}
|
|
|
|
// SnModeIn applies the In predicate on the "snMode" field.
|
|
func SnModeIn(vs ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldSnMode, vs...))
|
|
}
|
|
|
|
// SnModeNotIn applies the NotIn predicate on the "snMode" field.
|
|
func SnModeNotIn(vs ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldSnMode, vs...))
|
|
}
|
|
|
|
// SnModeGT applies the GT predicate on the "snMode" field.
|
|
func SnModeGT(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldSnMode, v))
|
|
}
|
|
|
|
// SnModeGTE applies the GTE predicate on the "snMode" field.
|
|
func SnModeGTE(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldSnMode, v))
|
|
}
|
|
|
|
// SnModeLT applies the LT predicate on the "snMode" field.
|
|
func SnModeLT(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldSnMode, v))
|
|
}
|
|
|
|
// SnModeLTE applies the LTE predicate on the "snMode" field.
|
|
func SnModeLTE(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldSnMode, v))
|
|
}
|
|
|
|
// TemplateCodeEQ applies the EQ predicate on the "templateCode" field.
|
|
func TemplateCodeEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeNEQ applies the NEQ predicate on the "templateCode" field.
|
|
func TemplateCodeNEQ(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeIn applies the In predicate on the "templateCode" field.
|
|
func TemplateCodeIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldTemplateCode, vs...))
|
|
}
|
|
|
|
// TemplateCodeNotIn applies the NotIn predicate on the "templateCode" field.
|
|
func TemplateCodeNotIn(vs ...string) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldTemplateCode, vs...))
|
|
}
|
|
|
|
// TemplateCodeGT applies the GT predicate on the "templateCode" field.
|
|
func TemplateCodeGT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeGTE applies the GTE predicate on the "templateCode" field.
|
|
func TemplateCodeGTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeLT applies the LT predicate on the "templateCode" field.
|
|
func TemplateCodeLT(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeLTE applies the LTE predicate on the "templateCode" field.
|
|
func TemplateCodeLTE(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeContains applies the Contains predicate on the "templateCode" field.
|
|
func TemplateCodeContains(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContains(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeHasPrefix applies the HasPrefix predicate on the "templateCode" field.
|
|
func TemplateCodeHasPrefix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasPrefix(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeHasSuffix applies the HasSuffix predicate on the "templateCode" field.
|
|
func TemplateCodeHasSuffix(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldHasSuffix(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeEqualFold applies the EqualFold predicate on the "templateCode" field.
|
|
func TemplateCodeEqualFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldEqualFold(FieldTemplateCode, v))
|
|
}
|
|
|
|
// TemplateCodeContainsFold applies the ContainsFold predicate on the "templateCode" field.
|
|
func TemplateCodeContainsFold(v string) predicate.Material {
|
|
return predicate.Material(sql.FieldContainsFold(FieldTemplateCode, v))
|
|
}
|
|
|
|
// SafetyStockEQ applies the EQ predicate on the "safetyStock" field.
|
|
func SafetyStockEQ(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldSafetyStock, v))
|
|
}
|
|
|
|
// SafetyStockNEQ applies the NEQ predicate on the "safetyStock" field.
|
|
func SafetyStockNEQ(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldSafetyStock, v))
|
|
}
|
|
|
|
// SafetyStockIn applies the In predicate on the "safetyStock" field.
|
|
func SafetyStockIn(vs ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldSafetyStock, vs...))
|
|
}
|
|
|
|
// SafetyStockNotIn applies the NotIn predicate on the "safetyStock" field.
|
|
func SafetyStockNotIn(vs ...int) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldSafetyStock, vs...))
|
|
}
|
|
|
|
// SafetyStockGT applies the GT predicate on the "safetyStock" field.
|
|
func SafetyStockGT(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldSafetyStock, v))
|
|
}
|
|
|
|
// SafetyStockGTE applies the GTE predicate on the "safetyStock" field.
|
|
func SafetyStockGTE(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldSafetyStock, v))
|
|
}
|
|
|
|
// SafetyStockLT applies the LT predicate on the "safetyStock" field.
|
|
func SafetyStockLT(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldSafetyStock, v))
|
|
}
|
|
|
|
// SafetyStockLTE applies the LTE predicate on the "safetyStock" field.
|
|
func SafetyStockLTE(v int) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldSafetyStock, v))
|
|
}
|
|
|
|
// IsActiveEQ applies the EQ predicate on the "isActive" field.
|
|
func IsActiveEQ(v bool) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldIsActive, v))
|
|
}
|
|
|
|
// IsActiveNEQ applies the NEQ predicate on the "isActive" field.
|
|
func IsActiveNEQ(v bool) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldIsActive, v))
|
|
}
|
|
|
|
// SyncPendingEQ applies the EQ predicate on the "syncPending" field.
|
|
func SyncPendingEQ(v bool) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldSyncPending, v))
|
|
}
|
|
|
|
// SyncPendingNEQ applies the NEQ predicate on the "syncPending" field.
|
|
func SyncPendingNEQ(v bool) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldSyncPending, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
|
func CreatedAtEQ(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
|
func CreatedAtGT(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
|
func CreatedAtGTE(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
|
func CreatedAtLT(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
|
func CreatedAtLTE(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
|
func UpdatedAtGT(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
|
func UpdatedAtLT(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.Material {
|
|
return predicate.Material(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Material) predicate.Material {
|
|
return predicate.Material(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Material) predicate.Material {
|
|
return predicate.Material(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Material) predicate.Material {
|
|
return predicate.Material(sql.NotPredicates(p))
|
|
}
|