refactor: 重构产线工位与备料流程,移除冗余字段
1. 移除工单、工件、日排产中的冗余工位组合/接驳台字段 2. 新增工位接驳台编码字段与唯一约束,关联WMS接驳台主数据 3. 重构日排产为工位产量分配模式,替代原接驳台列表 4. 新增备料单工位级字段与分批出库支持 5. 移除定时同步可生产数量,改为WMS实时拉取接口 6. 过滤操作日志,排除登录/退出相关日志 7. 调整仪表盘工序展示逻辑为今日派工路线 8. 新增接驳台维护菜单与基础数据
This commit is contained in:
@@ -23,8 +23,6 @@ type Workpiece struct {
|
||||
OrderNo string `json:"orderNo,omitempty"`
|
||||
// 工单ID
|
||||
WorkOrderId int `json:"workOrderId,omitempty"`
|
||||
// 工序组合,如 135
|
||||
ProcessSeq string `json:"processSeq,omitempty"`
|
||||
// 当前进行到的工序码
|
||||
CurrentProcess int `json:"currentProcess,omitempty"`
|
||||
// Status holds the value of the "status" field.
|
||||
@@ -47,7 +45,7 @@ func (*Workpiece) scanValues(columns []string) ([]any, error) {
|
||||
switch columns[i] {
|
||||
case workpiece.FieldID, workpiece.FieldWorkOrderId, workpiece.FieldCurrentProcess:
|
||||
values[i] = new(sql.NullInt64)
|
||||
case workpiece.FieldSn, workpiece.FieldOrderNo, workpiece.FieldProcessSeq, workpiece.FieldStatus:
|
||||
case workpiece.FieldSn, workpiece.FieldOrderNo, workpiece.FieldStatus:
|
||||
values[i] = new(sql.NullString)
|
||||
case workpiece.FieldOnlineAt, workpiece.FieldDoneAt, workpiece.FieldCreatedAt, workpiece.FieldUpdatedAt:
|
||||
values[i] = new(sql.NullTime)
|
||||
@@ -90,12 +88,6 @@ func (_m *Workpiece) assignValues(columns []string, values []any) error {
|
||||
} else if value.Valid {
|
||||
_m.WorkOrderId = int(value.Int64)
|
||||
}
|
||||
case workpiece.FieldProcessSeq:
|
||||
if value, ok := values[i].(*sql.NullString); !ok {
|
||||
return fmt.Errorf("unexpected type %T for field processSeq", values[i])
|
||||
} else if value.Valid {
|
||||
_m.ProcessSeq = value.String
|
||||
}
|
||||
case workpiece.FieldCurrentProcess:
|
||||
if value, ok := values[i].(*sql.NullInt64); !ok {
|
||||
return fmt.Errorf("unexpected type %T for field currentProcess", values[i])
|
||||
@@ -180,9 +172,6 @@ func (_m *Workpiece) String() string {
|
||||
builder.WriteString("workOrderId=")
|
||||
builder.WriteString(fmt.Sprintf("%v", _m.WorkOrderId))
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("processSeq=")
|
||||
builder.WriteString(_m.ProcessSeq)
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("currentProcess=")
|
||||
builder.WriteString(fmt.Sprintf("%v", _m.CurrentProcess))
|
||||
builder.WriteString(", ")
|
||||
|
||||
Reference in New Issue
Block a user