refactor: 重构产线工位与备料流程,移除冗余字段
1. 移除工单、工件、日排产中的冗余工位组合/接驳台字段 2. 新增工位接驳台编码字段与唯一约束,关联WMS接驳台主数据 3. 重构日排产为工位产量分配模式,替代原接驳台列表 4. 新增备料单工位级字段与分批出库支持 5. 移除定时同步可生产数量,改为WMS实时拉取接口 6. 过滤操作日志,排除登录/退出相关日志 7. 调整仪表盘工序展示逻辑为今日派工路线 8. 新增接驳台维护菜单与基础数据
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user