feat: 多系统新增扫码中间件与 AGV 对接,优化拧紧与退库流程

新增扫码中间件支持网络型扫码枪键盘注入,AGV 对接从 WMS 迁至 MES 统一管理;新增拧紧不合格人工处置与 PLC 对账机制,优化退库单关联与工位终端功能,同时清理旧 AGV 任务表,完善数据库与配置项。
This commit is contained in:
SunYF
2026-10-14 17:24:59 +08:00
parent 8e6048c64b
commit f65a52d9e1
170 changed files with 15415 additions and 10572 deletions
+28
View File
@@ -33,6 +33,12 @@ const (
FieldCreatedAt = "created_at"
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
FieldUpdatedAt = "updated_at"
// FieldTorqueNgPending holds the string denoting the torque_ng_pending field in the database.
FieldTorqueNgPending = "torque_ng_pending"
// FieldTorqueNgAt holds the string denoting the torque_ng_at field in the database.
FieldTorqueNgAt = "torque_ng_at"
// FieldTorqueNgBy holds the string denoting the torque_ng_by field in the database.
FieldTorqueNgBy = "torque_ng_by"
// Table holds the table name of the workpiece in the database.
Table = "workpiece"
)
@@ -50,6 +56,9 @@ var Columns = []string{
FieldDoneAt,
FieldCreatedAt,
FieldUpdatedAt,
FieldTorqueNgPending,
FieldTorqueNgAt,
FieldTorqueNgBy,
}
// ValidColumn reports if the column name is valid (part of the table columns).
@@ -79,6 +88,10 @@ var (
DefaultUpdatedAt func() time.Time
// UpdateDefaultUpdatedAt holds the default value on update for the "updatedAt" field.
UpdateDefaultUpdatedAt func() time.Time
// DefaultTorqueNgPending holds the default value on creation for the "torque_ng_pending" field.
DefaultTorqueNgPending bool
// TorqueNgByValidator is a validator for the "torque_ng_by" field. It is called by the builders before save.
TorqueNgByValidator func(string) error
// IDValidator is a validator for the "id" field. It is called by the builders before save.
IDValidator func(int) error
)
@@ -140,3 +153,18 @@ func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
}
// ByTorqueNgPending orders the results by the torque_ng_pending field.
func ByTorqueNgPending(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTorqueNgPending, opts...).ToFunc()
}
// ByTorqueNgAt orders the results by the torque_ng_at field.
func ByTorqueNgAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTorqueNgAt, opts...).ToFunc()
}
// ByTorqueNgBy orders the results by the torque_ng_by field.
func ByTorqueNgBy(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTorqueNgBy, opts...).ToFunc()
}