Files
bj_power/bj_power_wms/ent/packagebox/where.go
T

550 lines
20 KiB
Go
Raw Normal View History

2026-08-27 19:50:57 +08:00
// Code generated by ent, DO NOT EDIT.
package packagebox
import (
"bj_power_wms/ent/predicate"
"entgo.io/ent/dialect/sql"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldID, id))
}
// BoxNo applies equality check predicate on the "box_no" field. It's identical to BoxNoEQ.
func BoxNo(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldBoxNo, v))
}
// SnList applies equality check predicate on the "sn_list" field. It's identical to SnListEQ.
func SnList(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldSnList, v))
}
// MaterialCode applies equality check predicate on the "material_code" field. It's identical to MaterialCodeEQ.
func MaterialCode(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldMaterialCode, v))
}
// Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func Quantity(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldQuantity, v))
}
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
func Operator(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldOperator, v))
}
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func Remark(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldRemark, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldCreatedAt, v))
}
// BoxNoEQ applies the EQ predicate on the "box_no" field.
func BoxNoEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldBoxNo, v))
}
// BoxNoNEQ applies the NEQ predicate on the "box_no" field.
func BoxNoNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldBoxNo, v))
}
// BoxNoIn applies the In predicate on the "box_no" field.
func BoxNoIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldBoxNo, vs...))
}
// BoxNoNotIn applies the NotIn predicate on the "box_no" field.
func BoxNoNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldBoxNo, vs...))
}
// BoxNoGT applies the GT predicate on the "box_no" field.
func BoxNoGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldBoxNo, v))
}
// BoxNoGTE applies the GTE predicate on the "box_no" field.
func BoxNoGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldBoxNo, v))
}
// BoxNoLT applies the LT predicate on the "box_no" field.
func BoxNoLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldBoxNo, v))
}
// BoxNoLTE applies the LTE predicate on the "box_no" field.
func BoxNoLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldBoxNo, v))
}
// BoxNoContains applies the Contains predicate on the "box_no" field.
func BoxNoContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldBoxNo, v))
}
// BoxNoHasPrefix applies the HasPrefix predicate on the "box_no" field.
func BoxNoHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldBoxNo, v))
}
// BoxNoHasSuffix applies the HasSuffix predicate on the "box_no" field.
func BoxNoHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldBoxNo, v))
}
// BoxNoEqualFold applies the EqualFold predicate on the "box_no" field.
func BoxNoEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldBoxNo, v))
}
// BoxNoContainsFold applies the ContainsFold predicate on the "box_no" field.
func BoxNoContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldBoxNo, v))
}
// SnListEQ applies the EQ predicate on the "sn_list" field.
func SnListEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldSnList, v))
}
// SnListNEQ applies the NEQ predicate on the "sn_list" field.
func SnListNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldSnList, v))
}
// SnListIn applies the In predicate on the "sn_list" field.
func SnListIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldSnList, vs...))
}
// SnListNotIn applies the NotIn predicate on the "sn_list" field.
func SnListNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldSnList, vs...))
}
// SnListGT applies the GT predicate on the "sn_list" field.
func SnListGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldSnList, v))
}
// SnListGTE applies the GTE predicate on the "sn_list" field.
func SnListGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldSnList, v))
}
// SnListLT applies the LT predicate on the "sn_list" field.
func SnListLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldSnList, v))
}
// SnListLTE applies the LTE predicate on the "sn_list" field.
func SnListLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldSnList, v))
}
// SnListContains applies the Contains predicate on the "sn_list" field.
func SnListContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldSnList, v))
}
// SnListHasPrefix applies the HasPrefix predicate on the "sn_list" field.
func SnListHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldSnList, v))
}
// SnListHasSuffix applies the HasSuffix predicate on the "sn_list" field.
func SnListHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldSnList, v))
}
// SnListIsNil applies the IsNil predicate on the "sn_list" field.
func SnListIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldSnList))
}
// SnListNotNil applies the NotNil predicate on the "sn_list" field.
func SnListNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldSnList))
}
// SnListEqualFold applies the EqualFold predicate on the "sn_list" field.
func SnListEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldSnList, v))
}
// SnListContainsFold applies the ContainsFold predicate on the "sn_list" field.
func SnListContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldSnList, v))
}
// MaterialCodeEQ applies the EQ predicate on the "material_code" field.
func MaterialCodeEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldMaterialCode, v))
}
// MaterialCodeNEQ applies the NEQ predicate on the "material_code" field.
func MaterialCodeNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldMaterialCode, v))
}
// MaterialCodeIn applies the In predicate on the "material_code" field.
func MaterialCodeIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldMaterialCode, vs...))
}
// MaterialCodeNotIn applies the NotIn predicate on the "material_code" field.
func MaterialCodeNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldMaterialCode, vs...))
}
// MaterialCodeGT applies the GT predicate on the "material_code" field.
func MaterialCodeGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldMaterialCode, v))
}
// MaterialCodeGTE applies the GTE predicate on the "material_code" field.
func MaterialCodeGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldMaterialCode, v))
}
// MaterialCodeLT applies the LT predicate on the "material_code" field.
func MaterialCodeLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldMaterialCode, v))
}
// MaterialCodeLTE applies the LTE predicate on the "material_code" field.
func MaterialCodeLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldMaterialCode, v))
}
// MaterialCodeContains applies the Contains predicate on the "material_code" field.
func MaterialCodeContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldMaterialCode, v))
}
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "material_code" field.
func MaterialCodeHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldMaterialCode, v))
}
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "material_code" field.
func MaterialCodeHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldMaterialCode, v))
}
// MaterialCodeIsNil applies the IsNil predicate on the "material_code" field.
func MaterialCodeIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldMaterialCode))
}
// MaterialCodeNotNil applies the NotNil predicate on the "material_code" field.
func MaterialCodeNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldMaterialCode))
}
// MaterialCodeEqualFold applies the EqualFold predicate on the "material_code" field.
func MaterialCodeEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldMaterialCode, v))
}
// MaterialCodeContainsFold applies the ContainsFold predicate on the "material_code" field.
func MaterialCodeContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldMaterialCode, v))
}
// QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityEQ(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldQuantity, v))
}
// QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNEQ(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldQuantity, v))
}
// QuantityIn applies the In predicate on the "quantity" field.
func QuantityIn(vs ...int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldQuantity, vs...))
}
// QuantityNotIn applies the NotIn predicate on the "quantity" field.
func QuantityNotIn(vs ...int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldQuantity, vs...))
}
// QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGT(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldQuantity, v))
}
// QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityGTE(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldQuantity, v))
}
// QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLT(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldQuantity, v))
}
// QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityLTE(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldQuantity, v))
}
// OperatorEQ applies the EQ predicate on the "operator" field.
func OperatorEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldOperator, v))
}
// OperatorNEQ applies the NEQ predicate on the "operator" field.
func OperatorNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldOperator, v))
}
// OperatorIn applies the In predicate on the "operator" field.
func OperatorIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldOperator, vs...))
}
// OperatorNotIn applies the NotIn predicate on the "operator" field.
func OperatorNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldOperator, vs...))
}
// OperatorGT applies the GT predicate on the "operator" field.
func OperatorGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldOperator, v))
}
// OperatorGTE applies the GTE predicate on the "operator" field.
func OperatorGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldOperator, v))
}
// OperatorLT applies the LT predicate on the "operator" field.
func OperatorLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldOperator, v))
}
// OperatorLTE applies the LTE predicate on the "operator" field.
func OperatorLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldOperator, v))
}
// OperatorContains applies the Contains predicate on the "operator" field.
func OperatorContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldOperator, v))
}
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
func OperatorHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldOperator, v))
}
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
func OperatorHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldOperator, v))
}
// OperatorIsNil applies the IsNil predicate on the "operator" field.
func OperatorIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldOperator))
}
// OperatorNotNil applies the NotNil predicate on the "operator" field.
func OperatorNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldOperator))
}
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
func OperatorEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldOperator, v))
}
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
func OperatorContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldOperator, v))
}
// RemarkEQ applies the EQ predicate on the "remark" field.
func RemarkEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldRemark, v))
}
// RemarkNEQ applies the NEQ predicate on the "remark" field.
func RemarkNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldRemark, v))
}
// RemarkIn applies the In predicate on the "remark" field.
func RemarkIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldRemark, vs...))
}
// RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldRemark, vs...))
}
// RemarkGT applies the GT predicate on the "remark" field.
func RemarkGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldRemark, v))
}
// RemarkGTE applies the GTE predicate on the "remark" field.
func RemarkGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldRemark, v))
}
// RemarkLT applies the LT predicate on the "remark" field.
func RemarkLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldRemark, v))
}
// RemarkLTE applies the LTE predicate on the "remark" field.
func RemarkLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldRemark, v))
}
// RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldRemark, v))
}
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldRemark, v))
}
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldRemark, v))
}
// RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldRemark))
}
// RemarkNotNil applies the NotNil predicate on the "remark" field.
func RemarkNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldRemark))
}
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldRemark, v))
}
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldRemark, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldCreatedAt, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.PackageBox) predicate.PackageBox {
return predicate.PackageBox(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.PackageBox) predicate.PackageBox {
return predicate.PackageBox(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.PackageBox) predicate.PackageBox {
return predicate.PackageBox(sql.NotPredicates(p))
}