【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 更新
155 lines
5.6 KiB
Go
155 lines
5.6 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package linepoint
|
|
|
|
import (
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
const (
|
|
// Label holds the string label denoting the linepoint type in the database.
|
|
Label = "line_point"
|
|
// FieldID holds the string denoting the id field in the database.
|
|
FieldID = "id"
|
|
// FieldPointType holds the string denoting the pointtype field in the database.
|
|
FieldPointType = "point_type"
|
|
// FieldPointNo holds the string denoting the pointno field in the database.
|
|
FieldPointNo = "point_no"
|
|
// FieldLabel holds the string denoting the label field in the database.
|
|
FieldLabel = "label"
|
|
// FieldSeq holds the string denoting the seq field in the database.
|
|
FieldSeq = "seq"
|
|
// FieldStationNo holds the string denoting the stationno field in the database.
|
|
FieldStationNo = "station_no"
|
|
// FieldCacheable holds the string denoting the cacheable field in the database.
|
|
FieldCacheable = "cacheable"
|
|
// FieldCurrentSn holds the string denoting the currentsn field in the database.
|
|
FieldCurrentSn = "current_sn"
|
|
// FieldOrderNo holds the string denoting the orderno field in the database.
|
|
FieldOrderNo = "order_no"
|
|
// FieldOccupied holds the string denoting the occupied field in the database.
|
|
FieldOccupied = "occupied"
|
|
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
|
|
FieldUpdatedAt = "updated_at"
|
|
// Table holds the table name of the linepoint in the database.
|
|
Table = "line_point"
|
|
)
|
|
|
|
// Columns holds all SQL columns for linepoint fields.
|
|
var Columns = []string{
|
|
FieldID,
|
|
FieldPointType,
|
|
FieldPointNo,
|
|
FieldLabel,
|
|
FieldSeq,
|
|
FieldStationNo,
|
|
FieldCacheable,
|
|
FieldCurrentSn,
|
|
FieldOrderNo,
|
|
FieldOccupied,
|
|
FieldUpdatedAt,
|
|
}
|
|
|
|
// 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 (
|
|
// PointTypeValidator is a validator for the "pointType" field. It is called by the builders before save.
|
|
PointTypeValidator func(string) error
|
|
// PointNoValidator is a validator for the "pointNo" field. It is called by the builders before save.
|
|
PointNoValidator func(string) error
|
|
// DefaultLabel holds the default value on creation for the "label" field.
|
|
DefaultLabel string
|
|
// LabelValidator is a validator for the "label" field. It is called by the builders before save.
|
|
LabelValidator func(string) error
|
|
// DefaultSeq holds the default value on creation for the "seq" field.
|
|
DefaultSeq int
|
|
// DefaultStationNo holds the default value on creation for the "stationNo" field.
|
|
DefaultStationNo int
|
|
// DefaultCacheable holds the default value on creation for the "cacheable" field.
|
|
DefaultCacheable bool
|
|
// DefaultCurrentSn holds the default value on creation for the "currentSn" field.
|
|
DefaultCurrentSn string
|
|
// CurrentSnValidator is a validator for the "currentSn" field. It is called by the builders before save.
|
|
CurrentSnValidator func(string) error
|
|
// DefaultOrderNo holds the default value on creation for the "orderNo" field.
|
|
DefaultOrderNo string
|
|
// OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
|
OrderNoValidator func(string) error
|
|
// DefaultOccupied holds the default value on creation for the "occupied" field.
|
|
DefaultOccupied bool
|
|
// DefaultUpdatedAt holds the default value on creation for the "updatedAt" field.
|
|
DefaultUpdatedAt func() time.Time
|
|
// UpdateDefaultUpdatedAt holds the default value on update for the "updatedAt" field.
|
|
UpdateDefaultUpdatedAt func() time.Time
|
|
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
|
IDValidator func(int) error
|
|
)
|
|
|
|
// OrderOption defines the ordering options for the LinePoint 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()
|
|
}
|
|
|
|
// ByPointType orders the results by the pointType field.
|
|
func ByPointType(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldPointType, opts...).ToFunc()
|
|
}
|
|
|
|
// ByPointNo orders the results by the pointNo field.
|
|
func ByPointNo(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldPointNo, opts...).ToFunc()
|
|
}
|
|
|
|
// ByLabel orders the results by the label field.
|
|
func ByLabel(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldLabel, opts...).ToFunc()
|
|
}
|
|
|
|
// BySeq orders the results by the seq field.
|
|
func BySeq(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldSeq, opts...).ToFunc()
|
|
}
|
|
|
|
// ByStationNo orders the results by the stationNo field.
|
|
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
|
}
|
|
|
|
// ByCacheable orders the results by the cacheable field.
|
|
func ByCacheable(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldCacheable, opts...).ToFunc()
|
|
}
|
|
|
|
// ByCurrentSn orders the results by the currentSn field.
|
|
func ByCurrentSn(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldCurrentSn, opts...).ToFunc()
|
|
}
|
|
|
|
// ByOrderNo orders the results by the orderNo field.
|
|
func ByOrderNo(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldOrderNo, opts...).ToFunc()
|
|
}
|
|
|
|
// ByOccupied orders the results by the occupied field.
|
|
func ByOccupied(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldOccupied, opts...).ToFunc()
|
|
}
|
|
|
|
// ByUpdatedAt orders the results by the updatedAt field.
|
|
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
|
}
|