931 lines
35 KiB
Go
931 lines
35 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|||
|
|
|
||
|
|
package workpiecebind
|
||
|
|
|
||
|
|
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.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDEQ applies the EQ predicate on the ID field.
|
||
|
|
func IDEQ(id int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
||
|
|
func IDNEQ(id int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDIn applies the In predicate on the ID field.
|
||
|
|
func IDIn(ids ...int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldID, ids...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
||
|
|
func IDNotIn(ids ...int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldID, ids...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDGT applies the GT predicate on the ID field.
|
||
|
|
func IDGT(id int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDGTE applies the GTE predicate on the ID field.
|
||
|
|
func IDGTE(id int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDLT applies the LT predicate on the ID field.
|
||
|
|
func IDLT(id int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDLTE applies the LTE predicate on the ID field.
|
||
|
|
func IDLTE(id int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
|
||
|
|
func Sn(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNo applies equality check predicate on the "orderNo" field. It's identical to OrderNoEQ.
|
||
|
|
func OrderNo(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProcessCode applies equality check predicate on the "processCode" field. It's identical to ProcessCodeEQ.
|
||
|
|
func ProcessCode(v int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldProcessCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
||
|
|
func StationNo(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCode applies equality check predicate on the "materialCode" field. It's identical to MaterialCodeEQ.
|
||
|
|
func MaterialCode(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialName applies equality check predicate on the "materialName" field. It's identical to MaterialNameEQ.
|
||
|
|
func MaterialName(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Spec applies equality check predicate on the "spec" field. It's identical to SpecEQ.
|
||
|
|
func Spec(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
|
||
|
|
func Unit(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageMode applies equality check predicate on the "manageMode" field. It's identical to ManageModeEQ.
|
||
|
|
func ManageMode(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValue applies equality check predicate on the "bindValue" field. It's identical to BindValueEQ.
|
||
|
|
func BindValue(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindType applies equality check predicate on the "bindType" field. It's identical to BindTypeEQ.
|
||
|
|
func BindType(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||
|
|
func Operator(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||
|
|
func CreatedAt(v time.Time) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnEQ applies the EQ predicate on the "sn" field.
|
||
|
|
func SnEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnNEQ applies the NEQ predicate on the "sn" field.
|
||
|
|
func SnNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnIn applies the In predicate on the "sn" field.
|
||
|
|
func SnIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldSn, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnNotIn applies the NotIn predicate on the "sn" field.
|
||
|
|
func SnNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldSn, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnGT applies the GT predicate on the "sn" field.
|
||
|
|
func SnGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnGTE applies the GTE predicate on the "sn" field.
|
||
|
|
func SnGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnLT applies the LT predicate on the "sn" field.
|
||
|
|
func SnLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnLTE applies the LTE predicate on the "sn" field.
|
||
|
|
func SnLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnContains applies the Contains predicate on the "sn" field.
|
||
|
|
func SnContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
|
||
|
|
func SnHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
|
||
|
|
func SnHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnEqualFold applies the EqualFold predicate on the "sn" field.
|
||
|
|
func SnEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
|
||
|
|
func SnContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoEQ applies the EQ predicate on the "orderNo" field.
|
||
|
|
func OrderNoEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoNEQ applies the NEQ predicate on the "orderNo" field.
|
||
|
|
func OrderNoNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoIn applies the In predicate on the "orderNo" field.
|
||
|
|
func OrderNoIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldOrderNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoNotIn applies the NotIn predicate on the "orderNo" field.
|
||
|
|
func OrderNoNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldOrderNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoGT applies the GT predicate on the "orderNo" field.
|
||
|
|
func OrderNoGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoGTE applies the GTE predicate on the "orderNo" field.
|
||
|
|
func OrderNoGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoLT applies the LT predicate on the "orderNo" field.
|
||
|
|
func OrderNoLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoLTE applies the LTE predicate on the "orderNo" field.
|
||
|
|
func OrderNoLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoContains applies the Contains predicate on the "orderNo" field.
|
||
|
|
func OrderNoContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoHasPrefix applies the HasPrefix predicate on the "orderNo" field.
|
||
|
|
func OrderNoHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoHasSuffix applies the HasSuffix predicate on the "orderNo" field.
|
||
|
|
func OrderNoHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoEqualFold applies the EqualFold predicate on the "orderNo" field.
|
||
|
|
func OrderNoEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoContainsFold applies the ContainsFold predicate on the "orderNo" field.
|
||
|
|
func OrderNoContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProcessCodeEQ applies the EQ predicate on the "processCode" field.
|
||
|
|
func ProcessCodeEQ(v int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldProcessCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProcessCodeNEQ applies the NEQ predicate on the "processCode" field.
|
||
|
|
func ProcessCodeNEQ(v int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldProcessCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProcessCodeIn applies the In predicate on the "processCode" field.
|
||
|
|
func ProcessCodeIn(vs ...int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldProcessCode, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProcessCodeNotIn applies the NotIn predicate on the "processCode" field.
|
||
|
|
func ProcessCodeNotIn(vs ...int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldProcessCode, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProcessCodeGT applies the GT predicate on the "processCode" field.
|
||
|
|
func ProcessCodeGT(v int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldProcessCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProcessCodeGTE applies the GTE predicate on the "processCode" field.
|
||
|
|
func ProcessCodeGTE(v int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldProcessCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProcessCodeLT applies the LT predicate on the "processCode" field.
|
||
|
|
func ProcessCodeLT(v int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldProcessCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProcessCodeLTE applies the LTE predicate on the "processCode" field.
|
||
|
|
func ProcessCodeLTE(v int) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldProcessCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
||
|
|
func StationNoEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
||
|
|
func StationNoNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoIn applies the In predicate on the "stationNo" field.
|
||
|
|
func StationNoIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldStationNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
||
|
|
func StationNoNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldStationNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoGT applies the GT predicate on the "stationNo" field.
|
||
|
|
func StationNoGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
||
|
|
func StationNoGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoLT applies the LT predicate on the "stationNo" field.
|
||
|
|
func StationNoLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
||
|
|
func StationNoLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoContains applies the Contains predicate on the "stationNo" field.
|
||
|
|
func StationNoContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoHasPrefix applies the HasPrefix predicate on the "stationNo" field.
|
||
|
|
func StationNoHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoHasSuffix applies the HasSuffix predicate on the "stationNo" field.
|
||
|
|
func StationNoHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoEqualFold applies the EqualFold predicate on the "stationNo" field.
|
||
|
|
func StationNoEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoContainsFold applies the ContainsFold predicate on the "stationNo" field.
|
||
|
|
func StationNoContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeEQ applies the EQ predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeNEQ applies the NEQ predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeIn applies the In predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldMaterialCode, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeNotIn applies the NotIn predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldMaterialCode, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeGT applies the GT predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeGTE applies the GTE predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeLT applies the LT predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeLTE applies the LTE predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeContains applies the Contains predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeEqualFold applies the EqualFold predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialCodeContainsFold applies the ContainsFold predicate on the "materialCode" field.
|
||
|
|
func MaterialCodeContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldMaterialCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameEQ applies the EQ predicate on the "materialName" field.
|
||
|
|
func MaterialNameEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameNEQ applies the NEQ predicate on the "materialName" field.
|
||
|
|
func MaterialNameNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameIn applies the In predicate on the "materialName" field.
|
||
|
|
func MaterialNameIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldMaterialName, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameNotIn applies the NotIn predicate on the "materialName" field.
|
||
|
|
func MaterialNameNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldMaterialName, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameGT applies the GT predicate on the "materialName" field.
|
||
|
|
func MaterialNameGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameGTE applies the GTE predicate on the "materialName" field.
|
||
|
|
func MaterialNameGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameLT applies the LT predicate on the "materialName" field.
|
||
|
|
func MaterialNameLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameLTE applies the LTE predicate on the "materialName" field.
|
||
|
|
func MaterialNameLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameContains applies the Contains predicate on the "materialName" field.
|
||
|
|
func MaterialNameContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameHasPrefix applies the HasPrefix predicate on the "materialName" field.
|
||
|
|
func MaterialNameHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameHasSuffix applies the HasSuffix predicate on the "materialName" field.
|
||
|
|
func MaterialNameHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameEqualFold applies the EqualFold predicate on the "materialName" field.
|
||
|
|
func MaterialNameEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// MaterialNameContainsFold applies the ContainsFold predicate on the "materialName" field.
|
||
|
|
func MaterialNameContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldMaterialName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecEQ applies the EQ predicate on the "spec" field.
|
||
|
|
func SpecEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecNEQ applies the NEQ predicate on the "spec" field.
|
||
|
|
func SpecNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecIn applies the In predicate on the "spec" field.
|
||
|
|
func SpecIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldSpec, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecNotIn applies the NotIn predicate on the "spec" field.
|
||
|
|
func SpecNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldSpec, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecGT applies the GT predicate on the "spec" field.
|
||
|
|
func SpecGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecGTE applies the GTE predicate on the "spec" field.
|
||
|
|
func SpecGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecLT applies the LT predicate on the "spec" field.
|
||
|
|
func SpecLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecLTE applies the LTE predicate on the "spec" field.
|
||
|
|
func SpecLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecContains applies the Contains predicate on the "spec" field.
|
||
|
|
func SpecContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecHasPrefix applies the HasPrefix predicate on the "spec" field.
|
||
|
|
func SpecHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecHasSuffix applies the HasSuffix predicate on the "spec" field.
|
||
|
|
func SpecHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecEqualFold applies the EqualFold predicate on the "spec" field.
|
||
|
|
func SpecEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SpecContainsFold applies the ContainsFold predicate on the "spec" field.
|
||
|
|
func SpecContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldSpec, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitEQ applies the EQ predicate on the "unit" field.
|
||
|
|
func UnitEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitNEQ applies the NEQ predicate on the "unit" field.
|
||
|
|
func UnitNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitIn applies the In predicate on the "unit" field.
|
||
|
|
func UnitIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldUnit, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitNotIn applies the NotIn predicate on the "unit" field.
|
||
|
|
func UnitNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldUnit, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitGT applies the GT predicate on the "unit" field.
|
||
|
|
func UnitGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitGTE applies the GTE predicate on the "unit" field.
|
||
|
|
func UnitGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitLT applies the LT predicate on the "unit" field.
|
||
|
|
func UnitLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitLTE applies the LTE predicate on the "unit" field.
|
||
|
|
func UnitLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitContains applies the Contains predicate on the "unit" field.
|
||
|
|
func UnitContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
|
||
|
|
func UnitHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
|
||
|
|
func UnitHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitEqualFold applies the EqualFold predicate on the "unit" field.
|
||
|
|
func UnitEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnitContainsFold applies the ContainsFold predicate on the "unit" field.
|
||
|
|
func UnitContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldUnit, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeEQ applies the EQ predicate on the "manageMode" field.
|
||
|
|
func ManageModeEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeNEQ applies the NEQ predicate on the "manageMode" field.
|
||
|
|
func ManageModeNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeIn applies the In predicate on the "manageMode" field.
|
||
|
|
func ManageModeIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldManageMode, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeNotIn applies the NotIn predicate on the "manageMode" field.
|
||
|
|
func ManageModeNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldManageMode, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeGT applies the GT predicate on the "manageMode" field.
|
||
|
|
func ManageModeGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeGTE applies the GTE predicate on the "manageMode" field.
|
||
|
|
func ManageModeGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeLT applies the LT predicate on the "manageMode" field.
|
||
|
|
func ManageModeLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeLTE applies the LTE predicate on the "manageMode" field.
|
||
|
|
func ManageModeLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeContains applies the Contains predicate on the "manageMode" field.
|
||
|
|
func ManageModeContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeHasPrefix applies the HasPrefix predicate on the "manageMode" field.
|
||
|
|
func ManageModeHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeHasSuffix applies the HasSuffix predicate on the "manageMode" field.
|
||
|
|
func ManageModeHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeEqualFold applies the EqualFold predicate on the "manageMode" field.
|
||
|
|
func ManageModeEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// ManageModeContainsFold applies the ContainsFold predicate on the "manageMode" field.
|
||
|
|
func ManageModeContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldManageMode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueEQ applies the EQ predicate on the "bindValue" field.
|
||
|
|
func BindValueEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueNEQ applies the NEQ predicate on the "bindValue" field.
|
||
|
|
func BindValueNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueIn applies the In predicate on the "bindValue" field.
|
||
|
|
func BindValueIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldBindValue, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueNotIn applies the NotIn predicate on the "bindValue" field.
|
||
|
|
func BindValueNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldBindValue, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueGT applies the GT predicate on the "bindValue" field.
|
||
|
|
func BindValueGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueGTE applies the GTE predicate on the "bindValue" field.
|
||
|
|
func BindValueGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueLT applies the LT predicate on the "bindValue" field.
|
||
|
|
func BindValueLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueLTE applies the LTE predicate on the "bindValue" field.
|
||
|
|
func BindValueLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueContains applies the Contains predicate on the "bindValue" field.
|
||
|
|
func BindValueContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueHasPrefix applies the HasPrefix predicate on the "bindValue" field.
|
||
|
|
func BindValueHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueHasSuffix applies the HasSuffix predicate on the "bindValue" field.
|
||
|
|
func BindValueHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueEqualFold applies the EqualFold predicate on the "bindValue" field.
|
||
|
|
func BindValueEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindValueContainsFold applies the ContainsFold predicate on the "bindValue" field.
|
||
|
|
func BindValueContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldBindValue, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeEQ applies the EQ predicate on the "bindType" field.
|
||
|
|
func BindTypeEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeNEQ applies the NEQ predicate on the "bindType" field.
|
||
|
|
func BindTypeNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeIn applies the In predicate on the "bindType" field.
|
||
|
|
func BindTypeIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldBindType, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeNotIn applies the NotIn predicate on the "bindType" field.
|
||
|
|
func BindTypeNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldBindType, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeGT applies the GT predicate on the "bindType" field.
|
||
|
|
func BindTypeGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeGTE applies the GTE predicate on the "bindType" field.
|
||
|
|
func BindTypeGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeLT applies the LT predicate on the "bindType" field.
|
||
|
|
func BindTypeLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeLTE applies the LTE predicate on the "bindType" field.
|
||
|
|
func BindTypeLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeContains applies the Contains predicate on the "bindType" field.
|
||
|
|
func BindTypeContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeHasPrefix applies the HasPrefix predicate on the "bindType" field.
|
||
|
|
func BindTypeHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeHasSuffix applies the HasSuffix predicate on the "bindType" field.
|
||
|
|
func BindTypeHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeEqualFold applies the EqualFold predicate on the "bindType" field.
|
||
|
|
func BindTypeEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// BindTypeContainsFold applies the ContainsFold predicate on the "bindType" field.
|
||
|
|
func BindTypeContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldBindType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||
|
|
func OperatorEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||
|
|
func OperatorNEQ(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorIn applies the In predicate on the "operator" field.
|
||
|
|
func OperatorIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldOperator, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||
|
|
func OperatorNotIn(vs ...string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldOperator, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorGT applies the GT predicate on the "operator" field.
|
||
|
|
func OperatorGT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||
|
|
func OperatorGTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorLT applies the LT predicate on the "operator" field.
|
||
|
|
func OperatorLT(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||
|
|
func OperatorLTE(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorContains applies the Contains predicate on the "operator" field.
|
||
|
|
func OperatorContains(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContains(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||
|
|
func OperatorHasPrefix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||
|
|
func OperatorHasSuffix(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||
|
|
func OperatorEqualFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||
|
|
func OperatorContainsFold(v string) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||
|
|
func CreatedAtEQ(v time.Time) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldEQ(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||
|
|
func CreatedAtNEQ(v time.Time) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNEQ(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||
|
|
func CreatedAtIn(vs ...time.Time) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldIn(FieldCreatedAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||
|
|
func CreatedAtGT(v time.Time) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGT(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||
|
|
func CreatedAtGTE(v time.Time) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldGTE(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||
|
|
func CreatedAtLT(v time.Time) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLT(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||
|
|
func CreatedAtLTE(v time.Time) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.FieldLTE(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// And groups predicates with the AND operator between them.
|
||
|
|
func And(predicates ...predicate.WorkpieceBind) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.AndPredicates(predicates...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Or groups predicates with the OR operator between them.
|
||
|
|
func Or(predicates ...predicate.WorkpieceBind) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.OrPredicates(predicates...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Not applies the not operator on the given predicate.
|
||
|
|
func Not(p predicate.WorkpieceBind) predicate.WorkpieceBind {
|
||
|
|
return predicate.WorkpieceBind(sql.NotPredicates(p))
|
||
|
|
}
|