- MES 新增损耗台账 loss_ledger,差异确认损耗接口 ConfirmReceiveLoss(按工单归集) - 备料清单 preparation:MES 按 日计划×工单×工位×物料 实时计算,WMS 只读展示 PreparationList - 退料闭环:N5 工位托盘守卫(未完成禁止退料)、退料 AGV 自动派车(JBT21 空位判定 + 托盘回收链路)、退料参考剩余量接口(应剩余=实备-已耗-已退-已损) - 新增 AGV 车辆状态表 agv_vehicle_state 及查询 - 整合接驳台/叫料池/库存锁既有闭环,清理 sql 目录注释生成脚本与 catalog,更新文档
410 lines
15 KiB
Go
410 lines
15 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package agvvehiclestate
|
|
|
|
import (
|
|
"bj_power_mes/ent/predicate"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// AgvCode applies equality check predicate on the "agv_code" field. It's identical to AgvCodeEQ.
|
|
func AgvCode(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldAgvCode, v))
|
|
}
|
|
|
|
// HasPallet applies equality check predicate on the "has_pallet" field. It's identical to HasPalletEQ.
|
|
func HasPallet(v bool) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldHasPallet, v))
|
|
}
|
|
|
|
// Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
|
|
func Source(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldSource, v))
|
|
}
|
|
|
|
// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
|
|
func UpdatedBy(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v int64) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
|
func Remark(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldRemark, v))
|
|
}
|
|
|
|
// AgvCodeEQ applies the EQ predicate on the "agv_code" field.
|
|
func AgvCodeEQ(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeNEQ applies the NEQ predicate on the "agv_code" field.
|
|
func AgvCodeNEQ(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNEQ(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeIn applies the In predicate on the "agv_code" field.
|
|
func AgvCodeIn(vs ...string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldIn(FieldAgvCode, vs...))
|
|
}
|
|
|
|
// AgvCodeNotIn applies the NotIn predicate on the "agv_code" field.
|
|
func AgvCodeNotIn(vs ...string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNotIn(FieldAgvCode, vs...))
|
|
}
|
|
|
|
// AgvCodeGT applies the GT predicate on the "agv_code" field.
|
|
func AgvCodeGT(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGT(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeGTE applies the GTE predicate on the "agv_code" field.
|
|
func AgvCodeGTE(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGTE(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeLT applies the LT predicate on the "agv_code" field.
|
|
func AgvCodeLT(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLT(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeLTE applies the LTE predicate on the "agv_code" field.
|
|
func AgvCodeLTE(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLTE(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeContains applies the Contains predicate on the "agv_code" field.
|
|
func AgvCodeContains(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldContains(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeHasPrefix applies the HasPrefix predicate on the "agv_code" field.
|
|
func AgvCodeHasPrefix(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldHasPrefix(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeHasSuffix applies the HasSuffix predicate on the "agv_code" field.
|
|
func AgvCodeHasSuffix(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldHasSuffix(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeEqualFold applies the EqualFold predicate on the "agv_code" field.
|
|
func AgvCodeEqualFold(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEqualFold(FieldAgvCode, v))
|
|
}
|
|
|
|
// AgvCodeContainsFold applies the ContainsFold predicate on the "agv_code" field.
|
|
func AgvCodeContainsFold(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldContainsFold(FieldAgvCode, v))
|
|
}
|
|
|
|
// HasPalletEQ applies the EQ predicate on the "has_pallet" field.
|
|
func HasPalletEQ(v bool) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldHasPallet, v))
|
|
}
|
|
|
|
// HasPalletNEQ applies the NEQ predicate on the "has_pallet" field.
|
|
func HasPalletNEQ(v bool) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNEQ(FieldHasPallet, v))
|
|
}
|
|
|
|
// SourceEQ applies the EQ predicate on the "source" field.
|
|
func SourceEQ(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldSource, v))
|
|
}
|
|
|
|
// SourceNEQ applies the NEQ predicate on the "source" field.
|
|
func SourceNEQ(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNEQ(FieldSource, v))
|
|
}
|
|
|
|
// SourceIn applies the In predicate on the "source" field.
|
|
func SourceIn(vs ...string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldIn(FieldSource, vs...))
|
|
}
|
|
|
|
// SourceNotIn applies the NotIn predicate on the "source" field.
|
|
func SourceNotIn(vs ...string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNotIn(FieldSource, vs...))
|
|
}
|
|
|
|
// SourceGT applies the GT predicate on the "source" field.
|
|
func SourceGT(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGT(FieldSource, v))
|
|
}
|
|
|
|
// SourceGTE applies the GTE predicate on the "source" field.
|
|
func SourceGTE(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGTE(FieldSource, v))
|
|
}
|
|
|
|
// SourceLT applies the LT predicate on the "source" field.
|
|
func SourceLT(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLT(FieldSource, v))
|
|
}
|
|
|
|
// SourceLTE applies the LTE predicate on the "source" field.
|
|
func SourceLTE(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLTE(FieldSource, v))
|
|
}
|
|
|
|
// SourceContains applies the Contains predicate on the "source" field.
|
|
func SourceContains(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldContains(FieldSource, v))
|
|
}
|
|
|
|
// SourceHasPrefix applies the HasPrefix predicate on the "source" field.
|
|
func SourceHasPrefix(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldHasPrefix(FieldSource, v))
|
|
}
|
|
|
|
// SourceHasSuffix applies the HasSuffix predicate on the "source" field.
|
|
func SourceHasSuffix(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldHasSuffix(FieldSource, v))
|
|
}
|
|
|
|
// SourceEqualFold applies the EqualFold predicate on the "source" field.
|
|
func SourceEqualFold(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEqualFold(FieldSource, v))
|
|
}
|
|
|
|
// SourceContainsFold applies the ContainsFold predicate on the "source" field.
|
|
func SourceContainsFold(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldContainsFold(FieldSource, v))
|
|
}
|
|
|
|
// UpdatedByEQ applies the EQ predicate on the "updated_by" field.
|
|
func UpdatedByEQ(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
|
|
func UpdatedByNEQ(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNEQ(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByIn applies the In predicate on the "updated_by" field.
|
|
func UpdatedByIn(vs ...string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldIn(FieldUpdatedBy, vs...))
|
|
}
|
|
|
|
// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
|
|
func UpdatedByNotIn(vs ...string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNotIn(FieldUpdatedBy, vs...))
|
|
}
|
|
|
|
// UpdatedByGT applies the GT predicate on the "updated_by" field.
|
|
func UpdatedByGT(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGT(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByGTE applies the GTE predicate on the "updated_by" field.
|
|
func UpdatedByGTE(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGTE(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByLT applies the LT predicate on the "updated_by" field.
|
|
func UpdatedByLT(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLT(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByLTE applies the LTE predicate on the "updated_by" field.
|
|
func UpdatedByLTE(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLTE(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByContains applies the Contains predicate on the "updated_by" field.
|
|
func UpdatedByContains(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldContains(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
|
|
func UpdatedByHasPrefix(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldHasPrefix(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
|
|
func UpdatedByHasSuffix(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldHasSuffix(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
|
|
func UpdatedByEqualFold(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEqualFold(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
|
|
func UpdatedByContainsFold(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldContainsFold(FieldUpdatedBy, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v int64) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v int64) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...int64) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...int64) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v int64) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v int64) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v int64) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v int64) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// RemarkEQ applies the EQ predicate on the "remark" field.
|
|
func RemarkEQ(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEQ(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
|
func RemarkNEQ(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNEQ(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkIn applies the In predicate on the "remark" field.
|
|
func RemarkIn(vs ...string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldIn(FieldRemark, vs...))
|
|
}
|
|
|
|
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
|
func RemarkNotIn(vs ...string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldNotIn(FieldRemark, vs...))
|
|
}
|
|
|
|
// RemarkGT applies the GT predicate on the "remark" field.
|
|
func RemarkGT(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGT(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkGTE applies the GTE predicate on the "remark" field.
|
|
func RemarkGTE(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldGTE(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkLT applies the LT predicate on the "remark" field.
|
|
func RemarkLT(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLT(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkLTE applies the LTE predicate on the "remark" field.
|
|
func RemarkLTE(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldLTE(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkContains applies the Contains predicate on the "remark" field.
|
|
func RemarkContains(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldContains(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
|
func RemarkHasPrefix(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldHasPrefix(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
|
func RemarkHasSuffix(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldHasSuffix(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
|
func RemarkEqualFold(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldEqualFold(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
|
func RemarkContainsFold(v string) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.FieldContainsFold(FieldRemark, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.AgvVehicleState) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.AgvVehicleState) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.AgvVehicleState) predicate.AgvVehicleState {
|
|
return predicate.AgvVehicleState(sql.NotPredicates(p))
|
|
}
|