- MES 新增实体:混产模板、产品BOM、产品工艺物料、试制记录(schema + ent 生成码 + logic/handler/前端页) - WMS 实体增强:检验记录、库存、半成品重构;新增序列号库存与短缺代报 - AGV 与产能:AGV 手动点位与链路、物料守卫、短缺预测、原因字典 - 前端通用能力:新增下一步引导组件 NextStepBar,统一帮助文档/布局/请求拦截与操作列 - 工位终端:界面与各 handler 调整(api/store/绑定/PLC/拧紧/上报等) - 配置与文档:更新 mes-api.yaml、WMS README 及案例/产线API/问题记录/项目说明/流程说明
506 lines
21 KiB
Go
506 lines
21 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package productprocessmaterial
|
|
|
|
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.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// ProductProcessId applies equality check predicate on the "productProcessId" field. It's identical to ProductProcessIdEQ.
|
|
func ProductProcessId(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldProductProcessId, v))
|
|
}
|
|
|
|
// Seq applies equality check predicate on the "seq" field. It's identical to SeqEQ.
|
|
func Seq(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldSeq, v))
|
|
}
|
|
|
|
// FlowId applies equality check predicate on the "flowId" field. It's identical to FlowIdEQ.
|
|
func FlowId(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldFlowId, v))
|
|
}
|
|
|
|
// MaterialCode applies equality check predicate on the "materialCode" field. It's identical to MaterialCodeEQ.
|
|
func MaterialCode(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialName applies equality check predicate on the "materialName" field. It's identical to MaterialNameEQ.
|
|
func MaterialName(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldMaterialName, v))
|
|
}
|
|
|
|
// Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
|
|
func Unit(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldUnit, v))
|
|
}
|
|
|
|
// UnitQty applies equality check predicate on the "unitQty" field. It's identical to UnitQtyEQ.
|
|
func UnitQty(v float64) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldUnitQty, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// ProductProcessIdEQ applies the EQ predicate on the "productProcessId" field.
|
|
func ProductProcessIdEQ(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldProductProcessId, v))
|
|
}
|
|
|
|
// ProductProcessIdNEQ applies the NEQ predicate on the "productProcessId" field.
|
|
func ProductProcessIdNEQ(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNEQ(FieldProductProcessId, v))
|
|
}
|
|
|
|
// ProductProcessIdIn applies the In predicate on the "productProcessId" field.
|
|
func ProductProcessIdIn(vs ...int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldIn(FieldProductProcessId, vs...))
|
|
}
|
|
|
|
// ProductProcessIdNotIn applies the NotIn predicate on the "productProcessId" field.
|
|
func ProductProcessIdNotIn(vs ...int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNotIn(FieldProductProcessId, vs...))
|
|
}
|
|
|
|
// ProductProcessIdGT applies the GT predicate on the "productProcessId" field.
|
|
func ProductProcessIdGT(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGT(FieldProductProcessId, v))
|
|
}
|
|
|
|
// ProductProcessIdGTE applies the GTE predicate on the "productProcessId" field.
|
|
func ProductProcessIdGTE(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGTE(FieldProductProcessId, v))
|
|
}
|
|
|
|
// ProductProcessIdLT applies the LT predicate on the "productProcessId" field.
|
|
func ProductProcessIdLT(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLT(FieldProductProcessId, v))
|
|
}
|
|
|
|
// ProductProcessIdLTE applies the LTE predicate on the "productProcessId" field.
|
|
func ProductProcessIdLTE(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLTE(FieldProductProcessId, v))
|
|
}
|
|
|
|
// SeqEQ applies the EQ predicate on the "seq" field.
|
|
func SeqEQ(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldSeq, v))
|
|
}
|
|
|
|
// SeqNEQ applies the NEQ predicate on the "seq" field.
|
|
func SeqNEQ(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNEQ(FieldSeq, v))
|
|
}
|
|
|
|
// SeqIn applies the In predicate on the "seq" field.
|
|
func SeqIn(vs ...int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldIn(FieldSeq, vs...))
|
|
}
|
|
|
|
// SeqNotIn applies the NotIn predicate on the "seq" field.
|
|
func SeqNotIn(vs ...int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNotIn(FieldSeq, vs...))
|
|
}
|
|
|
|
// SeqGT applies the GT predicate on the "seq" field.
|
|
func SeqGT(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGT(FieldSeq, v))
|
|
}
|
|
|
|
// SeqGTE applies the GTE predicate on the "seq" field.
|
|
func SeqGTE(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGTE(FieldSeq, v))
|
|
}
|
|
|
|
// SeqLT applies the LT predicate on the "seq" field.
|
|
func SeqLT(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLT(FieldSeq, v))
|
|
}
|
|
|
|
// SeqLTE applies the LTE predicate on the "seq" field.
|
|
func SeqLTE(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLTE(FieldSeq, v))
|
|
}
|
|
|
|
// FlowIdEQ applies the EQ predicate on the "flowId" field.
|
|
func FlowIdEQ(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldFlowId, v))
|
|
}
|
|
|
|
// FlowIdNEQ applies the NEQ predicate on the "flowId" field.
|
|
func FlowIdNEQ(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNEQ(FieldFlowId, v))
|
|
}
|
|
|
|
// FlowIdIn applies the In predicate on the "flowId" field.
|
|
func FlowIdIn(vs ...int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldIn(FieldFlowId, vs...))
|
|
}
|
|
|
|
// FlowIdNotIn applies the NotIn predicate on the "flowId" field.
|
|
func FlowIdNotIn(vs ...int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNotIn(FieldFlowId, vs...))
|
|
}
|
|
|
|
// FlowIdGT applies the GT predicate on the "flowId" field.
|
|
func FlowIdGT(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGT(FieldFlowId, v))
|
|
}
|
|
|
|
// FlowIdGTE applies the GTE predicate on the "flowId" field.
|
|
func FlowIdGTE(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGTE(FieldFlowId, v))
|
|
}
|
|
|
|
// FlowIdLT applies the LT predicate on the "flowId" field.
|
|
func FlowIdLT(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLT(FieldFlowId, v))
|
|
}
|
|
|
|
// FlowIdLTE applies the LTE predicate on the "flowId" field.
|
|
func FlowIdLTE(v int) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLTE(FieldFlowId, v))
|
|
}
|
|
|
|
// MaterialCodeEQ applies the EQ predicate on the "materialCode" field.
|
|
func MaterialCodeEQ(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeNEQ applies the NEQ predicate on the "materialCode" field.
|
|
func MaterialCodeNEQ(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNEQ(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeIn applies the In predicate on the "materialCode" field.
|
|
func MaterialCodeIn(vs ...string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldIn(FieldMaterialCode, vs...))
|
|
}
|
|
|
|
// MaterialCodeNotIn applies the NotIn predicate on the "materialCode" field.
|
|
func MaterialCodeNotIn(vs ...string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNotIn(FieldMaterialCode, vs...))
|
|
}
|
|
|
|
// MaterialCodeGT applies the GT predicate on the "materialCode" field.
|
|
func MaterialCodeGT(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGT(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeGTE applies the GTE predicate on the "materialCode" field.
|
|
func MaterialCodeGTE(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGTE(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeLT applies the LT predicate on the "materialCode" field.
|
|
func MaterialCodeLT(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLT(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeLTE applies the LTE predicate on the "materialCode" field.
|
|
func MaterialCodeLTE(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLTE(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeContains applies the Contains predicate on the "materialCode" field.
|
|
func MaterialCodeContains(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldContains(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "materialCode" field.
|
|
func MaterialCodeHasPrefix(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldHasPrefix(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "materialCode" field.
|
|
func MaterialCodeHasSuffix(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldHasSuffix(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeEqualFold applies the EqualFold predicate on the "materialCode" field.
|
|
func MaterialCodeEqualFold(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEqualFold(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeContainsFold applies the ContainsFold predicate on the "materialCode" field.
|
|
func MaterialCodeContainsFold(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldContainsFold(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialNameEQ applies the EQ predicate on the "materialName" field.
|
|
func MaterialNameEQ(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameNEQ applies the NEQ predicate on the "materialName" field.
|
|
func MaterialNameNEQ(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNEQ(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameIn applies the In predicate on the "materialName" field.
|
|
func MaterialNameIn(vs ...string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldIn(FieldMaterialName, vs...))
|
|
}
|
|
|
|
// MaterialNameNotIn applies the NotIn predicate on the "materialName" field.
|
|
func MaterialNameNotIn(vs ...string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNotIn(FieldMaterialName, vs...))
|
|
}
|
|
|
|
// MaterialNameGT applies the GT predicate on the "materialName" field.
|
|
func MaterialNameGT(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGT(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameGTE applies the GTE predicate on the "materialName" field.
|
|
func MaterialNameGTE(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGTE(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameLT applies the LT predicate on the "materialName" field.
|
|
func MaterialNameLT(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLT(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameLTE applies the LTE predicate on the "materialName" field.
|
|
func MaterialNameLTE(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLTE(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameContains applies the Contains predicate on the "materialName" field.
|
|
func MaterialNameContains(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldContains(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameHasPrefix applies the HasPrefix predicate on the "materialName" field.
|
|
func MaterialNameHasPrefix(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldHasPrefix(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameHasSuffix applies the HasSuffix predicate on the "materialName" field.
|
|
func MaterialNameHasSuffix(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldHasSuffix(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameEqualFold applies the EqualFold predicate on the "materialName" field.
|
|
func MaterialNameEqualFold(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEqualFold(FieldMaterialName, v))
|
|
}
|
|
|
|
// MaterialNameContainsFold applies the ContainsFold predicate on the "materialName" field.
|
|
func MaterialNameContainsFold(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldContainsFold(FieldMaterialName, v))
|
|
}
|
|
|
|
// UnitEQ applies the EQ predicate on the "unit" field.
|
|
func UnitEQ(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldUnit, v))
|
|
}
|
|
|
|
// UnitNEQ applies the NEQ predicate on the "unit" field.
|
|
func UnitNEQ(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNEQ(FieldUnit, v))
|
|
}
|
|
|
|
// UnitIn applies the In predicate on the "unit" field.
|
|
func UnitIn(vs ...string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldIn(FieldUnit, vs...))
|
|
}
|
|
|
|
// UnitNotIn applies the NotIn predicate on the "unit" field.
|
|
func UnitNotIn(vs ...string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNotIn(FieldUnit, vs...))
|
|
}
|
|
|
|
// UnitGT applies the GT predicate on the "unit" field.
|
|
func UnitGT(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGT(FieldUnit, v))
|
|
}
|
|
|
|
// UnitGTE applies the GTE predicate on the "unit" field.
|
|
func UnitGTE(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGTE(FieldUnit, v))
|
|
}
|
|
|
|
// UnitLT applies the LT predicate on the "unit" field.
|
|
func UnitLT(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLT(FieldUnit, v))
|
|
}
|
|
|
|
// UnitLTE applies the LTE predicate on the "unit" field.
|
|
func UnitLTE(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLTE(FieldUnit, v))
|
|
}
|
|
|
|
// UnitContains applies the Contains predicate on the "unit" field.
|
|
func UnitContains(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldContains(FieldUnit, v))
|
|
}
|
|
|
|
// UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
|
|
func UnitHasPrefix(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldHasPrefix(FieldUnit, v))
|
|
}
|
|
|
|
// UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
|
|
func UnitHasSuffix(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldHasSuffix(FieldUnit, v))
|
|
}
|
|
|
|
// UnitEqualFold applies the EqualFold predicate on the "unit" field.
|
|
func UnitEqualFold(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEqualFold(FieldUnit, v))
|
|
}
|
|
|
|
// UnitContainsFold applies the ContainsFold predicate on the "unit" field.
|
|
func UnitContainsFold(v string) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldContainsFold(FieldUnit, v))
|
|
}
|
|
|
|
// UnitQtyEQ applies the EQ predicate on the "unitQty" field.
|
|
func UnitQtyEQ(v float64) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldUnitQty, v))
|
|
}
|
|
|
|
// UnitQtyNEQ applies the NEQ predicate on the "unitQty" field.
|
|
func UnitQtyNEQ(v float64) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNEQ(FieldUnitQty, v))
|
|
}
|
|
|
|
// UnitQtyIn applies the In predicate on the "unitQty" field.
|
|
func UnitQtyIn(vs ...float64) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldIn(FieldUnitQty, vs...))
|
|
}
|
|
|
|
// UnitQtyNotIn applies the NotIn predicate on the "unitQty" field.
|
|
func UnitQtyNotIn(vs ...float64) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNotIn(FieldUnitQty, vs...))
|
|
}
|
|
|
|
// UnitQtyGT applies the GT predicate on the "unitQty" field.
|
|
func UnitQtyGT(v float64) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGT(FieldUnitQty, v))
|
|
}
|
|
|
|
// UnitQtyGTE applies the GTE predicate on the "unitQty" field.
|
|
func UnitQtyGTE(v float64) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGTE(FieldUnitQty, v))
|
|
}
|
|
|
|
// UnitQtyLT applies the LT predicate on the "unitQty" field.
|
|
func UnitQtyLT(v float64) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLT(FieldUnitQty, v))
|
|
}
|
|
|
|
// UnitQtyLTE applies the LTE predicate on the "unitQty" field.
|
|
func UnitQtyLTE(v float64) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLTE(FieldUnitQty, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
|
func CreatedAtEQ(v time.Time) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
|
func CreatedAtGT(v time.Time) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
|
func CreatedAtGTE(v time.Time) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
|
func CreatedAtLT(v time.Time) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
|
func CreatedAtLTE(v time.Time) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.ProductProcessMaterial) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.ProductProcessMaterial) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.ProductProcessMaterial) predicate.ProductProcessMaterial {
|
|
return predicate.ProductProcessMaterial(sql.NotPredicates(p))
|
|
}
|