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:
@@ -13,8 +13,6 @@ const (
|
||||
FieldID = "id"
|
||||
// FieldTaskNo holds the string denoting the task_no field in the database.
|
||||
FieldTaskNo = "task_no"
|
||||
// FieldHikTaskCode holds the string denoting the hik_task_code field in the database.
|
||||
FieldHikTaskCode = "hik_task_code"
|
||||
// FieldSourceDock holds the string denoting the source_dock field in the database.
|
||||
FieldSourceDock = "source_dock"
|
||||
// FieldTargetDock holds the string denoting the target_dock field in the database.
|
||||
@@ -33,6 +31,8 @@ const (
|
||||
FieldBizType = "biz_type"
|
||||
// FieldBizNo holds the string denoting the biz_no field in the database.
|
||||
FieldBizNo = "biz_no"
|
||||
// FieldTemplateType holds the string denoting the template_type field in the database.
|
||||
FieldTemplateType = "template_type"
|
||||
// FieldChainNo holds the string denoting the chain_no field in the database.
|
||||
FieldChainNo = "chain_no"
|
||||
// FieldAutoEnd holds the string denoting the auto_end field in the database.
|
||||
@@ -57,7 +57,6 @@ const (
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldTaskNo,
|
||||
FieldHikTaskCode,
|
||||
FieldSourceDock,
|
||||
FieldTargetDock,
|
||||
FieldMaterialsJSON,
|
||||
@@ -67,6 +66,7 @@ var Columns = []string{
|
||||
FieldKind,
|
||||
FieldBizType,
|
||||
FieldBizNo,
|
||||
FieldTemplateType,
|
||||
FieldChainNo,
|
||||
FieldAutoEnd,
|
||||
FieldAgvCode,
|
||||
@@ -90,10 +90,6 @@ func ValidColumn(column string) bool {
|
||||
var (
|
||||
// TaskNoValidator is a validator for the "task_no" field. It is called by the builders before save.
|
||||
TaskNoValidator func(string) error
|
||||
// DefaultHikTaskCode holds the default value on creation for the "hik_task_code" field.
|
||||
DefaultHikTaskCode string
|
||||
// HikTaskCodeValidator is a validator for the "hik_task_code" field. It is called by the builders before save.
|
||||
HikTaskCodeValidator func(string) error
|
||||
// DefaultSourceDock holds the default value on creation for the "source_dock" field.
|
||||
DefaultSourceDock string
|
||||
// SourceDockValidator is a validator for the "source_dock" field. It is called by the builders before save.
|
||||
@@ -130,6 +126,10 @@ var (
|
||||
DefaultBizNo string
|
||||
// BizNoValidator is a validator for the "biz_no" field. It is called by the builders before save.
|
||||
BizNoValidator func(string) error
|
||||
// DefaultTemplateType holds the default value on creation for the "template_type" field.
|
||||
DefaultTemplateType string
|
||||
// TemplateTypeValidator is a validator for the "template_type" field. It is called by the builders before save.
|
||||
TemplateTypeValidator func(string) error
|
||||
// DefaultChainNo holds the default value on creation for the "chain_no" field.
|
||||
DefaultChainNo string
|
||||
// ChainNoValidator is a validator for the "chain_no" field. It is called by the builders before save.
|
||||
@@ -169,11 +169,6 @@ func ByTaskNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTaskNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHikTaskCode orders the results by the hik_task_code field.
|
||||
func ByHikTaskCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHikTaskCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySourceDock orders the results by the source_dock field.
|
||||
func BySourceDock(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSourceDock, opts...).ToFunc()
|
||||
@@ -219,6 +214,11 @@ func ByBizNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBizNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTemplateType orders the results by the template_type field.
|
||||
func ByTemplateType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTemplateType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByChainNo orders the results by the chain_no field.
|
||||
func ByChainNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldChainNo, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user