【全系统 · 接驳台编码终版统一(12-01 用户拍板)】
- 新增 dockcode 包作为唯一真源:工位接驳台 = GW{工位号}{Z|Y}(Z=左/Y=右,工位1~10同一规则,废除左右互换),库房 = JBT21 不变
- 编码即海康 RCS 地图点位码:落库/界面/下发 RCS/读 PLC 传感器全用同一套;旧 DOCK01~20 全量废弃,系统内无第二套编号、无换算层
- dock 表去 side 字段;agv_task.target_dock、line_point、看板点位态与中文名、dockLabel 工具全部改 GW 规则
- 产线布局说明.md 同步终版(图纸名 GxZ/GxY 与 AGV 码 GWxZ/GWxY 一一对应;注明 RCS 图与主线流向图相差 180°,读图一律以 GW 码为准)
【MES · 签字模型二次重构(11-30 实测后定稿)】
- _OPERATOR 签字整体废除:工艺步骤删 needOperatorSign / needAudit / auditRole 字段,签字角色改 CALL(工人报检呼叫)+ INSPECTOR(检验员审核签)
- 呼叫时落步骤录入快照(stepValue/stepText/stepChecked/processId),供检验员查看与指纹比对;「待签任务」只认检验员签名步骤
- 「签字复核」(AuditPending 页面 + produce.audit 菜单 + 路由)整套删除
【MES · 台账续流根因修复(11-30 对账发现)】
- 流转目标「G6」与 line_point.point_no「6」对不上导致到位落账查不到、却先释放源位→工件从调度消失;新增 ledgerPointByTarget 归一
- settleDirect/settleInTransit 改为先占目标位、成功才释放源位;目标被占原样保留,工件进缓存位排队(实测 C2 排队不再丢件)
【WMS · 末级库位强校验与上架移库】
- 新增 LocationCascade 四级联动选择器(区/架/层/号,只从启用 level=4 节点派生);手工入库、半成品/成品入库、隔离库位一律四级必填且命中启用节点
- 新增上架/移库 relocate:只改四级库位与 updated_at,不动质量状态/数量/锁定量;不合格与锁定行同样允许移库;支持 ids 逐行指定或 scope 按物料+原库位整组搬
- MES 新增 WMS 自动回流库位配置(半成品/成品各一组末级库位,默认值 1区/1架/1层/1号,存 sys_config 可改)
【MES · 统一口径与工程整改】
- 新增 workpiece_location:工单详情工件列表/WIP/追溯三处共用位置判定(SCRAPPED→DONE→SEMI_STORED→在 StationNo→在途→待流转)
- 新增 workorder_close_warn:工单完工/取消时汇总各工位实物余料出一条预警,不阻断关单
- 分页下沉:新增 pagination 工具,同步失败台账(两端)改 Count+LIMIT/OFFSET 真分页,列表不再全量切片
- 全网对账/孤儿扫描(问题临时.md 第25/26节):10 类关系边断言实测,给出 8 条可重复巡检项
【文档】
- 产线布局说明.md 按 GW 编码终版重写;问题临时.md 新增 24.7 闭环实测、25 全网对账、26 补料→配送→报工人库闭环
536 lines
18 KiB
Go
536 lines
18 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package dock
|
|
|
|
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.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// DockCode applies equality check predicate on the "dockCode" field. It's identical to DockCodeEQ.
|
|
func DockCode(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldDockCode, v))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// DockType applies equality check predicate on the "dockType" field. It's identical to DockTypeEQ.
|
|
func DockType(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldDockType, v))
|
|
}
|
|
|
|
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
|
func StationNo(v int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldStationNo, v))
|
|
}
|
|
|
|
// HasPallet applies equality check predicate on the "hasPallet" field. It's identical to HasPalletEQ.
|
|
func HasPallet(v bool) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldHasPallet, v))
|
|
}
|
|
|
|
// PalletRef applies equality check predicate on the "palletRef" field. It's identical to PalletRefEQ.
|
|
func PalletRef(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldPalletRef, v))
|
|
}
|
|
|
|
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
|
func Status(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// DockCodeEQ applies the EQ predicate on the "dockCode" field.
|
|
func DockCodeEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeNEQ applies the NEQ predicate on the "dockCode" field.
|
|
func DockCodeNEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNEQ(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeIn applies the In predicate on the "dockCode" field.
|
|
func DockCodeIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldIn(FieldDockCode, vs...))
|
|
}
|
|
|
|
// DockCodeNotIn applies the NotIn predicate on the "dockCode" field.
|
|
func DockCodeNotIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNotIn(FieldDockCode, vs...))
|
|
}
|
|
|
|
// DockCodeGT applies the GT predicate on the "dockCode" field.
|
|
func DockCodeGT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGT(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeGTE applies the GTE predicate on the "dockCode" field.
|
|
func DockCodeGTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGTE(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeLT applies the LT predicate on the "dockCode" field.
|
|
func DockCodeLT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLT(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeLTE applies the LTE predicate on the "dockCode" field.
|
|
func DockCodeLTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLTE(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeContains applies the Contains predicate on the "dockCode" field.
|
|
func DockCodeContains(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContains(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeHasPrefix applies the HasPrefix predicate on the "dockCode" field.
|
|
func DockCodeHasPrefix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeHasSuffix applies the HasSuffix predicate on the "dockCode" field.
|
|
func DockCodeHasSuffix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeEqualFold applies the EqualFold predicate on the "dockCode" field.
|
|
func DockCodeEqualFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEqualFold(FieldDockCode, v))
|
|
}
|
|
|
|
// DockCodeContainsFold applies the ContainsFold predicate on the "dockCode" field.
|
|
func DockCodeContainsFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContainsFold(FieldDockCode, v))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// DockTypeEQ applies the EQ predicate on the "dockType" field.
|
|
func DockTypeEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeNEQ applies the NEQ predicate on the "dockType" field.
|
|
func DockTypeNEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNEQ(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeIn applies the In predicate on the "dockType" field.
|
|
func DockTypeIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldIn(FieldDockType, vs...))
|
|
}
|
|
|
|
// DockTypeNotIn applies the NotIn predicate on the "dockType" field.
|
|
func DockTypeNotIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNotIn(FieldDockType, vs...))
|
|
}
|
|
|
|
// DockTypeGT applies the GT predicate on the "dockType" field.
|
|
func DockTypeGT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGT(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeGTE applies the GTE predicate on the "dockType" field.
|
|
func DockTypeGTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGTE(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeLT applies the LT predicate on the "dockType" field.
|
|
func DockTypeLT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLT(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeLTE applies the LTE predicate on the "dockType" field.
|
|
func DockTypeLTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLTE(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeContains applies the Contains predicate on the "dockType" field.
|
|
func DockTypeContains(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContains(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeHasPrefix applies the HasPrefix predicate on the "dockType" field.
|
|
func DockTypeHasPrefix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeHasSuffix applies the HasSuffix predicate on the "dockType" field.
|
|
func DockTypeHasSuffix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeEqualFold applies the EqualFold predicate on the "dockType" field.
|
|
func DockTypeEqualFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEqualFold(FieldDockType, v))
|
|
}
|
|
|
|
// DockTypeContainsFold applies the ContainsFold predicate on the "dockType" field.
|
|
func DockTypeContainsFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContainsFold(FieldDockType, v))
|
|
}
|
|
|
|
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
|
func StationNoEQ(v int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
|
func StationNoNEQ(v int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNEQ(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoIn applies the In predicate on the "stationNo" field.
|
|
func StationNoIn(vs ...int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldIn(FieldStationNo, vs...))
|
|
}
|
|
|
|
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
|
func StationNoNotIn(vs ...int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNotIn(FieldStationNo, vs...))
|
|
}
|
|
|
|
// StationNoGT applies the GT predicate on the "stationNo" field.
|
|
func StationNoGT(v int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGT(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
|
func StationNoGTE(v int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGTE(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoLT applies the LT predicate on the "stationNo" field.
|
|
func StationNoLT(v int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLT(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
|
func StationNoLTE(v int) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLTE(FieldStationNo, v))
|
|
}
|
|
|
|
// HasPalletEQ applies the EQ predicate on the "hasPallet" field.
|
|
func HasPalletEQ(v bool) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldHasPallet, v))
|
|
}
|
|
|
|
// HasPalletNEQ applies the NEQ predicate on the "hasPallet" field.
|
|
func HasPalletNEQ(v bool) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNEQ(FieldHasPallet, v))
|
|
}
|
|
|
|
// PalletRefEQ applies the EQ predicate on the "palletRef" field.
|
|
func PalletRefEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefNEQ applies the NEQ predicate on the "palletRef" field.
|
|
func PalletRefNEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNEQ(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefIn applies the In predicate on the "palletRef" field.
|
|
func PalletRefIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldIn(FieldPalletRef, vs...))
|
|
}
|
|
|
|
// PalletRefNotIn applies the NotIn predicate on the "palletRef" field.
|
|
func PalletRefNotIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNotIn(FieldPalletRef, vs...))
|
|
}
|
|
|
|
// PalletRefGT applies the GT predicate on the "palletRef" field.
|
|
func PalletRefGT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGT(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefGTE applies the GTE predicate on the "palletRef" field.
|
|
func PalletRefGTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGTE(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefLT applies the LT predicate on the "palletRef" field.
|
|
func PalletRefLT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLT(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefLTE applies the LTE predicate on the "palletRef" field.
|
|
func PalletRefLTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLTE(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefContains applies the Contains predicate on the "palletRef" field.
|
|
func PalletRefContains(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContains(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefHasPrefix applies the HasPrefix predicate on the "palletRef" field.
|
|
func PalletRefHasPrefix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefHasSuffix applies the HasSuffix predicate on the "palletRef" field.
|
|
func PalletRefHasSuffix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefIsNil applies the IsNil predicate on the "palletRef" field.
|
|
func PalletRefIsNil() predicate.Dock {
|
|
return predicate.Dock(sql.FieldIsNull(FieldPalletRef))
|
|
}
|
|
|
|
// PalletRefNotNil applies the NotNil predicate on the "palletRef" field.
|
|
func PalletRefNotNil() predicate.Dock {
|
|
return predicate.Dock(sql.FieldNotNull(FieldPalletRef))
|
|
}
|
|
|
|
// PalletRefEqualFold applies the EqualFold predicate on the "palletRef" field.
|
|
func PalletRefEqualFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEqualFold(FieldPalletRef, v))
|
|
}
|
|
|
|
// PalletRefContainsFold applies the ContainsFold predicate on the "palletRef" field.
|
|
func PalletRefContainsFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContainsFold(FieldPalletRef, v))
|
|
}
|
|
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
func StatusEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusNEQ applies the NEQ predicate on the "status" field.
|
|
func StatusNEQ(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusIn applies the In predicate on the "status" field.
|
|
func StatusIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusNotIn applies the NotIn predicate on the "status" field.
|
|
func StatusNotIn(vs ...string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNotIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusGT applies the GT predicate on the "status" field.
|
|
func StatusGT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusGTE applies the GTE predicate on the "status" field.
|
|
func StatusGTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLT applies the LT predicate on the "status" field.
|
|
func StatusLT(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLTE applies the LTE predicate on the "status" field.
|
|
func StatusLTE(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusContains applies the Contains predicate on the "status" field.
|
|
func StatusContains(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContains(FieldStatus, v))
|
|
}
|
|
|
|
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
|
func StatusHasPrefix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldStatus, v))
|
|
}
|
|
|
|
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
|
func StatusHasSuffix(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldStatus, v))
|
|
}
|
|
|
|
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
|
func StatusEqualFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEqualFold(FieldStatus, v))
|
|
}
|
|
|
|
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
|
func StatusContainsFold(v string) predicate.Dock {
|
|
return predicate.Dock(sql.FieldContainsFold(FieldStatus, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
|
func CreatedAtEQ(v time.Time) predicate.Dock {
|
|
return predicate.Dock(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.Dock {
|
|
return predicate.Dock(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.Dock {
|
|
return predicate.Dock(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
|
func CreatedAtGT(v time.Time) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
|
func CreatedAtGTE(v time.Time) predicate.Dock {
|
|
return predicate.Dock(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
|
func CreatedAtLT(v time.Time) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
|
func CreatedAtLTE(v time.Time) predicate.Dock {
|
|
return predicate.Dock(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Dock) predicate.Dock {
|
|
return predicate.Dock(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Dock) predicate.Dock {
|
|
return predicate.Dock(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Dock) predicate.Dock {
|
|
return predicate.Dock(sql.NotPredicates(p))
|
|
}
|