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
+12
View File
@@ -27,6 +27,8 @@ const (
FieldIsBuiltin = "is_builtin"
// FieldHasDock holds the string denoting the hasdock field in the database.
FieldHasDock = "has_dock"
// FieldDockCode holds the string denoting the dockcode field in the database.
FieldDockCode = "dock_code"
// FieldCreatedAt holds the string denoting the createdat field in the database.
FieldCreatedAt = "created_at"
// Table holds the table name of the station in the database.
@@ -43,6 +45,7 @@ var Columns = []string{
FieldStatus,
FieldIsBuiltin,
FieldHasDock,
FieldDockCode,
FieldCreatedAt,
}
@@ -73,6 +76,10 @@ var (
DefaultIsBuiltin bool
// DefaultHasDock holds the default value on creation for the "hasDock" field.
DefaultHasDock bool
// DefaultDockCode holds the default value on creation for the "dockCode" field.
DefaultDockCode string
// DockCodeValidator is a validator for the "dockCode" field. It is called by the builders before save.
DockCodeValidator func(string) error
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
DefaultCreatedAt func() time.Time
// IDValidator is a validator for the "id" field. It is called by the builders before save.
@@ -122,6 +129,11 @@ func ByHasDock(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldHasDock, opts...).ToFunc()
}
// ByDockCode orders the results by the dockCode field.
func ByDockCode(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDockCode, opts...).ToFunc()
}
// ByCreatedAt orders the results by the createdAt field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
+70
View File
@@ -89,6 +89,11 @@ func HasDock(v bool) predicate.Station {
return predicate.Station(sql.FieldEQ(FieldHasDock, v))
}
// DockCode applies equality check predicate on the "dockCode" field. It's identical to DockCodeEQ.
func DockCode(v string) predicate.Station {
return predicate.Station(sql.FieldEQ(FieldDockCode, v))
}
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Station {
return predicate.Station(sql.FieldEQ(FieldCreatedAt, v))
@@ -399,6 +404,71 @@ func HasDockNEQ(v bool) predicate.Station {
return predicate.Station(sql.FieldNEQ(FieldHasDock, v))
}
// DockCodeEQ applies the EQ predicate on the "dockCode" field.
func DockCodeEQ(v string) predicate.Station {
return predicate.Station(sql.FieldEQ(FieldDockCode, v))
}
// DockCodeNEQ applies the NEQ predicate on the "dockCode" field.
func DockCodeNEQ(v string) predicate.Station {
return predicate.Station(sql.FieldNEQ(FieldDockCode, v))
}
// DockCodeIn applies the In predicate on the "dockCode" field.
func DockCodeIn(vs ...string) predicate.Station {
return predicate.Station(sql.FieldIn(FieldDockCode, vs...))
}
// DockCodeNotIn applies the NotIn predicate on the "dockCode" field.
func DockCodeNotIn(vs ...string) predicate.Station {
return predicate.Station(sql.FieldNotIn(FieldDockCode, vs...))
}
// DockCodeGT applies the GT predicate on the "dockCode" field.
func DockCodeGT(v string) predicate.Station {
return predicate.Station(sql.FieldGT(FieldDockCode, v))
}
// DockCodeGTE applies the GTE predicate on the "dockCode" field.
func DockCodeGTE(v string) predicate.Station {
return predicate.Station(sql.FieldGTE(FieldDockCode, v))
}
// DockCodeLT applies the LT predicate on the "dockCode" field.
func DockCodeLT(v string) predicate.Station {
return predicate.Station(sql.FieldLT(FieldDockCode, v))
}
// DockCodeLTE applies the LTE predicate on the "dockCode" field.
func DockCodeLTE(v string) predicate.Station {
return predicate.Station(sql.FieldLTE(FieldDockCode, v))
}
// DockCodeContains applies the Contains predicate on the "dockCode" field.
func DockCodeContains(v string) predicate.Station {
return predicate.Station(sql.FieldContains(FieldDockCode, v))
}
// DockCodeHasPrefix applies the HasPrefix predicate on the "dockCode" field.
func DockCodeHasPrefix(v string) predicate.Station {
return predicate.Station(sql.FieldHasPrefix(FieldDockCode, v))
}
// DockCodeHasSuffix applies the HasSuffix predicate on the "dockCode" field.
func DockCodeHasSuffix(v string) predicate.Station {
return predicate.Station(sql.FieldHasSuffix(FieldDockCode, v))
}
// DockCodeEqualFold applies the EqualFold predicate on the "dockCode" field.
func DockCodeEqualFold(v string) predicate.Station {
return predicate.Station(sql.FieldEqualFold(FieldDockCode, v))
}
// DockCodeContainsFold applies the ContainsFold predicate on the "dockCode" field.
func DockCodeContainsFold(v string) predicate.Station {
return predicate.Station(sql.FieldContainsFold(FieldDockCode, v))
}
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtEQ(v time.Time) predicate.Station {
return predicate.Station(sql.FieldEQ(FieldCreatedAt, v))