feat: 完成客户第12条需求+多系统改造
1. 新增预警表添加工单号字段,支持按工单号检索预警 2. 添加工单过滤在制品/绩效报表/预警中心查询 3. 补全WMS台账字段口径与权限配置 4. 修复备料单与数量不符处理流程 5. 新增配送进度/库位联动/自动出库功能 6. 修复AGV配送状态更新逻辑 7. 优化退料与库存管理细节
This commit is contained in:
@@ -33,6 +33,16 @@ const (
|
||||
FieldCause = "cause"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldHandleType holds the string denoting the handletype field in the database.
|
||||
FieldHandleType = "handle_type"
|
||||
// FieldHandleDocNo holds the string denoting the handledocno field in the database.
|
||||
FieldHandleDocNo = "handle_doc_no"
|
||||
// FieldHandleNote holds the string denoting the handlenote field in the database.
|
||||
FieldHandleNote = "handle_note"
|
||||
// FieldHandledBy holds the string denoting the handledby field in the database.
|
||||
FieldHandledBy = "handled_by"
|
||||
// FieldHandledAt holds the string denoting the handledat field in the database.
|
||||
FieldHandledAt = "handled_at"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
FieldOperator = "operator"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
@@ -56,6 +66,11 @@ var Columns = []string{
|
||||
FieldDiffQty,
|
||||
FieldCause,
|
||||
FieldStatus,
|
||||
FieldHandleType,
|
||||
FieldHandleDocNo,
|
||||
FieldHandleNote,
|
||||
FieldHandledBy,
|
||||
FieldHandledAt,
|
||||
FieldOperator,
|
||||
FieldCreatedAt,
|
||||
FieldResolvedAt,
|
||||
@@ -104,6 +119,24 @@ var (
|
||||
DefaultStatus string
|
||||
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
StatusValidator func(string) error
|
||||
// DefaultHandleType holds the default value on creation for the "handleType" field.
|
||||
DefaultHandleType string
|
||||
// HandleTypeValidator is a validator for the "handleType" field. It is called by the builders before save.
|
||||
HandleTypeValidator func(string) error
|
||||
// DefaultHandleDocNo holds the default value on creation for the "handleDocNo" field.
|
||||
DefaultHandleDocNo string
|
||||
// HandleDocNoValidator is a validator for the "handleDocNo" field. It is called by the builders before save.
|
||||
HandleDocNoValidator func(string) error
|
||||
// DefaultHandleNote holds the default value on creation for the "handleNote" field.
|
||||
DefaultHandleNote string
|
||||
// HandleNoteValidator is a validator for the "handleNote" field. It is called by the builders before save.
|
||||
HandleNoteValidator func(string) error
|
||||
// DefaultHandledBy holds the default value on creation for the "handledBy" field.
|
||||
DefaultHandledBy string
|
||||
// HandledByValidator is a validator for the "handledBy" field. It is called by the builders before save.
|
||||
HandledByValidator func(string) error
|
||||
// DefaultHandledAt holds the default value on creation for the "handledAt" field.
|
||||
DefaultHandledAt int64
|
||||
// DefaultOperator holds the default value on creation for the "operator" field.
|
||||
DefaultOperator string
|
||||
// OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
@@ -172,6 +205,31 @@ func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHandleType orders the results by the handleType field.
|
||||
func ByHandleType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHandleType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHandleDocNo orders the results by the handleDocNo field.
|
||||
func ByHandleDocNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHandleDocNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHandleNote orders the results by the handleNote field.
|
||||
func ByHandleNote(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHandleNote, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHandledBy orders the results by the handledBy field.
|
||||
func ByHandledBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHandledBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHandledAt orders the results by the handledAt field.
|
||||
func ByHandledAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHandledAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOperator orders the results by the operator field.
|
||||
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOperator, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user