feat: 退料闭环定稿(损耗台账/备料清单/退料AGV自动派车/剩余量参考)+ 工位托盘守卫
- MES 新增损耗台账 loss_ledger,差异确认损耗接口 ConfirmReceiveLoss(按工单归集) - 备料清单 preparation:MES 按 日计划×工单×工位×物料 实时计算,WMS 只读展示 PreparationList - 退料闭环:N5 工位托盘守卫(未完成禁止退料)、退料 AGV 自动派车(JBT21 空位判定 + 托盘回收链路)、退料参考剩余量接口(应剩余=实备-已耗-已退-已损) - 新增 AGV 车辆状态表 agv_vehicle_state 及查询 - 整合接驳台/叫料池/库存锁既有闭环,清理 sql 目录注释生成脚本与 catalog,更新文档
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package agvvehiclestate
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the agvvehiclestate type in the database.
|
||||
Label = "agv_vehicle_state"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldAgvCode holds the string denoting the agv_code field in the database.
|
||||
FieldAgvCode = "agv_code"
|
||||
// FieldHasPallet holds the string denoting the has_pallet field in the database.
|
||||
FieldHasPallet = "has_pallet"
|
||||
// FieldSource holds the string denoting the source field in the database.
|
||||
FieldSource = "source"
|
||||
// FieldUpdatedBy holds the string denoting the updated_by field in the database.
|
||||
FieldUpdatedBy = "updated_by"
|
||||
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
FieldRemark = "remark"
|
||||
// Table holds the table name of the agvvehiclestate in the database.
|
||||
Table = "agv_vehicle_state"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for agvvehiclestate fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldAgvCode,
|
||||
FieldHasPallet,
|
||||
FieldSource,
|
||||
FieldUpdatedBy,
|
||||
FieldUpdatedAt,
|
||||
FieldRemark,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// AgvCodeValidator is a validator for the "agv_code" field. It is called by the builders before save.
|
||||
AgvCodeValidator func(string) error
|
||||
// DefaultHasPallet holds the default value on creation for the "has_pallet" field.
|
||||
DefaultHasPallet bool
|
||||
// DefaultSource holds the default value on creation for the "source" field.
|
||||
DefaultSource string
|
||||
// SourceValidator is a validator for the "source" field. It is called by the builders before save.
|
||||
SourceValidator func(string) error
|
||||
// DefaultUpdatedBy holds the default value on creation for the "updated_by" field.
|
||||
DefaultUpdatedBy string
|
||||
// UpdatedByValidator is a validator for the "updated_by" field. It is called by the builders before save.
|
||||
UpdatedByValidator func(string) error
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
|
||||
DefaultUpdatedAt int64
|
||||
// DefaultRemark holds the default value on creation for the "remark" field.
|
||||
DefaultRemark string
|
||||
// RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
RemarkValidator func(string) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the AgvVehicleState queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAgvCode orders the results by the agv_code field.
|
||||
func ByAgvCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAgvCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHasPallet orders the results by the has_pallet field.
|
||||
func ByHasPallet(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHasPallet, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySource orders the results by the source field.
|
||||
func BySource(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSource, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedBy orders the results by the updated_by field.
|
||||
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updated_at field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRemark orders the results by the remark field.
|
||||
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRemark, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,409 @@
|
||||
// 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))
|
||||
}
|
||||
Reference in New Issue
Block a user