Files
bj_power/bj_power_mes/ent/agvvehiclestate/agvvehiclestate.go
T
SunYF 46fcb59079 feat: 退料闭环定稿(损耗台账/备料清单/退料AGV自动派车/剩余量参考)+ 工位托盘守卫
- MES 新增损耗台账 loss_ledger,差异确认损耗接口 ConfirmReceiveLoss(按工单归集)
- 备料清单 preparation:MES 按 日计划×工单×工位×物料 实时计算,WMS 只读展示 PreparationList
- 退料闭环:N5 工位托盘守卫(未完成禁止退料)、退料 AGV 自动派车(JBT21 空位判定 + 托盘回收链路)、退料参考剩余量接口(应剩余=实备-已耗-已退-已损)
- 新增 AGV 车辆状态表 agv_vehicle_state 及查询
- 整合接驳台/叫料池/库存锁既有闭环,清理 sql 目录注释生成脚本与 catalog,更新文档
2026-11-04 19:06:03 +08:00

109 lines
3.8 KiB
Go

// 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()
}