416 lines
16 KiB
Go
416 lines
16 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package stationprocess
|
|
|
|
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.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
|
func StationNo(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldStationNo, v))
|
|
}
|
|
|
|
// ProcessCode applies equality check predicate on the "processCode" field. It's identical to ProcessCodeEQ.
|
|
func ProcessCode(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldProcessCode, v))
|
|
}
|
|
|
|
// EffectDate applies equality check predicate on the "effectDate" field. It's identical to EffectDateEQ.
|
|
func EffectDate(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldEffectDate, v))
|
|
}
|
|
|
|
// Shift applies equality check predicate on the "shift" field. It's identical to ShiftEQ.
|
|
func Shift(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldShift, v))
|
|
}
|
|
|
|
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
|
func Operator(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldOperator, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
|
func StationNoEQ(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
|
func StationNoNEQ(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNEQ(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoIn applies the In predicate on the "stationNo" field.
|
|
func StationNoIn(vs ...int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldIn(FieldStationNo, vs...))
|
|
}
|
|
|
|
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
|
func StationNoNotIn(vs ...int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNotIn(FieldStationNo, vs...))
|
|
}
|
|
|
|
// StationNoGT applies the GT predicate on the "stationNo" field.
|
|
func StationNoGT(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGT(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
|
func StationNoGTE(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGTE(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoLT applies the LT predicate on the "stationNo" field.
|
|
func StationNoLT(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLT(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
|
func StationNoLTE(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLTE(FieldStationNo, v))
|
|
}
|
|
|
|
// ProcessCodeEQ applies the EQ predicate on the "processCode" field.
|
|
func ProcessCodeEQ(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeNEQ applies the NEQ predicate on the "processCode" field.
|
|
func ProcessCodeNEQ(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNEQ(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeIn applies the In predicate on the "processCode" field.
|
|
func ProcessCodeIn(vs ...int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldIn(FieldProcessCode, vs...))
|
|
}
|
|
|
|
// ProcessCodeNotIn applies the NotIn predicate on the "processCode" field.
|
|
func ProcessCodeNotIn(vs ...int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNotIn(FieldProcessCode, vs...))
|
|
}
|
|
|
|
// ProcessCodeGT applies the GT predicate on the "processCode" field.
|
|
func ProcessCodeGT(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGT(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeGTE applies the GTE predicate on the "processCode" field.
|
|
func ProcessCodeGTE(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGTE(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeLT applies the LT predicate on the "processCode" field.
|
|
func ProcessCodeLT(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLT(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeLTE applies the LTE predicate on the "processCode" field.
|
|
func ProcessCodeLTE(v int) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLTE(FieldProcessCode, v))
|
|
}
|
|
|
|
// EffectDateEQ applies the EQ predicate on the "effectDate" field.
|
|
func EffectDateEQ(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateNEQ applies the NEQ predicate on the "effectDate" field.
|
|
func EffectDateNEQ(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNEQ(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateIn applies the In predicate on the "effectDate" field.
|
|
func EffectDateIn(vs ...string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldIn(FieldEffectDate, vs...))
|
|
}
|
|
|
|
// EffectDateNotIn applies the NotIn predicate on the "effectDate" field.
|
|
func EffectDateNotIn(vs ...string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNotIn(FieldEffectDate, vs...))
|
|
}
|
|
|
|
// EffectDateGT applies the GT predicate on the "effectDate" field.
|
|
func EffectDateGT(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGT(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateGTE applies the GTE predicate on the "effectDate" field.
|
|
func EffectDateGTE(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGTE(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateLT applies the LT predicate on the "effectDate" field.
|
|
func EffectDateLT(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLT(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateLTE applies the LTE predicate on the "effectDate" field.
|
|
func EffectDateLTE(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLTE(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateContains applies the Contains predicate on the "effectDate" field.
|
|
func EffectDateContains(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldContains(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateHasPrefix applies the HasPrefix predicate on the "effectDate" field.
|
|
func EffectDateHasPrefix(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldHasPrefix(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateHasSuffix applies the HasSuffix predicate on the "effectDate" field.
|
|
func EffectDateHasSuffix(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldHasSuffix(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateEqualFold applies the EqualFold predicate on the "effectDate" field.
|
|
func EffectDateEqualFold(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEqualFold(FieldEffectDate, v))
|
|
}
|
|
|
|
// EffectDateContainsFold applies the ContainsFold predicate on the "effectDate" field.
|
|
func EffectDateContainsFold(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldContainsFold(FieldEffectDate, v))
|
|
}
|
|
|
|
// ShiftEQ applies the EQ predicate on the "shift" field.
|
|
func ShiftEQ(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldShift, v))
|
|
}
|
|
|
|
// ShiftNEQ applies the NEQ predicate on the "shift" field.
|
|
func ShiftNEQ(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNEQ(FieldShift, v))
|
|
}
|
|
|
|
// ShiftIn applies the In predicate on the "shift" field.
|
|
func ShiftIn(vs ...string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldIn(FieldShift, vs...))
|
|
}
|
|
|
|
// ShiftNotIn applies the NotIn predicate on the "shift" field.
|
|
func ShiftNotIn(vs ...string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNotIn(FieldShift, vs...))
|
|
}
|
|
|
|
// ShiftGT applies the GT predicate on the "shift" field.
|
|
func ShiftGT(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGT(FieldShift, v))
|
|
}
|
|
|
|
// ShiftGTE applies the GTE predicate on the "shift" field.
|
|
func ShiftGTE(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGTE(FieldShift, v))
|
|
}
|
|
|
|
// ShiftLT applies the LT predicate on the "shift" field.
|
|
func ShiftLT(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLT(FieldShift, v))
|
|
}
|
|
|
|
// ShiftLTE applies the LTE predicate on the "shift" field.
|
|
func ShiftLTE(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLTE(FieldShift, v))
|
|
}
|
|
|
|
// ShiftContains applies the Contains predicate on the "shift" field.
|
|
func ShiftContains(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldContains(FieldShift, v))
|
|
}
|
|
|
|
// ShiftHasPrefix applies the HasPrefix predicate on the "shift" field.
|
|
func ShiftHasPrefix(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldHasPrefix(FieldShift, v))
|
|
}
|
|
|
|
// ShiftHasSuffix applies the HasSuffix predicate on the "shift" field.
|
|
func ShiftHasSuffix(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldHasSuffix(FieldShift, v))
|
|
}
|
|
|
|
// ShiftEqualFold applies the EqualFold predicate on the "shift" field.
|
|
func ShiftEqualFold(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEqualFold(FieldShift, v))
|
|
}
|
|
|
|
// ShiftContainsFold applies the ContainsFold predicate on the "shift" field.
|
|
func ShiftContainsFold(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldContainsFold(FieldShift, v))
|
|
}
|
|
|
|
// OperatorEQ applies the EQ predicate on the "operator" field.
|
|
func OperatorEQ(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
|
func OperatorNEQ(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNEQ(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorIn applies the In predicate on the "operator" field.
|
|
func OperatorIn(vs ...string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldIn(FieldOperator, vs...))
|
|
}
|
|
|
|
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
|
func OperatorNotIn(vs ...string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNotIn(FieldOperator, vs...))
|
|
}
|
|
|
|
// OperatorGT applies the GT predicate on the "operator" field.
|
|
func OperatorGT(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGT(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorGTE applies the GTE predicate on the "operator" field.
|
|
func OperatorGTE(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGTE(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorLT applies the LT predicate on the "operator" field.
|
|
func OperatorLT(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLT(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorLTE applies the LTE predicate on the "operator" field.
|
|
func OperatorLTE(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLTE(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorContains applies the Contains predicate on the "operator" field.
|
|
func OperatorContains(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldContains(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
|
func OperatorHasPrefix(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldHasPrefix(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
|
func OperatorHasSuffix(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldHasSuffix(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
|
func OperatorEqualFold(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEqualFold(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
|
func OperatorContainsFold(v string) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldContainsFold(FieldOperator, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
|
func CreatedAtEQ(v time.Time) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
|
func CreatedAtGT(v time.Time) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
|
func CreatedAtGTE(v time.Time) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
|
func CreatedAtLT(v time.Time) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
|
func CreatedAtLTE(v time.Time) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.StationProcess) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.StationProcess) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.StationProcess) predicate.StationProcess {
|
|
return predicate.StationProcess(sql.NotPredicates(p))
|
|
}
|