feat: 新增工件生命周期状态流水表及工单状态流转逻辑
新增工件生命周期状态流水表,记录所有工件状态变更动作,替代原半成品质检计数源 调整工单状态流转,将「下发工单」与「开始执行」合并为「下发并开工」,自动启用关联排产 新增工件物理位置字段,区分业务位置与实际物理工位,解决工位对账滞后问题 统一物料类别处理,避免 WMS 同步时覆盖合法值或错误设置为 0 移除已废弃的返修状态,更新相关显示与逻辑
This commit is contained in:
@@ -21,6 +21,8 @@ const (
|
||||
FieldWorkOrderId = "work_order_id"
|
||||
// FieldCurrentStationNo holds the string denoting the currentstationno field in the database.
|
||||
FieldCurrentStationNo = "current_station_no"
|
||||
// FieldAtStationNo holds the string denoting the atstationno field in the database.
|
||||
FieldAtStationNo = "at_station_no"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldOnlineAt holds the string denoting the onlineat field in the database.
|
||||
@@ -42,6 +44,7 @@ var Columns = []string{
|
||||
FieldOrderNo,
|
||||
FieldWorkOrderId,
|
||||
FieldCurrentStationNo,
|
||||
FieldAtStationNo,
|
||||
FieldStatus,
|
||||
FieldOnlineAt,
|
||||
FieldDoneAt,
|
||||
@@ -108,6 +111,11 @@ func ByCurrentStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCurrentStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAtStationNo orders the results by the atStationNo field.
|
||||
func ByAtStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAtStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user