Files
bj_power/bj_power_mes/ent/workpiece/where.go
T
SunYF f65a52d9e1 feat: 多系统新增扫码中间件与 AGV 对接,优化拧紧与退库流程
新增扫码中间件支持网络型扫码枪键盘注入,AGV 对接从 WMS 迁至 MES 统一管理;新增拧紧不合格人工处置与 PLC 对账机制,优化退库单关联与工位终端功能,同时清理旧 AGV 任务表,完善数据库与配置项。
2026-10-14 17:24:59 +08:00

806 lines
29 KiB
Go

// Code generated by ent, DO NOT EDIT.
package workpiece
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.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldID, id))
}
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
func Sn(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldSn, v))
}
// OrderNo applies equality check predicate on the "orderNo" field. It's identical to OrderNoEQ.
func OrderNo(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldOrderNo, v))
}
// WorkOrderId applies equality check predicate on the "workOrderId" field. It's identical to WorkOrderIdEQ.
func WorkOrderId(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldWorkOrderId, v))
}
// CurrentStationNo applies equality check predicate on the "currentStationNo" field. It's identical to CurrentStationNoEQ.
func CurrentStationNo(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldCurrentStationNo, v))
}
// AtStationNo applies equality check predicate on the "atStationNo" field. It's identical to AtStationNoEQ.
func AtStationNo(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldAtStationNo, v))
}
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldStatus, v))
}
// OnlineAt applies equality check predicate on the "onlineAt" field. It's identical to OnlineAtEQ.
func OnlineAt(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldOnlineAt, v))
}
// DoneAt applies equality check predicate on the "doneAt" field. It's identical to DoneAtEQ.
func DoneAt(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldDoneAt, v))
}
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldUpdatedAt, v))
}
// TorqueNgPending applies equality check predicate on the "torque_ng_pending" field. It's identical to TorqueNgPendingEQ.
func TorqueNgPending(v bool) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgPending, v))
}
// TorqueNgAt applies equality check predicate on the "torque_ng_at" field. It's identical to TorqueNgAtEQ.
func TorqueNgAt(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgAt, v))
}
// TorqueNgBy applies equality check predicate on the "torque_ng_by" field. It's identical to TorqueNgByEQ.
func TorqueNgBy(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgBy, v))
}
// SnEQ applies the EQ predicate on the "sn" field.
func SnEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldSn, v))
}
// SnNEQ applies the NEQ predicate on the "sn" field.
func SnNEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldSn, v))
}
// SnIn applies the In predicate on the "sn" field.
func SnIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldSn, vs...))
}
// SnNotIn applies the NotIn predicate on the "sn" field.
func SnNotIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldSn, vs...))
}
// SnGT applies the GT predicate on the "sn" field.
func SnGT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldSn, v))
}
// SnGTE applies the GTE predicate on the "sn" field.
func SnGTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldSn, v))
}
// SnLT applies the LT predicate on the "sn" field.
func SnLT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldSn, v))
}
// SnLTE applies the LTE predicate on the "sn" field.
func SnLTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldSn, v))
}
// SnContains applies the Contains predicate on the "sn" field.
func SnContains(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContains(FieldSn, v))
}
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
func SnHasPrefix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasPrefix(FieldSn, v))
}
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
func SnHasSuffix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasSuffix(FieldSn, v))
}
// SnEqualFold applies the EqualFold predicate on the "sn" field.
func SnEqualFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEqualFold(FieldSn, v))
}
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
func SnContainsFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContainsFold(FieldSn, v))
}
// OrderNoEQ applies the EQ predicate on the "orderNo" field.
func OrderNoEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldOrderNo, v))
}
// OrderNoNEQ applies the NEQ predicate on the "orderNo" field.
func OrderNoNEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldOrderNo, v))
}
// OrderNoIn applies the In predicate on the "orderNo" field.
func OrderNoIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldOrderNo, vs...))
}
// OrderNoNotIn applies the NotIn predicate on the "orderNo" field.
func OrderNoNotIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldOrderNo, vs...))
}
// OrderNoGT applies the GT predicate on the "orderNo" field.
func OrderNoGT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldOrderNo, v))
}
// OrderNoGTE applies the GTE predicate on the "orderNo" field.
func OrderNoGTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldOrderNo, v))
}
// OrderNoLT applies the LT predicate on the "orderNo" field.
func OrderNoLT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldOrderNo, v))
}
// OrderNoLTE applies the LTE predicate on the "orderNo" field.
func OrderNoLTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldOrderNo, v))
}
// OrderNoContains applies the Contains predicate on the "orderNo" field.
func OrderNoContains(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContains(FieldOrderNo, v))
}
// OrderNoHasPrefix applies the HasPrefix predicate on the "orderNo" field.
func OrderNoHasPrefix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasPrefix(FieldOrderNo, v))
}
// OrderNoHasSuffix applies the HasSuffix predicate on the "orderNo" field.
func OrderNoHasSuffix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasSuffix(FieldOrderNo, v))
}
// OrderNoEqualFold applies the EqualFold predicate on the "orderNo" field.
func OrderNoEqualFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEqualFold(FieldOrderNo, v))
}
// OrderNoContainsFold applies the ContainsFold predicate on the "orderNo" field.
func OrderNoContainsFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContainsFold(FieldOrderNo, v))
}
// WorkOrderIdEQ applies the EQ predicate on the "workOrderId" field.
func WorkOrderIdEQ(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldWorkOrderId, v))
}
// WorkOrderIdNEQ applies the NEQ predicate on the "workOrderId" field.
func WorkOrderIdNEQ(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldWorkOrderId, v))
}
// WorkOrderIdIn applies the In predicate on the "workOrderId" field.
func WorkOrderIdIn(vs ...int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldWorkOrderId, vs...))
}
// WorkOrderIdNotIn applies the NotIn predicate on the "workOrderId" field.
func WorkOrderIdNotIn(vs ...int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldWorkOrderId, vs...))
}
// WorkOrderIdGT applies the GT predicate on the "workOrderId" field.
func WorkOrderIdGT(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldWorkOrderId, v))
}
// WorkOrderIdGTE applies the GTE predicate on the "workOrderId" field.
func WorkOrderIdGTE(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldWorkOrderId, v))
}
// WorkOrderIdLT applies the LT predicate on the "workOrderId" field.
func WorkOrderIdLT(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldWorkOrderId, v))
}
// WorkOrderIdLTE applies the LTE predicate on the "workOrderId" field.
func WorkOrderIdLTE(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldWorkOrderId, v))
}
// WorkOrderIdIsNil applies the IsNil predicate on the "workOrderId" field.
func WorkOrderIdIsNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldIsNull(FieldWorkOrderId))
}
// WorkOrderIdNotNil applies the NotNil predicate on the "workOrderId" field.
func WorkOrderIdNotNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotNull(FieldWorkOrderId))
}
// CurrentStationNoEQ applies the EQ predicate on the "currentStationNo" field.
func CurrentStationNoEQ(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldCurrentStationNo, v))
}
// CurrentStationNoNEQ applies the NEQ predicate on the "currentStationNo" field.
func CurrentStationNoNEQ(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldCurrentStationNo, v))
}
// CurrentStationNoIn applies the In predicate on the "currentStationNo" field.
func CurrentStationNoIn(vs ...int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldCurrentStationNo, vs...))
}
// CurrentStationNoNotIn applies the NotIn predicate on the "currentStationNo" field.
func CurrentStationNoNotIn(vs ...int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldCurrentStationNo, vs...))
}
// CurrentStationNoGT applies the GT predicate on the "currentStationNo" field.
func CurrentStationNoGT(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldCurrentStationNo, v))
}
// CurrentStationNoGTE applies the GTE predicate on the "currentStationNo" field.
func CurrentStationNoGTE(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldCurrentStationNo, v))
}
// CurrentStationNoLT applies the LT predicate on the "currentStationNo" field.
func CurrentStationNoLT(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldCurrentStationNo, v))
}
// CurrentStationNoLTE applies the LTE predicate on the "currentStationNo" field.
func CurrentStationNoLTE(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldCurrentStationNo, v))
}
// CurrentStationNoIsNil applies the IsNil predicate on the "currentStationNo" field.
func CurrentStationNoIsNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldIsNull(FieldCurrentStationNo))
}
// CurrentStationNoNotNil applies the NotNil predicate on the "currentStationNo" field.
func CurrentStationNoNotNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotNull(FieldCurrentStationNo))
}
// AtStationNoEQ applies the EQ predicate on the "atStationNo" field.
func AtStationNoEQ(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldAtStationNo, v))
}
// AtStationNoNEQ applies the NEQ predicate on the "atStationNo" field.
func AtStationNoNEQ(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldAtStationNo, v))
}
// AtStationNoIn applies the In predicate on the "atStationNo" field.
func AtStationNoIn(vs ...int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldAtStationNo, vs...))
}
// AtStationNoNotIn applies the NotIn predicate on the "atStationNo" field.
func AtStationNoNotIn(vs ...int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldAtStationNo, vs...))
}
// AtStationNoGT applies the GT predicate on the "atStationNo" field.
func AtStationNoGT(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldAtStationNo, v))
}
// AtStationNoGTE applies the GTE predicate on the "atStationNo" field.
func AtStationNoGTE(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldAtStationNo, v))
}
// AtStationNoLT applies the LT predicate on the "atStationNo" field.
func AtStationNoLT(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldAtStationNo, v))
}
// AtStationNoLTE applies the LTE predicate on the "atStationNo" field.
func AtStationNoLTE(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldAtStationNo, v))
}
// AtStationNoIsNil applies the IsNil predicate on the "atStationNo" field.
func AtStationNoIsNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldIsNull(FieldAtStationNo))
}
// AtStationNoNotNil applies the NotNil predicate on the "atStationNo" field.
func AtStationNoNotNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotNull(FieldAtStationNo))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldStatus, vs...))
}
// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldStatus, v))
}
// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldStatus, v))
}
// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldStatus, v))
}
// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldStatus, v))
}
// StatusContains applies the Contains predicate on the "status" field.
func StatusContains(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContains(FieldStatus, v))
}
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasPrefix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasPrefix(FieldStatus, v))
}
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusHasSuffix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasSuffix(FieldStatus, v))
}
// StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusEqualFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEqualFold(FieldStatus, v))
}
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusContainsFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContainsFold(FieldStatus, v))
}
// OnlineAtEQ applies the EQ predicate on the "onlineAt" field.
func OnlineAtEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldOnlineAt, v))
}
// OnlineAtNEQ applies the NEQ predicate on the "onlineAt" field.
func OnlineAtNEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldOnlineAt, v))
}
// OnlineAtIn applies the In predicate on the "onlineAt" field.
func OnlineAtIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldOnlineAt, vs...))
}
// OnlineAtNotIn applies the NotIn predicate on the "onlineAt" field.
func OnlineAtNotIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldOnlineAt, vs...))
}
// OnlineAtGT applies the GT predicate on the "onlineAt" field.
func OnlineAtGT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldOnlineAt, v))
}
// OnlineAtGTE applies the GTE predicate on the "onlineAt" field.
func OnlineAtGTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldOnlineAt, v))
}
// OnlineAtLT applies the LT predicate on the "onlineAt" field.
func OnlineAtLT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldOnlineAt, v))
}
// OnlineAtLTE applies the LTE predicate on the "onlineAt" field.
func OnlineAtLTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldOnlineAt, v))
}
// OnlineAtIsNil applies the IsNil predicate on the "onlineAt" field.
func OnlineAtIsNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldIsNull(FieldOnlineAt))
}
// OnlineAtNotNil applies the NotNil predicate on the "onlineAt" field.
func OnlineAtNotNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotNull(FieldOnlineAt))
}
// DoneAtEQ applies the EQ predicate on the "doneAt" field.
func DoneAtEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldDoneAt, v))
}
// DoneAtNEQ applies the NEQ predicate on the "doneAt" field.
func DoneAtNEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldDoneAt, v))
}
// DoneAtIn applies the In predicate on the "doneAt" field.
func DoneAtIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldDoneAt, vs...))
}
// DoneAtNotIn applies the NotIn predicate on the "doneAt" field.
func DoneAtNotIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldDoneAt, vs...))
}
// DoneAtGT applies the GT predicate on the "doneAt" field.
func DoneAtGT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldDoneAt, v))
}
// DoneAtGTE applies the GTE predicate on the "doneAt" field.
func DoneAtGTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldDoneAt, v))
}
// DoneAtLT applies the LT predicate on the "doneAt" field.
func DoneAtLT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldDoneAt, v))
}
// DoneAtLTE applies the LTE predicate on the "doneAt" field.
func DoneAtLTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldDoneAt, v))
}
// DoneAtIsNil applies the IsNil predicate on the "doneAt" field.
func DoneAtIsNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldIsNull(FieldDoneAt))
}
// DoneAtNotNil applies the NotNil predicate on the "doneAt" field.
func DoneAtNotNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotNull(FieldDoneAt))
}
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
func CreatedAtNEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "createdAt" field.
func CreatedAtIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "createdAt" field.
func CreatedAtGT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
func CreatedAtGTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "createdAt" field.
func CreatedAtLT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
func CreatedAtLTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
func UpdatedAtEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
func UpdatedAtNEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
func UpdatedAtIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
func UpdatedAtGT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
func UpdatedAtGTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
func UpdatedAtLT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
func UpdatedAtLTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldUpdatedAt, v))
}
// UpdatedAtIsNil applies the IsNil predicate on the "updatedAt" field.
func UpdatedAtIsNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldIsNull(FieldUpdatedAt))
}
// UpdatedAtNotNil applies the NotNil predicate on the "updatedAt" field.
func UpdatedAtNotNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotNull(FieldUpdatedAt))
}
// TorqueNgPendingEQ applies the EQ predicate on the "torque_ng_pending" field.
func TorqueNgPendingEQ(v bool) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgPending, v))
}
// TorqueNgPendingNEQ applies the NEQ predicate on the "torque_ng_pending" field.
func TorqueNgPendingNEQ(v bool) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldTorqueNgPending, v))
}
// TorqueNgAtEQ applies the EQ predicate on the "torque_ng_at" field.
func TorqueNgAtEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgAt, v))
}
// TorqueNgAtNEQ applies the NEQ predicate on the "torque_ng_at" field.
func TorqueNgAtNEQ(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldTorqueNgAt, v))
}
// TorqueNgAtIn applies the In predicate on the "torque_ng_at" field.
func TorqueNgAtIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldTorqueNgAt, vs...))
}
// TorqueNgAtNotIn applies the NotIn predicate on the "torque_ng_at" field.
func TorqueNgAtNotIn(vs ...time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldTorqueNgAt, vs...))
}
// TorqueNgAtGT applies the GT predicate on the "torque_ng_at" field.
func TorqueNgAtGT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldTorqueNgAt, v))
}
// TorqueNgAtGTE applies the GTE predicate on the "torque_ng_at" field.
func TorqueNgAtGTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldTorqueNgAt, v))
}
// TorqueNgAtLT applies the LT predicate on the "torque_ng_at" field.
func TorqueNgAtLT(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldTorqueNgAt, v))
}
// TorqueNgAtLTE applies the LTE predicate on the "torque_ng_at" field.
func TorqueNgAtLTE(v time.Time) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldTorqueNgAt, v))
}
// TorqueNgAtIsNil applies the IsNil predicate on the "torque_ng_at" field.
func TorqueNgAtIsNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldIsNull(FieldTorqueNgAt))
}
// TorqueNgAtNotNil applies the NotNil predicate on the "torque_ng_at" field.
func TorqueNgAtNotNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotNull(FieldTorqueNgAt))
}
// TorqueNgByEQ applies the EQ predicate on the "torque_ng_by" field.
func TorqueNgByEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgBy, v))
}
// TorqueNgByNEQ applies the NEQ predicate on the "torque_ng_by" field.
func TorqueNgByNEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldTorqueNgBy, v))
}
// TorqueNgByIn applies the In predicate on the "torque_ng_by" field.
func TorqueNgByIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldTorqueNgBy, vs...))
}
// TorqueNgByNotIn applies the NotIn predicate on the "torque_ng_by" field.
func TorqueNgByNotIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldTorqueNgBy, vs...))
}
// TorqueNgByGT applies the GT predicate on the "torque_ng_by" field.
func TorqueNgByGT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldTorqueNgBy, v))
}
// TorqueNgByGTE applies the GTE predicate on the "torque_ng_by" field.
func TorqueNgByGTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldTorqueNgBy, v))
}
// TorqueNgByLT applies the LT predicate on the "torque_ng_by" field.
func TorqueNgByLT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldTorqueNgBy, v))
}
// TorqueNgByLTE applies the LTE predicate on the "torque_ng_by" field.
func TorqueNgByLTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldTorqueNgBy, v))
}
// TorqueNgByContains applies the Contains predicate on the "torque_ng_by" field.
func TorqueNgByContains(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContains(FieldTorqueNgBy, v))
}
// TorqueNgByHasPrefix applies the HasPrefix predicate on the "torque_ng_by" field.
func TorqueNgByHasPrefix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasPrefix(FieldTorqueNgBy, v))
}
// TorqueNgByHasSuffix applies the HasSuffix predicate on the "torque_ng_by" field.
func TorqueNgByHasSuffix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasSuffix(FieldTorqueNgBy, v))
}
// TorqueNgByIsNil applies the IsNil predicate on the "torque_ng_by" field.
func TorqueNgByIsNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldIsNull(FieldTorqueNgBy))
}
// TorqueNgByNotNil applies the NotNil predicate on the "torque_ng_by" field.
func TorqueNgByNotNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotNull(FieldTorqueNgBy))
}
// TorqueNgByEqualFold applies the EqualFold predicate on the "torque_ng_by" field.
func TorqueNgByEqualFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEqualFold(FieldTorqueNgBy, v))
}
// TorqueNgByContainsFold applies the ContainsFold predicate on the "torque_ng_by" field.
func TorqueNgByContainsFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContainsFold(FieldTorqueNgBy, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.Workpiece) predicate.Workpiece {
return predicate.Workpiece(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Workpiece) predicate.Workpiece {
return predicate.Workpiece(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Workpiece) predicate.Workpiece {
return predicate.Workpiece(sql.NotPredicates(p))
}