refactor: 重构产线工位与备料流程,移除冗余字段

1. 移除工单、工件、日排产中的冗余工位组合/接驳台字段
2. 新增工位接驳台编码字段与唯一约束,关联WMS接驳台主数据
3. 重构日排产为工位产量分配模式,替代原接驳台列表
4. 新增备料单工位级字段与分批出库支持
5. 移除定时同步可生产数量,改为WMS实时拉取接口
6. 过滤操作日志,排除登录/退出相关日志
7. 调整仪表盘工序展示逻辑为今日派工路线
8. 新增接驳台维护菜单与基础数据
This commit is contained in:
SunYF
2026-09-19 07:50:21 +08:00
parent 543655d441
commit 37f10d3a13
156 changed files with 4489 additions and 1285 deletions
-70
View File
@@ -69,11 +69,6 @@ func WorkOrderId(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldWorkOrderId, v))
}
// ProcessSeq applies equality check predicate on the "processSeq" field. It's identical to ProcessSeqEQ.
func ProcessSeq(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldProcessSeq, v))
}
// CurrentProcess applies equality check predicate on the "currentProcess" field. It's identical to CurrentProcessEQ.
func CurrentProcess(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldCurrentProcess, v))
@@ -284,71 +279,6 @@ func WorkOrderIdNotNil() predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotNull(FieldWorkOrderId))
}
// ProcessSeqEQ applies the EQ predicate on the "processSeq" field.
func ProcessSeqEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldProcessSeq, v))
}
// ProcessSeqNEQ applies the NEQ predicate on the "processSeq" field.
func ProcessSeqNEQ(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNEQ(FieldProcessSeq, v))
}
// ProcessSeqIn applies the In predicate on the "processSeq" field.
func ProcessSeqIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldIn(FieldProcessSeq, vs...))
}
// ProcessSeqNotIn applies the NotIn predicate on the "processSeq" field.
func ProcessSeqNotIn(vs ...string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldNotIn(FieldProcessSeq, vs...))
}
// ProcessSeqGT applies the GT predicate on the "processSeq" field.
func ProcessSeqGT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGT(FieldProcessSeq, v))
}
// ProcessSeqGTE applies the GTE predicate on the "processSeq" field.
func ProcessSeqGTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldGTE(FieldProcessSeq, v))
}
// ProcessSeqLT applies the LT predicate on the "processSeq" field.
func ProcessSeqLT(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLT(FieldProcessSeq, v))
}
// ProcessSeqLTE applies the LTE predicate on the "processSeq" field.
func ProcessSeqLTE(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldLTE(FieldProcessSeq, v))
}
// ProcessSeqContains applies the Contains predicate on the "processSeq" field.
func ProcessSeqContains(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContains(FieldProcessSeq, v))
}
// ProcessSeqHasPrefix applies the HasPrefix predicate on the "processSeq" field.
func ProcessSeqHasPrefix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasPrefix(FieldProcessSeq, v))
}
// ProcessSeqHasSuffix applies the HasSuffix predicate on the "processSeq" field.
func ProcessSeqHasSuffix(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldHasSuffix(FieldProcessSeq, v))
}
// ProcessSeqEqualFold applies the EqualFold predicate on the "processSeq" field.
func ProcessSeqEqualFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEqualFold(FieldProcessSeq, v))
}
// ProcessSeqContainsFold applies the ContainsFold predicate on the "processSeq" field.
func ProcessSeqContainsFold(v string) predicate.Workpiece {
return predicate.Workpiece(sql.FieldContainsFold(FieldProcessSeq, v))
}
// CurrentProcessEQ applies the EQ predicate on the "currentProcess" field.
func CurrentProcessEQ(v int) predicate.Workpiece {
return predicate.Workpiece(sql.FieldEQ(FieldCurrentProcess, v))
-12
View File
@@ -19,8 +19,6 @@ const (
FieldOrderNo = "order_no"
// FieldWorkOrderId holds the string denoting the workorderid field in the database.
FieldWorkOrderId = "work_order_id"
// FieldProcessSeq holds the string denoting the processseq field in the database.
FieldProcessSeq = "process_seq"
// FieldCurrentProcess holds the string denoting the currentprocess field in the database.
FieldCurrentProcess = "current_process"
// FieldStatus holds the string denoting the status field in the database.
@@ -43,7 +41,6 @@ var Columns = []string{
FieldSn,
FieldOrderNo,
FieldWorkOrderId,
FieldProcessSeq,
FieldCurrentProcess,
FieldStatus,
FieldOnlineAt,
@@ -69,10 +66,6 @@ var (
DefaultOrderNo string
// OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
OrderNoValidator func(string) error
// DefaultProcessSeq holds the default value on creation for the "processSeq" field.
DefaultProcessSeq string
// ProcessSeqValidator is a validator for the "processSeq" field. It is called by the builders before save.
ProcessSeqValidator func(string) error
// DefaultStatus holds the default value on creation for the "status" field.
DefaultStatus string
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
@@ -110,11 +103,6 @@ func ByWorkOrderId(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldWorkOrderId, opts...).ToFunc()
}
// ByProcessSeq orders the results by the processSeq field.
func ByProcessSeq(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldProcessSeq, opts...).ToFunc()
}
// ByCurrentProcess orders the results by the currentProcess field.
func ByCurrentProcess(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCurrentProcess, opts...).ToFunc()