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:
@@ -104,11 +104,6 @@ func ProjectNo(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProductSerial applies equality check predicate on the "productSerial" field. It's identical to ProductSerialEQ.
|
||||
func ProductSerial(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// CreatedBy applies equality check predicate on the "createdBy" field. It's identical to CreatedByEQ.
|
||||
func CreatedBy(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldCreatedBy, v))
|
||||
@@ -704,71 +699,6 @@ func ProjectNoContainsFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContainsFold(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProductSerialEQ applies the EQ predicate on the "productSerial" field.
|
||||
func ProductSerialEQ(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialNEQ applies the NEQ predicate on the "productSerial" field.
|
||||
func ProductSerialNEQ(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNEQ(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialIn applies the In predicate on the "productSerial" field.
|
||||
func ProductSerialIn(vs ...string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldIn(FieldProductSerial, vs...))
|
||||
}
|
||||
|
||||
// ProductSerialNotIn applies the NotIn predicate on the "productSerial" field.
|
||||
func ProductSerialNotIn(vs ...string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNotIn(FieldProductSerial, vs...))
|
||||
}
|
||||
|
||||
// ProductSerialGT applies the GT predicate on the "productSerial" field.
|
||||
func ProductSerialGT(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGT(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialGTE applies the GTE predicate on the "productSerial" field.
|
||||
func ProductSerialGTE(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGTE(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialLT applies the LT predicate on the "productSerial" field.
|
||||
func ProductSerialLT(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLT(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialLTE applies the LTE predicate on the "productSerial" field.
|
||||
func ProductSerialLTE(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLTE(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialContains applies the Contains predicate on the "productSerial" field.
|
||||
func ProductSerialContains(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContains(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialHasPrefix applies the HasPrefix predicate on the "productSerial" field.
|
||||
func ProductSerialHasPrefix(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldHasPrefix(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialHasSuffix applies the HasSuffix predicate on the "productSerial" field.
|
||||
func ProductSerialHasSuffix(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldHasSuffix(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialEqualFold applies the EqualFold predicate on the "productSerial" field.
|
||||
func ProductSerialEqualFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEqualFold(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialContainsFold applies the ContainsFold predicate on the "productSerial" field.
|
||||
func ProductSerialContainsFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContainsFold(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// CreatedByEQ applies the EQ predicate on the "createdBy" field.
|
||||
func CreatedByEQ(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldCreatedBy, v))
|
||||
|
||||
@@ -33,8 +33,6 @@ const (
|
||||
FieldOwnershipType = "ownership_type"
|
||||
// FieldProjectNo holds the string denoting the projectno field in the database.
|
||||
FieldProjectNo = "project_no"
|
||||
// FieldProductSerial holds the string denoting the productserial field in the database.
|
||||
FieldProductSerial = "product_serial"
|
||||
// FieldCreatedBy holds the string denoting the createdby field in the database.
|
||||
FieldCreatedBy = "created_by"
|
||||
// FieldFlowCombination holds the string denoting the flowcombination field in the database.
|
||||
@@ -74,7 +72,6 @@ var Columns = []string{
|
||||
FieldContractNo,
|
||||
FieldOwnershipType,
|
||||
FieldProjectNo,
|
||||
FieldProductSerial,
|
||||
FieldCreatedBy,
|
||||
FieldFlowCombination,
|
||||
FieldProductProcessId,
|
||||
@@ -127,10 +124,6 @@ var (
|
||||
DefaultProjectNo string
|
||||
// ProjectNoValidator is a validator for the "projectNo" field. It is called by the builders before save.
|
||||
ProjectNoValidator func(string) error
|
||||
// DefaultProductSerial holds the default value on creation for the "productSerial" field.
|
||||
DefaultProductSerial string
|
||||
// ProductSerialValidator is a validator for the "productSerial" field. It is called by the builders before save.
|
||||
ProductSerialValidator func(string) error
|
||||
// DefaultCreatedBy holds the default value on creation for the "createdBy" field.
|
||||
DefaultCreatedBy string
|
||||
// CreatedByValidator is a validator for the "createdBy" field. It is called by the builders before save.
|
||||
@@ -209,11 +202,6 @@ func ByProjectNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProjectNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProductSerial orders the results by the productSerial field.
|
||||
func ByProductSerial(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProductSerial, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedBy orders the results by the createdBy field.
|
||||
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedBy, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user