feat: 核心业务实体扩充(混产模板/产品BOM/试制记录)、WMS 库存检验增强与前端通用能力
- MES 新增实体:混产模板、产品BOM、产品工艺物料、试制记录(schema + ent 生成码 + logic/handler/前端页) - WMS 实体增强:检验记录、库存、半成品重构;新增序列号库存与短缺代报 - AGV 与产能:AGV 手动点位与链路、物料守卫、短缺预测、原因字典 - 前端通用能力:新增下一步引导组件 NextStepBar,统一帮助文档/布局/请求拦截与操作列 - 工位终端:界面与各 handler 调整(api/store/绑定/PLC/拧紧/上报等) - 配置与文档:更新 mes-api.yaml、WMS README 及案例/产线API/问题记录/项目说明/流程说明
This commit is contained in:
@@ -0,0 +1,144 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package productbom
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the productbom type in the database.
|
||||
Label = "product_bom"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldProductCode holds the string denoting the productcode field in the database.
|
||||
FieldProductCode = "product_code"
|
||||
// FieldMaterialCode holds the string denoting the materialcode field in the database.
|
||||
FieldMaterialCode = "material_code"
|
||||
// FieldMaterialName holds the string denoting the materialname field in the database.
|
||||
FieldMaterialName = "material_name"
|
||||
// FieldSpec holds the string denoting the spec field in the database.
|
||||
FieldSpec = "spec"
|
||||
// FieldUnit holds the string denoting the unit field in the database.
|
||||
FieldUnit = "unit"
|
||||
// FieldUnitQty holds the string denoting the unitqty field in the database.
|
||||
FieldUnitQty = "unit_qty"
|
||||
// FieldLossRate holds the string denoting the lossrate field in the database.
|
||||
FieldLossRate = "loss_rate"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
FieldRemark = "remark"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the productbom in the database.
|
||||
Table = "product_bom"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for productbom fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldProductCode,
|
||||
FieldMaterialCode,
|
||||
FieldMaterialName,
|
||||
FieldSpec,
|
||||
FieldUnit,
|
||||
FieldUnitQty,
|
||||
FieldLossRate,
|
||||
FieldRemark,
|
||||
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 (
|
||||
// ProductCodeValidator is a validator for the "productCode" field. It is called by the builders before save.
|
||||
ProductCodeValidator func(string) error
|
||||
// MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
MaterialCodeValidator func(string) error
|
||||
// DefaultMaterialName holds the default value on creation for the "materialName" field.
|
||||
DefaultMaterialName string
|
||||
// MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
MaterialNameValidator func(string) error
|
||||
// DefaultSpec holds the default value on creation for the "spec" field.
|
||||
DefaultSpec string
|
||||
// SpecValidator is a validator for the "spec" field. It is called by the builders before save.
|
||||
SpecValidator func(string) error
|
||||
// DefaultUnit holds the default value on creation for the "unit" field.
|
||||
DefaultUnit string
|
||||
// UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
UnitValidator func(string) error
|
||||
// DefaultUnitQty holds the default value on creation for the "unitQty" field.
|
||||
DefaultUnitQty float64
|
||||
// DefaultLossRate holds the default value on creation for the "lossRate" field.
|
||||
DefaultLossRate float64
|
||||
// DefaultRemark holds the default value on creation for the "remark" field.
|
||||
DefaultRemark string
|
||||
// RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
RemarkValidator func(string) error
|
||||
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the ProductBOM 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()
|
||||
}
|
||||
|
||||
// ByProductCode orders the results by the productCode field.
|
||||
func ByProductCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProductCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialCode orders the results by the materialCode field.
|
||||
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialName orders the results by the materialName field.
|
||||
func ByMaterialName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySpec orders the results by the spec field.
|
||||
func BySpec(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSpec, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUnit orders the results by the unit field.
|
||||
func ByUnit(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUnit, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUnitQty orders the results by the unitQty field.
|
||||
func ByUnitQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUnitQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLossRate orders the results by the lossRate field.
|
||||
func ByLossRate(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLossRate, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRemark orders the results by the remark field.
|
||||
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRemark, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the createdAt field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,625 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package productbom
|
||||
|
||||
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.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// ProductCode applies equality check predicate on the "productCode" field. It's identical to ProductCodeEQ.
|
||||
func ProductCode(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// MaterialCode applies equality check predicate on the "materialCode" field. It's identical to MaterialCodeEQ.
|
||||
func MaterialCode(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialName applies equality check predicate on the "materialName" field. It's identical to MaterialNameEQ.
|
||||
func MaterialName(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// Spec applies equality check predicate on the "spec" field. It's identical to SpecEQ.
|
||||
func Spec(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldSpec, v))
|
||||
}
|
||||
|
||||
// Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
|
||||
func Unit(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitQty applies equality check predicate on the "unitQty" field. It's identical to UnitQtyEQ.
|
||||
func UnitQty(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// LossRate applies equality check predicate on the "lossRate" field. It's identical to LossRateEQ.
|
||||
func LossRate(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
||||
func Remark(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// ProductCodeEQ applies the EQ predicate on the "productCode" field.
|
||||
func ProductCodeEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeNEQ applies the NEQ predicate on the "productCode" field.
|
||||
func ProductCodeNEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeIn applies the In predicate on the "productCode" field.
|
||||
func ProductCodeIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldProductCode, vs...))
|
||||
}
|
||||
|
||||
// ProductCodeNotIn applies the NotIn predicate on the "productCode" field.
|
||||
func ProductCodeNotIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldProductCode, vs...))
|
||||
}
|
||||
|
||||
// ProductCodeGT applies the GT predicate on the "productCode" field.
|
||||
func ProductCodeGT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeGTE applies the GTE predicate on the "productCode" field.
|
||||
func ProductCodeGTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeLT applies the LT predicate on the "productCode" field.
|
||||
func ProductCodeLT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeLTE applies the LTE predicate on the "productCode" field.
|
||||
func ProductCodeLTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeContains applies the Contains predicate on the "productCode" field.
|
||||
func ProductCodeContains(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContains(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeHasPrefix applies the HasPrefix predicate on the "productCode" field.
|
||||
func ProductCodeHasPrefix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasPrefix(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeHasSuffix applies the HasSuffix predicate on the "productCode" field.
|
||||
func ProductCodeHasSuffix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasSuffix(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeEqualFold applies the EqualFold predicate on the "productCode" field.
|
||||
func ProductCodeEqualFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEqualFold(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// ProductCodeContainsFold applies the ContainsFold predicate on the "productCode" field.
|
||||
func ProductCodeContainsFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContainsFold(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEQ applies the EQ predicate on the "materialCode" field.
|
||||
func MaterialCodeEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeNEQ applies the NEQ predicate on the "materialCode" field.
|
||||
func MaterialCodeNEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeIn applies the In predicate on the "materialCode" field.
|
||||
func MaterialCodeIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeNotIn applies the NotIn predicate on the "materialCode" field.
|
||||
func MaterialCodeNotIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeGT applies the GT predicate on the "materialCode" field.
|
||||
func MaterialCodeGT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeGTE applies the GTE predicate on the "materialCode" field.
|
||||
func MaterialCodeGTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLT applies the LT predicate on the "materialCode" field.
|
||||
func MaterialCodeLT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLTE applies the LTE predicate on the "materialCode" field.
|
||||
func MaterialCodeLTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContains applies the Contains predicate on the "materialCode" field.
|
||||
func MaterialCodeContains(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContains(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasPrefix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasPrefix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasSuffix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasSuffix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEqualFold applies the EqualFold predicate on the "materialCode" field.
|
||||
func MaterialCodeEqualFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEqualFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContainsFold applies the ContainsFold predicate on the "materialCode" field.
|
||||
func MaterialCodeContainsFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContainsFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialNameEQ applies the EQ predicate on the "materialName" field.
|
||||
func MaterialNameEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameNEQ applies the NEQ predicate on the "materialName" field.
|
||||
func MaterialNameNEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameIn applies the In predicate on the "materialName" field.
|
||||
func MaterialNameIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameNotIn applies the NotIn predicate on the "materialName" field.
|
||||
func MaterialNameNotIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameGT applies the GT predicate on the "materialName" field.
|
||||
func MaterialNameGT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameGTE applies the GTE predicate on the "materialName" field.
|
||||
func MaterialNameGTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLT applies the LT predicate on the "materialName" field.
|
||||
func MaterialNameLT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLTE applies the LTE predicate on the "materialName" field.
|
||||
func MaterialNameLTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContains applies the Contains predicate on the "materialName" field.
|
||||
func MaterialNameContains(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContains(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasPrefix applies the HasPrefix predicate on the "materialName" field.
|
||||
func MaterialNameHasPrefix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasPrefix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasSuffix applies the HasSuffix predicate on the "materialName" field.
|
||||
func MaterialNameHasSuffix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasSuffix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameEqualFold applies the EqualFold predicate on the "materialName" field.
|
||||
func MaterialNameEqualFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEqualFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContainsFold applies the ContainsFold predicate on the "materialName" field.
|
||||
func MaterialNameContainsFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContainsFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// SpecEQ applies the EQ predicate on the "spec" field.
|
||||
func SpecEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecNEQ applies the NEQ predicate on the "spec" field.
|
||||
func SpecNEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecIn applies the In predicate on the "spec" field.
|
||||
func SpecIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldSpec, vs...))
|
||||
}
|
||||
|
||||
// SpecNotIn applies the NotIn predicate on the "spec" field.
|
||||
func SpecNotIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldSpec, vs...))
|
||||
}
|
||||
|
||||
// SpecGT applies the GT predicate on the "spec" field.
|
||||
func SpecGT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecGTE applies the GTE predicate on the "spec" field.
|
||||
func SpecGTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecLT applies the LT predicate on the "spec" field.
|
||||
func SpecLT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecLTE applies the LTE predicate on the "spec" field.
|
||||
func SpecLTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecContains applies the Contains predicate on the "spec" field.
|
||||
func SpecContains(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContains(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecHasPrefix applies the HasPrefix predicate on the "spec" field.
|
||||
func SpecHasPrefix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasPrefix(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecHasSuffix applies the HasSuffix predicate on the "spec" field.
|
||||
func SpecHasSuffix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasSuffix(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecEqualFold applies the EqualFold predicate on the "spec" field.
|
||||
func SpecEqualFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEqualFold(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecContainsFold applies the ContainsFold predicate on the "spec" field.
|
||||
func SpecContainsFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContainsFold(FieldSpec, v))
|
||||
}
|
||||
|
||||
// UnitEQ applies the EQ predicate on the "unit" field.
|
||||
func UnitEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitNEQ applies the NEQ predicate on the "unit" field.
|
||||
func UnitNEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitIn applies the In predicate on the "unit" field.
|
||||
func UnitIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitNotIn applies the NotIn predicate on the "unit" field.
|
||||
func UnitNotIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitGT applies the GT predicate on the "unit" field.
|
||||
func UnitGT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitGTE applies the GTE predicate on the "unit" field.
|
||||
func UnitGTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLT applies the LT predicate on the "unit" field.
|
||||
func UnitLT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLTE applies the LTE predicate on the "unit" field.
|
||||
func UnitLTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContains applies the Contains predicate on the "unit" field.
|
||||
func UnitContains(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContains(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
|
||||
func UnitHasPrefix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasPrefix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
|
||||
func UnitHasSuffix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasSuffix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitEqualFold applies the EqualFold predicate on the "unit" field.
|
||||
func UnitEqualFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEqualFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContainsFold applies the ContainsFold predicate on the "unit" field.
|
||||
func UnitContainsFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContainsFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitQtyEQ applies the EQ predicate on the "unitQty" field.
|
||||
func UnitQtyEQ(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyNEQ applies the NEQ predicate on the "unitQty" field.
|
||||
func UnitQtyNEQ(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyIn applies the In predicate on the "unitQty" field.
|
||||
func UnitQtyIn(vs ...float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldUnitQty, vs...))
|
||||
}
|
||||
|
||||
// UnitQtyNotIn applies the NotIn predicate on the "unitQty" field.
|
||||
func UnitQtyNotIn(vs ...float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldUnitQty, vs...))
|
||||
}
|
||||
|
||||
// UnitQtyGT applies the GT predicate on the "unitQty" field.
|
||||
func UnitQtyGT(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyGTE applies the GTE predicate on the "unitQty" field.
|
||||
func UnitQtyGTE(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyLT applies the LT predicate on the "unitQty" field.
|
||||
func UnitQtyLT(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyLTE applies the LTE predicate on the "unitQty" field.
|
||||
func UnitQtyLTE(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// LossRateEQ applies the EQ predicate on the "lossRate" field.
|
||||
func LossRateEQ(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateNEQ applies the NEQ predicate on the "lossRate" field.
|
||||
func LossRateNEQ(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateIn applies the In predicate on the "lossRate" field.
|
||||
func LossRateIn(vs ...float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldLossRate, vs...))
|
||||
}
|
||||
|
||||
// LossRateNotIn applies the NotIn predicate on the "lossRate" field.
|
||||
func LossRateNotIn(vs ...float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldLossRate, vs...))
|
||||
}
|
||||
|
||||
// LossRateGT applies the GT predicate on the "lossRate" field.
|
||||
func LossRateGT(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateGTE applies the GTE predicate on the "lossRate" field.
|
||||
func LossRateGTE(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateLT applies the LT predicate on the "lossRate" field.
|
||||
func LossRateLT(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateLTE applies the LTE predicate on the "lossRate" field.
|
||||
func LossRateLTE(v float64) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// RemarkEQ applies the EQ predicate on the "remark" field.
|
||||
func RemarkEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
||||
func RemarkNEQ(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkIn applies the In predicate on the "remark" field.
|
||||
func RemarkIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
||||
func RemarkNotIn(vs ...string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkGT applies the GT predicate on the "remark" field.
|
||||
func RemarkGT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkGTE applies the GTE predicate on the "remark" field.
|
||||
func RemarkGTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLT applies the LT predicate on the "remark" field.
|
||||
func RemarkLT(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLTE applies the LTE predicate on the "remark" field.
|
||||
func RemarkLTE(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContains applies the Contains predicate on the "remark" field.
|
||||
func RemarkContains(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContains(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
||||
func RemarkHasPrefix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasPrefix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
||||
func RemarkHasSuffix(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldHasSuffix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
||||
func RemarkEqualFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEqualFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
||||
func RemarkContainsFold(v string) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldContainsFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.ProductBOM) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.ProductBOM) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.ProductBOM) predicate.ProductBOM {
|
||||
return predicate.ProductBOM(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user