feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -33,6 +33,10 @@ const (
|
||||
FieldRemark = "remark"
|
||||
// FieldInspectionNo holds the string denoting the inspection_no field in the database.
|
||||
FieldInspectionNo = "inspection_no"
|
||||
// FieldOwnershipType holds the string denoting the ownership_type field in the database.
|
||||
FieldOwnershipType = "ownership_type"
|
||||
// FieldOwnershipNo holds the string denoting the ownership_no field in the database.
|
||||
FieldOwnershipNo = "ownership_no"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the inboundorder in the database.
|
||||
@@ -53,6 +57,8 @@ var Columns = []string{
|
||||
FieldOperator,
|
||||
FieldRemark,
|
||||
FieldInspectionNo,
|
||||
FieldOwnershipType,
|
||||
FieldOwnershipNo,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
@@ -73,6 +79,8 @@ var (
|
||||
DefaultManageMode int
|
||||
// DefaultQuantity holds the default value on creation for the "quantity" field.
|
||||
DefaultQuantity int
|
||||
// DefaultOwnershipType holds the default value on creation for the "ownership_type" field.
|
||||
DefaultOwnershipType string
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
)
|
||||
@@ -140,6 +148,16 @@ func ByInspectionNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldInspectionNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOwnershipType orders the results by the ownership_type field.
|
||||
func ByOwnershipType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOwnershipType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOwnershipNo orders the results by the ownership_no field.
|
||||
func ByOwnershipNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOwnershipNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user