【MES】 - AGV点位/线路点位/AGV任务/工单 ent schema 重构(全量重生成 ent 代码) - 新增派车锁 agv_point_lock.go:目标点位占用即拒车,JBT21 库房接驳台卸货后保持锁定待库管手动解锁 - 新增进程内 TTL 缓存 cache.go,由 Redis 看板缓存迁移至内存(singleflight 防击穿,去除外部依赖) - AGV 三段链安全机制、车辆状态/接驳台左右互换、补料损耗闭环完善 - 来料检/工序卡/工单/质检/日排产/AGV 前端与帮助文档更新 - 新增 migrations/、sql/ 目录 【WMS】 - 出库、Excel 导出、物料、路由处理增强 - 配置与 DB 初始化调整;基础数据/成品入库/入库前端调整 【工位终端】 - 移除离线同步队列(syncer 包、sync.go、SyncQueueDialog.vue),改为实时直连上报 MES(断网即失败报错),以本人身份操作 - 本地 SQLite 仅保留操作日志 + 内置账号 + 登录态;保留空闲自动登出 【文档】 - 删除 AGV海康litev1.5.md;案例.md 更新
601 lines
21 KiB
Go
601 lines
21 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package agvpoint
|
|
|
|
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.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// PositionCode applies equality check predicate on the "position_code" field. It's identical to PositionCodeEQ.
|
|
func PositionCode(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldPositionCode, v))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// IsDock applies equality check predicate on the "is_dock" field. It's identical to IsDockEQ.
|
|
func IsDock(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldIsDock, v))
|
|
}
|
|
|
|
// DockID applies equality check predicate on the "dock_id" field. It's identical to DockIDEQ.
|
|
func DockID(v int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldDockID, v))
|
|
}
|
|
|
|
// Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
|
|
func Enabled(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldEnabled, v))
|
|
}
|
|
|
|
// Locked applies equality check predicate on the "locked" field. It's identical to LockedEQ.
|
|
func Locked(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldLocked, v))
|
|
}
|
|
|
|
// LockedBy applies equality check predicate on the "locked_by" field. It's identical to LockedByEQ.
|
|
func LockedBy(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedReason applies equality check predicate on the "locked_reason" field. It's identical to LockedReasonEQ.
|
|
func LockedReason(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedAt applies equality check predicate on the "locked_at" field. It's identical to LockedAtEQ.
|
|
func LockedAt(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldLockedAt, v))
|
|
}
|
|
|
|
// ForcePick applies equality check predicate on the "force_pick" field. It's identical to ForcePickEQ.
|
|
func ForcePick(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldForcePick, v))
|
|
}
|
|
|
|
// ForcePickAt applies equality check predicate on the "force_pick_at" field. It's identical to ForcePickAtEQ.
|
|
func ForcePickAt(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldForcePickAt, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// PositionCodeEQ applies the EQ predicate on the "position_code" field.
|
|
func PositionCodeEQ(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeNEQ applies the NEQ predicate on the "position_code" field.
|
|
func PositionCodeNEQ(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeIn applies the In predicate on the "position_code" field.
|
|
func PositionCodeIn(vs ...string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIn(FieldPositionCode, vs...))
|
|
}
|
|
|
|
// PositionCodeNotIn applies the NotIn predicate on the "position_code" field.
|
|
func PositionCodeNotIn(vs ...string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotIn(FieldPositionCode, vs...))
|
|
}
|
|
|
|
// PositionCodeGT applies the GT predicate on the "position_code" field.
|
|
func PositionCodeGT(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGT(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeGTE applies the GTE predicate on the "position_code" field.
|
|
func PositionCodeGTE(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGTE(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeLT applies the LT predicate on the "position_code" field.
|
|
func PositionCodeLT(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLT(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeLTE applies the LTE predicate on the "position_code" field.
|
|
func PositionCodeLTE(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLTE(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeContains applies the Contains predicate on the "position_code" field.
|
|
func PositionCodeContains(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldContains(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeHasPrefix applies the HasPrefix predicate on the "position_code" field.
|
|
func PositionCodeHasPrefix(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldHasPrefix(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeHasSuffix applies the HasSuffix predicate on the "position_code" field.
|
|
func PositionCodeHasSuffix(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldHasSuffix(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeEqualFold applies the EqualFold predicate on the "position_code" field.
|
|
func PositionCodeEqualFold(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEqualFold(FieldPositionCode, v))
|
|
}
|
|
|
|
// PositionCodeContainsFold applies the ContainsFold predicate on the "position_code" field.
|
|
func PositionCodeContainsFold(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldContainsFold(FieldPositionCode, v))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// IsDockEQ applies the EQ predicate on the "is_dock" field.
|
|
func IsDockEQ(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldIsDock, v))
|
|
}
|
|
|
|
// IsDockNEQ applies the NEQ predicate on the "is_dock" field.
|
|
func IsDockNEQ(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldIsDock, v))
|
|
}
|
|
|
|
// DockIDEQ applies the EQ predicate on the "dock_id" field.
|
|
func DockIDEQ(v int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldDockID, v))
|
|
}
|
|
|
|
// DockIDNEQ applies the NEQ predicate on the "dock_id" field.
|
|
func DockIDNEQ(v int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldDockID, v))
|
|
}
|
|
|
|
// DockIDIn applies the In predicate on the "dock_id" field.
|
|
func DockIDIn(vs ...int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIn(FieldDockID, vs...))
|
|
}
|
|
|
|
// DockIDNotIn applies the NotIn predicate on the "dock_id" field.
|
|
func DockIDNotIn(vs ...int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotIn(FieldDockID, vs...))
|
|
}
|
|
|
|
// DockIDGT applies the GT predicate on the "dock_id" field.
|
|
func DockIDGT(v int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGT(FieldDockID, v))
|
|
}
|
|
|
|
// DockIDGTE applies the GTE predicate on the "dock_id" field.
|
|
func DockIDGTE(v int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGTE(FieldDockID, v))
|
|
}
|
|
|
|
// DockIDLT applies the LT predicate on the "dock_id" field.
|
|
func DockIDLT(v int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLT(FieldDockID, v))
|
|
}
|
|
|
|
// DockIDLTE applies the LTE predicate on the "dock_id" field.
|
|
func DockIDLTE(v int) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLTE(FieldDockID, v))
|
|
}
|
|
|
|
// DockIDIsNil applies the IsNil predicate on the "dock_id" field.
|
|
func DockIDIsNil() predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIsNull(FieldDockID))
|
|
}
|
|
|
|
// DockIDNotNil applies the NotNil predicate on the "dock_id" field.
|
|
func DockIDNotNil() predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotNull(FieldDockID))
|
|
}
|
|
|
|
// EnabledEQ applies the EQ predicate on the "enabled" field.
|
|
func EnabledEQ(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldEnabled, v))
|
|
}
|
|
|
|
// EnabledNEQ applies the NEQ predicate on the "enabled" field.
|
|
func EnabledNEQ(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldEnabled, v))
|
|
}
|
|
|
|
// LockedEQ applies the EQ predicate on the "locked" field.
|
|
func LockedEQ(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldLocked, v))
|
|
}
|
|
|
|
// LockedNEQ applies the NEQ predicate on the "locked" field.
|
|
func LockedNEQ(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldLocked, v))
|
|
}
|
|
|
|
// LockedByEQ applies the EQ predicate on the "locked_by" field.
|
|
func LockedByEQ(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByNEQ applies the NEQ predicate on the "locked_by" field.
|
|
func LockedByNEQ(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByIn applies the In predicate on the "locked_by" field.
|
|
func LockedByIn(vs ...string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIn(FieldLockedBy, vs...))
|
|
}
|
|
|
|
// LockedByNotIn applies the NotIn predicate on the "locked_by" field.
|
|
func LockedByNotIn(vs ...string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotIn(FieldLockedBy, vs...))
|
|
}
|
|
|
|
// LockedByGT applies the GT predicate on the "locked_by" field.
|
|
func LockedByGT(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGT(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByGTE applies the GTE predicate on the "locked_by" field.
|
|
func LockedByGTE(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGTE(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByLT applies the LT predicate on the "locked_by" field.
|
|
func LockedByLT(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLT(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByLTE applies the LTE predicate on the "locked_by" field.
|
|
func LockedByLTE(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLTE(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByContains applies the Contains predicate on the "locked_by" field.
|
|
func LockedByContains(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldContains(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByHasPrefix applies the HasPrefix predicate on the "locked_by" field.
|
|
func LockedByHasPrefix(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldHasPrefix(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByHasSuffix applies the HasSuffix predicate on the "locked_by" field.
|
|
func LockedByHasSuffix(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldHasSuffix(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByEqualFold applies the EqualFold predicate on the "locked_by" field.
|
|
func LockedByEqualFold(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEqualFold(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedByContainsFold applies the ContainsFold predicate on the "locked_by" field.
|
|
func LockedByContainsFold(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldContainsFold(FieldLockedBy, v))
|
|
}
|
|
|
|
// LockedReasonEQ applies the EQ predicate on the "locked_reason" field.
|
|
func LockedReasonEQ(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonNEQ applies the NEQ predicate on the "locked_reason" field.
|
|
func LockedReasonNEQ(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonIn applies the In predicate on the "locked_reason" field.
|
|
func LockedReasonIn(vs ...string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIn(FieldLockedReason, vs...))
|
|
}
|
|
|
|
// LockedReasonNotIn applies the NotIn predicate on the "locked_reason" field.
|
|
func LockedReasonNotIn(vs ...string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotIn(FieldLockedReason, vs...))
|
|
}
|
|
|
|
// LockedReasonGT applies the GT predicate on the "locked_reason" field.
|
|
func LockedReasonGT(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGT(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonGTE applies the GTE predicate on the "locked_reason" field.
|
|
func LockedReasonGTE(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGTE(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonLT applies the LT predicate on the "locked_reason" field.
|
|
func LockedReasonLT(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLT(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonLTE applies the LTE predicate on the "locked_reason" field.
|
|
func LockedReasonLTE(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLTE(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonContains applies the Contains predicate on the "locked_reason" field.
|
|
func LockedReasonContains(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldContains(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonHasPrefix applies the HasPrefix predicate on the "locked_reason" field.
|
|
func LockedReasonHasPrefix(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldHasPrefix(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonHasSuffix applies the HasSuffix predicate on the "locked_reason" field.
|
|
func LockedReasonHasSuffix(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldHasSuffix(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonEqualFold applies the EqualFold predicate on the "locked_reason" field.
|
|
func LockedReasonEqualFold(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEqualFold(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedReasonContainsFold applies the ContainsFold predicate on the "locked_reason" field.
|
|
func LockedReasonContainsFold(v string) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldContainsFold(FieldLockedReason, v))
|
|
}
|
|
|
|
// LockedAtEQ applies the EQ predicate on the "locked_at" field.
|
|
func LockedAtEQ(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldLockedAt, v))
|
|
}
|
|
|
|
// LockedAtNEQ applies the NEQ predicate on the "locked_at" field.
|
|
func LockedAtNEQ(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldLockedAt, v))
|
|
}
|
|
|
|
// LockedAtIn applies the In predicate on the "locked_at" field.
|
|
func LockedAtIn(vs ...int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIn(FieldLockedAt, vs...))
|
|
}
|
|
|
|
// LockedAtNotIn applies the NotIn predicate on the "locked_at" field.
|
|
func LockedAtNotIn(vs ...int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotIn(FieldLockedAt, vs...))
|
|
}
|
|
|
|
// LockedAtGT applies the GT predicate on the "locked_at" field.
|
|
func LockedAtGT(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGT(FieldLockedAt, v))
|
|
}
|
|
|
|
// LockedAtGTE applies the GTE predicate on the "locked_at" field.
|
|
func LockedAtGTE(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGTE(FieldLockedAt, v))
|
|
}
|
|
|
|
// LockedAtLT applies the LT predicate on the "locked_at" field.
|
|
func LockedAtLT(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLT(FieldLockedAt, v))
|
|
}
|
|
|
|
// LockedAtLTE applies the LTE predicate on the "locked_at" field.
|
|
func LockedAtLTE(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLTE(FieldLockedAt, v))
|
|
}
|
|
|
|
// ForcePickEQ applies the EQ predicate on the "force_pick" field.
|
|
func ForcePickEQ(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldForcePick, v))
|
|
}
|
|
|
|
// ForcePickNEQ applies the NEQ predicate on the "force_pick" field.
|
|
func ForcePickNEQ(v bool) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldForcePick, v))
|
|
}
|
|
|
|
// ForcePickAtEQ applies the EQ predicate on the "force_pick_at" field.
|
|
func ForcePickAtEQ(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldForcePickAt, v))
|
|
}
|
|
|
|
// ForcePickAtNEQ applies the NEQ predicate on the "force_pick_at" field.
|
|
func ForcePickAtNEQ(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldForcePickAt, v))
|
|
}
|
|
|
|
// ForcePickAtIn applies the In predicate on the "force_pick_at" field.
|
|
func ForcePickAtIn(vs ...int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIn(FieldForcePickAt, vs...))
|
|
}
|
|
|
|
// ForcePickAtNotIn applies the NotIn predicate on the "force_pick_at" field.
|
|
func ForcePickAtNotIn(vs ...int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotIn(FieldForcePickAt, vs...))
|
|
}
|
|
|
|
// ForcePickAtGT applies the GT predicate on the "force_pick_at" field.
|
|
func ForcePickAtGT(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGT(FieldForcePickAt, v))
|
|
}
|
|
|
|
// ForcePickAtGTE applies the GTE predicate on the "force_pick_at" field.
|
|
func ForcePickAtGTE(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGTE(FieldForcePickAt, v))
|
|
}
|
|
|
|
// ForcePickAtLT applies the LT predicate on the "force_pick_at" field.
|
|
func ForcePickAtLT(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLT(FieldForcePickAt, v))
|
|
}
|
|
|
|
// ForcePickAtLTE applies the LTE predicate on the "force_pick_at" field.
|
|
func ForcePickAtLTE(v int64) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLTE(FieldForcePickAt, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.AgvPoint) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.AgvPoint) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.AgvPoint) predicate.AgvPoint {
|
|
return predicate.AgvPoint(sql.NotPredicates(p))
|
|
}
|