feat: AGV点位锁与缓存迁移 + 工位终端去离线队列 + WMS出入库增强
【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 更新
This commit is contained in:
@@ -23,6 +23,8 @@ const (
|
||||
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.
|
||||
@@ -43,6 +45,7 @@ var Columns = []string{
|
||||
FieldLabel,
|
||||
FieldSeq,
|
||||
FieldStationNo,
|
||||
FieldCacheable,
|
||||
FieldCurrentSn,
|
||||
FieldOrderNo,
|
||||
FieldOccupied,
|
||||
@@ -72,6 +75,8 @@ var (
|
||||
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.
|
||||
@@ -123,6 +128,11 @@ 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()
|
||||
|
||||
@@ -74,6 +74,11 @@ func StationNo(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// Cacheable applies equality check predicate on the "cacheable" field. It's identical to CacheableEQ.
|
||||
func Cacheable(v bool) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldCacheable, v))
|
||||
}
|
||||
|
||||
// CurrentSn applies equality check predicate on the "currentSn" field. It's identical to CurrentSnEQ.
|
||||
func CurrentSn(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldCurrentSn, v))
|
||||
@@ -369,6 +374,16 @@ func StationNoLTE(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// CacheableEQ applies the EQ predicate on the "cacheable" field.
|
||||
func CacheableEQ(v bool) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldCacheable, v))
|
||||
}
|
||||
|
||||
// CacheableNEQ applies the NEQ predicate on the "cacheable" field.
|
||||
func CacheableNEQ(v bool) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldCacheable, v))
|
||||
}
|
||||
|
||||
// CurrentSnEQ applies the EQ predicate on the "currentSn" field.
|
||||
func CurrentSnEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldCurrentSn, v))
|
||||
|
||||
Reference in New Issue
Block a user