566 lines
20 KiB
Go
566 lines
20 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|||
|
|
|
||
|
|
package linepoint
|
||
|
|
|
||
|
|
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.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDEQ applies the EQ predicate on the ID field.
|
||
|
|
func IDEQ(id int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
||
|
|
func IDNEQ(id int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDIn applies the In predicate on the ID field.
|
||
|
|
func IDIn(ids ...int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldIn(FieldID, ids...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
||
|
|
func IDNotIn(ids ...int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNotIn(FieldID, ids...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDGT applies the GT predicate on the ID field.
|
||
|
|
func IDGT(id int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGT(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDGTE applies the GTE predicate on the ID field.
|
||
|
|
func IDGTE(id int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGTE(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDLT applies the LT predicate on the ID field.
|
||
|
|
func IDLT(id int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLT(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDLTE applies the LTE predicate on the ID field.
|
||
|
|
func IDLTE(id int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLTE(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointType applies equality check predicate on the "pointType" field. It's identical to PointTypeEQ.
|
||
|
|
func PointType(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNo applies equality check predicate on the "pointNo" field. It's identical to PointNoEQ.
|
||
|
|
func PointNo(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Seq applies equality check predicate on the "seq" field. It's identical to SeqEQ.
|
||
|
|
func Seq(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldSeq, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
||
|
|
func StationNo(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSn applies equality check predicate on the "currentSn" field. It's identical to CurrentSnEQ.
|
||
|
|
func CurrentSn(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNo applies equality check predicate on the "orderNo" field. It's identical to OrderNoEQ.
|
||
|
|
func OrderNo(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Occupied applies equality check predicate on the "occupied" field. It's identical to OccupiedEQ.
|
||
|
|
func Occupied(v bool) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldOccupied, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
||
|
|
func UpdatedAt(v time.Time) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeEQ applies the EQ predicate on the "pointType" field.
|
||
|
|
func PointTypeEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeNEQ applies the NEQ predicate on the "pointType" field.
|
||
|
|
func PointTypeNEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeIn applies the In predicate on the "pointType" field.
|
||
|
|
func PointTypeIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldIn(FieldPointType, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeNotIn applies the NotIn predicate on the "pointType" field.
|
||
|
|
func PointTypeNotIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNotIn(FieldPointType, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeGT applies the GT predicate on the "pointType" field.
|
||
|
|
func PointTypeGT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGT(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeGTE applies the GTE predicate on the "pointType" field.
|
||
|
|
func PointTypeGTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGTE(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeLT applies the LT predicate on the "pointType" field.
|
||
|
|
func PointTypeLT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLT(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeLTE applies the LTE predicate on the "pointType" field.
|
||
|
|
func PointTypeLTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLTE(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeContains applies the Contains predicate on the "pointType" field.
|
||
|
|
func PointTypeContains(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContains(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeHasPrefix applies the HasPrefix predicate on the "pointType" field.
|
||
|
|
func PointTypeHasPrefix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasPrefix(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeHasSuffix applies the HasSuffix predicate on the "pointType" field.
|
||
|
|
func PointTypeHasSuffix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasSuffix(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeEqualFold applies the EqualFold predicate on the "pointType" field.
|
||
|
|
func PointTypeEqualFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEqualFold(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointTypeContainsFold applies the ContainsFold predicate on the "pointType" field.
|
||
|
|
func PointTypeContainsFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContainsFold(FieldPointType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoEQ applies the EQ predicate on the "pointNo" field.
|
||
|
|
func PointNoEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoNEQ applies the NEQ predicate on the "pointNo" field.
|
||
|
|
func PointNoNEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoIn applies the In predicate on the "pointNo" field.
|
||
|
|
func PointNoIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldIn(FieldPointNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoNotIn applies the NotIn predicate on the "pointNo" field.
|
||
|
|
func PointNoNotIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNotIn(FieldPointNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoGT applies the GT predicate on the "pointNo" field.
|
||
|
|
func PointNoGT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGT(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoGTE applies the GTE predicate on the "pointNo" field.
|
||
|
|
func PointNoGTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGTE(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoLT applies the LT predicate on the "pointNo" field.
|
||
|
|
func PointNoLT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLT(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoLTE applies the LTE predicate on the "pointNo" field.
|
||
|
|
func PointNoLTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLTE(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoContains applies the Contains predicate on the "pointNo" field.
|
||
|
|
func PointNoContains(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContains(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoHasPrefix applies the HasPrefix predicate on the "pointNo" field.
|
||
|
|
func PointNoHasPrefix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasPrefix(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoHasSuffix applies the HasSuffix predicate on the "pointNo" field.
|
||
|
|
func PointNoHasSuffix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasSuffix(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoEqualFold applies the EqualFold predicate on the "pointNo" field.
|
||
|
|
func PointNoEqualFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEqualFold(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PointNoContainsFold applies the ContainsFold predicate on the "pointNo" field.
|
||
|
|
func PointNoContainsFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContainsFold(FieldPointNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelEQ applies the EQ predicate on the "label" field.
|
||
|
|
func LabelEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelNEQ applies the NEQ predicate on the "label" field.
|
||
|
|
func LabelNEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelIn applies the In predicate on the "label" field.
|
||
|
|
func LabelIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldIn(FieldLabel, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelNotIn applies the NotIn predicate on the "label" field.
|
||
|
|
func LabelNotIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNotIn(FieldLabel, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelGT applies the GT predicate on the "label" field.
|
||
|
|
func LabelGT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGT(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelGTE applies the GTE predicate on the "label" field.
|
||
|
|
func LabelGTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGTE(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelLT applies the LT predicate on the "label" field.
|
||
|
|
func LabelLT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLT(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelLTE applies the LTE predicate on the "label" field.
|
||
|
|
func LabelLTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLTE(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelContains applies the Contains predicate on the "label" field.
|
||
|
|
func LabelContains(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContains(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelHasPrefix applies the HasPrefix predicate on the "label" field.
|
||
|
|
func LabelHasPrefix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasPrefix(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelHasSuffix applies the HasSuffix predicate on the "label" field.
|
||
|
|
func LabelHasSuffix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasSuffix(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelEqualFold applies the EqualFold predicate on the "label" field.
|
||
|
|
func LabelEqualFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEqualFold(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LabelContainsFold applies the ContainsFold predicate on the "label" field.
|
||
|
|
func LabelContainsFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContainsFold(FieldLabel, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SeqEQ applies the EQ predicate on the "seq" field.
|
||
|
|
func SeqEQ(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldSeq, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SeqNEQ applies the NEQ predicate on the "seq" field.
|
||
|
|
func SeqNEQ(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldSeq, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SeqIn applies the In predicate on the "seq" field.
|
||
|
|
func SeqIn(vs ...int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldIn(FieldSeq, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SeqNotIn applies the NotIn predicate on the "seq" field.
|
||
|
|
func SeqNotIn(vs ...int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNotIn(FieldSeq, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SeqGT applies the GT predicate on the "seq" field.
|
||
|
|
func SeqGT(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGT(FieldSeq, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SeqGTE applies the GTE predicate on the "seq" field.
|
||
|
|
func SeqGTE(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGTE(FieldSeq, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SeqLT applies the LT predicate on the "seq" field.
|
||
|
|
func SeqLT(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLT(FieldSeq, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// SeqLTE applies the LTE predicate on the "seq" field.
|
||
|
|
func SeqLTE(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLTE(FieldSeq, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
||
|
|
func StationNoEQ(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
||
|
|
func StationNoNEQ(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoIn applies the In predicate on the "stationNo" field.
|
||
|
|
func StationNoIn(vs ...int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldIn(FieldStationNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
||
|
|
func StationNoNotIn(vs ...int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNotIn(FieldStationNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoGT applies the GT predicate on the "stationNo" field.
|
||
|
|
func StationNoGT(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGT(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
||
|
|
func StationNoGTE(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGTE(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoLT applies the LT predicate on the "stationNo" field.
|
||
|
|
func StationNoLT(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLT(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
||
|
|
func StationNoLTE(v int) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLTE(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnEQ applies the EQ predicate on the "currentSn" field.
|
||
|
|
func CurrentSnEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnNEQ applies the NEQ predicate on the "currentSn" field.
|
||
|
|
func CurrentSnNEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnIn applies the In predicate on the "currentSn" field.
|
||
|
|
func CurrentSnIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldIn(FieldCurrentSn, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnNotIn applies the NotIn predicate on the "currentSn" field.
|
||
|
|
func CurrentSnNotIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNotIn(FieldCurrentSn, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnGT applies the GT predicate on the "currentSn" field.
|
||
|
|
func CurrentSnGT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGT(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnGTE applies the GTE predicate on the "currentSn" field.
|
||
|
|
func CurrentSnGTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGTE(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnLT applies the LT predicate on the "currentSn" field.
|
||
|
|
func CurrentSnLT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLT(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnLTE applies the LTE predicate on the "currentSn" field.
|
||
|
|
func CurrentSnLTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLTE(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnContains applies the Contains predicate on the "currentSn" field.
|
||
|
|
func CurrentSnContains(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContains(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnHasPrefix applies the HasPrefix predicate on the "currentSn" field.
|
||
|
|
func CurrentSnHasPrefix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasPrefix(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnHasSuffix applies the HasSuffix predicate on the "currentSn" field.
|
||
|
|
func CurrentSnHasSuffix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasSuffix(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnEqualFold applies the EqualFold predicate on the "currentSn" field.
|
||
|
|
func CurrentSnEqualFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEqualFold(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CurrentSnContainsFold applies the ContainsFold predicate on the "currentSn" field.
|
||
|
|
func CurrentSnContainsFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContainsFold(FieldCurrentSn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoEQ applies the EQ predicate on the "orderNo" field.
|
||
|
|
func OrderNoEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoNEQ applies the NEQ predicate on the "orderNo" field.
|
||
|
|
func OrderNoNEQ(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoIn applies the In predicate on the "orderNo" field.
|
||
|
|
func OrderNoIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldIn(FieldOrderNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoNotIn applies the NotIn predicate on the "orderNo" field.
|
||
|
|
func OrderNoNotIn(vs ...string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNotIn(FieldOrderNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoGT applies the GT predicate on the "orderNo" field.
|
||
|
|
func OrderNoGT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGT(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoGTE applies the GTE predicate on the "orderNo" field.
|
||
|
|
func OrderNoGTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGTE(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoLT applies the LT predicate on the "orderNo" field.
|
||
|
|
func OrderNoLT(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLT(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoLTE applies the LTE predicate on the "orderNo" field.
|
||
|
|
func OrderNoLTE(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLTE(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoContains applies the Contains predicate on the "orderNo" field.
|
||
|
|
func OrderNoContains(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContains(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoHasPrefix applies the HasPrefix predicate on the "orderNo" field.
|
||
|
|
func OrderNoHasPrefix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasPrefix(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoHasSuffix applies the HasSuffix predicate on the "orderNo" field.
|
||
|
|
func OrderNoHasSuffix(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldHasSuffix(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoEqualFold applies the EqualFold predicate on the "orderNo" field.
|
||
|
|
func OrderNoEqualFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEqualFold(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OrderNoContainsFold applies the ContainsFold predicate on the "orderNo" field.
|
||
|
|
func OrderNoContainsFold(v string) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldContainsFold(FieldOrderNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OccupiedEQ applies the EQ predicate on the "occupied" field.
|
||
|
|
func OccupiedEQ(v bool) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldOccupied, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OccupiedNEQ applies the NEQ predicate on the "occupied" field.
|
||
|
|
func OccupiedNEQ(v bool) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldOccupied, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtEQ(v time.Time) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldEQ(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtNEQ(v time.Time) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNEQ(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtIn(vs ...time.Time) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldIn(FieldUpdatedAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtGT(v time.Time) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGT(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtGTE(v time.Time) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldGTE(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtLT(v time.Time) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLT(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtLTE(v time.Time) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.FieldLTE(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// And groups predicates with the AND operator between them.
|
||
|
|
func And(predicates ...predicate.LinePoint) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.AndPredicates(predicates...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Or groups predicates with the OR operator between them.
|
||
|
|
func Or(predicates ...predicate.LinePoint) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.OrPredicates(predicates...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Not applies the not operator on the given predicate.
|
||
|
|
func Not(p predicate.LinePoint) predicate.LinePoint {
|
||
|
|
return predicate.LinePoint(sql.NotPredicates(p))
|
||
|
|
}
|