本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
466 lines
17 KiB
Go
466 lines
17 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package productprocess
|
|
|
|
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.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// ProductCode applies equality check predicate on the "productCode" field. It's identical to ProductCodeEQ.
|
|
func ProductCode(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductName applies equality check predicate on the "productName" field. It's identical to ProductNameEQ.
|
|
func ProductName(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldProductName, v))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
|
func Status(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
|
func Remark(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldRemark, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// ProductCodeEQ applies the EQ predicate on the "productCode" field.
|
|
func ProductCodeEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeNEQ applies the NEQ predicate on the "productCode" field.
|
|
func ProductCodeNEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNEQ(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeIn applies the In predicate on the "productCode" field.
|
|
func ProductCodeIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldIn(FieldProductCode, vs...))
|
|
}
|
|
|
|
// ProductCodeNotIn applies the NotIn predicate on the "productCode" field.
|
|
func ProductCodeNotIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNotIn(FieldProductCode, vs...))
|
|
}
|
|
|
|
// ProductCodeGT applies the GT predicate on the "productCode" field.
|
|
func ProductCodeGT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGT(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeGTE applies the GTE predicate on the "productCode" field.
|
|
func ProductCodeGTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGTE(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeLT applies the LT predicate on the "productCode" field.
|
|
func ProductCodeLT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLT(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeLTE applies the LTE predicate on the "productCode" field.
|
|
func ProductCodeLTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLTE(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeContains applies the Contains predicate on the "productCode" field.
|
|
func ProductCodeContains(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContains(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeHasPrefix applies the HasPrefix predicate on the "productCode" field.
|
|
func ProductCodeHasPrefix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasPrefix(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeHasSuffix applies the HasSuffix predicate on the "productCode" field.
|
|
func ProductCodeHasSuffix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasSuffix(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeEqualFold applies the EqualFold predicate on the "productCode" field.
|
|
func ProductCodeEqualFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEqualFold(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductCodeContainsFold applies the ContainsFold predicate on the "productCode" field.
|
|
func ProductCodeContainsFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContainsFold(FieldProductCode, v))
|
|
}
|
|
|
|
// ProductNameEQ applies the EQ predicate on the "productName" field.
|
|
func ProductNameEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameNEQ applies the NEQ predicate on the "productName" field.
|
|
func ProductNameNEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNEQ(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameIn applies the In predicate on the "productName" field.
|
|
func ProductNameIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldIn(FieldProductName, vs...))
|
|
}
|
|
|
|
// ProductNameNotIn applies the NotIn predicate on the "productName" field.
|
|
func ProductNameNotIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNotIn(FieldProductName, vs...))
|
|
}
|
|
|
|
// ProductNameGT applies the GT predicate on the "productName" field.
|
|
func ProductNameGT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGT(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameGTE applies the GTE predicate on the "productName" field.
|
|
func ProductNameGTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGTE(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameLT applies the LT predicate on the "productName" field.
|
|
func ProductNameLT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLT(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameLTE applies the LTE predicate on the "productName" field.
|
|
func ProductNameLTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLTE(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameContains applies the Contains predicate on the "productName" field.
|
|
func ProductNameContains(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContains(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameHasPrefix applies the HasPrefix predicate on the "productName" field.
|
|
func ProductNameHasPrefix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasPrefix(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameHasSuffix applies the HasSuffix predicate on the "productName" field.
|
|
func ProductNameHasSuffix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasSuffix(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameEqualFold applies the EqualFold predicate on the "productName" field.
|
|
func ProductNameEqualFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEqualFold(FieldProductName, v))
|
|
}
|
|
|
|
// ProductNameContainsFold applies the ContainsFold predicate on the "productName" field.
|
|
func ProductNameContainsFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContainsFold(FieldProductName, v))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
func StatusEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusNEQ applies the NEQ predicate on the "status" field.
|
|
func StatusNEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusIn applies the In predicate on the "status" field.
|
|
func StatusIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusNotIn applies the NotIn predicate on the "status" field.
|
|
func StatusNotIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNotIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusGT applies the GT predicate on the "status" field.
|
|
func StatusGT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusGTE applies the GTE predicate on the "status" field.
|
|
func StatusGTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLT applies the LT predicate on the "status" field.
|
|
func StatusLT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLTE applies the LTE predicate on the "status" field.
|
|
func StatusLTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusContains applies the Contains predicate on the "status" field.
|
|
func StatusContains(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContains(FieldStatus, v))
|
|
}
|
|
|
|
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
|
func StatusHasPrefix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasPrefix(FieldStatus, v))
|
|
}
|
|
|
|
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
|
func StatusHasSuffix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasSuffix(FieldStatus, v))
|
|
}
|
|
|
|
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
|
func StatusEqualFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEqualFold(FieldStatus, v))
|
|
}
|
|
|
|
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
|
func StatusContainsFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContainsFold(FieldStatus, v))
|
|
}
|
|
|
|
// RemarkEQ applies the EQ predicate on the "remark" field.
|
|
func RemarkEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
|
func RemarkNEQ(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNEQ(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkIn applies the In predicate on the "remark" field.
|
|
func RemarkIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldIn(FieldRemark, vs...))
|
|
}
|
|
|
|
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
|
func RemarkNotIn(vs ...string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNotIn(FieldRemark, vs...))
|
|
}
|
|
|
|
// RemarkGT applies the GT predicate on the "remark" field.
|
|
func RemarkGT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGT(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkGTE applies the GTE predicate on the "remark" field.
|
|
func RemarkGTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGTE(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkLT applies the LT predicate on the "remark" field.
|
|
func RemarkLT(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLT(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkLTE applies the LTE predicate on the "remark" field.
|
|
func RemarkLTE(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLTE(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkContains applies the Contains predicate on the "remark" field.
|
|
func RemarkContains(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContains(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
|
func RemarkHasPrefix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasPrefix(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
|
func RemarkHasSuffix(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldHasSuffix(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
|
func RemarkEqualFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEqualFold(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
|
func RemarkContainsFold(v string) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldContainsFold(FieldRemark, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
|
func CreatedAtEQ(v time.Time) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
|
func CreatedAtGT(v time.Time) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
|
func CreatedAtGTE(v time.Time) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
|
func CreatedAtLT(v time.Time) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
|
func CreatedAtLTE(v time.Time) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.ProductProcess) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.ProductProcess) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.ProductProcess) predicate.ProductProcess {
|
|
return predicate.ProductProcess(sql.NotPredicates(p))
|
|
}
|