chore: 批量完成项目多模块迭代优化
1. 废弃半成品库存表并统一库存主表 2. 修复列表排序与搜索大小写不敏感问题 3. 新增用户最近登录时间、工单BOM名称字段 4. 完善角色管理、工位选择器功能 5. 增加拧紧数据补录、成品自动回流WMS能力 6. 统一导出时间范围校验规则 7. 丰富物料/备料单筛选条件 8. 调整菜单与权限命名适配产品型号业务
This commit is contained in:
@@ -23,6 +23,8 @@ const (
|
||||
FieldUnit = "unit"
|
||||
// FieldDescription holds the string denoting the description field in the database.
|
||||
FieldDescription = "description"
|
||||
// FieldItemType holds the string denoting the item_type field in the database.
|
||||
FieldItemType = "item_type"
|
||||
// FieldManageMode holds the string denoting the manage_mode field in the database.
|
||||
FieldManageMode = "manage_mode"
|
||||
// FieldIsBatchManaged holds the string denoting the is_batch_managed field in the database.
|
||||
@@ -31,6 +33,8 @@ const (
|
||||
FieldIsSerialManaged = "is_serial_managed"
|
||||
// FieldTemplateCode holds the string denoting the template_code field in the database.
|
||||
FieldTemplateCode = "template_code"
|
||||
// FieldIsActive holds the string denoting the is_active field in the database.
|
||||
FieldIsActive = "is_active"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
|
||||
@@ -48,10 +52,12 @@ var Columns = []string{
|
||||
FieldSpec,
|
||||
FieldUnit,
|
||||
FieldDescription,
|
||||
FieldItemType,
|
||||
FieldManageMode,
|
||||
FieldIsBatchManaged,
|
||||
FieldIsSerialManaged,
|
||||
FieldTemplateCode,
|
||||
FieldIsActive,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
@@ -67,12 +73,16 @@ func ValidColumn(column string) bool {
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultItemType holds the default value on creation for the "item_type" field.
|
||||
DefaultItemType int
|
||||
// DefaultManageMode holds the default value on creation for the "manage_mode" field.
|
||||
DefaultManageMode int
|
||||
// DefaultIsBatchManaged holds the default value on creation for the "is_batch_managed" field.
|
||||
DefaultIsBatchManaged bool
|
||||
// DefaultIsSerialManaged holds the default value on creation for the "is_serial_managed" field.
|
||||
DefaultIsSerialManaged bool
|
||||
// DefaultIsActive holds the default value on creation for the "is_active" field.
|
||||
DefaultIsActive bool
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
|
||||
@@ -117,6 +127,11 @@ func ByDescription(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDescription, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByItemType orders the results by the item_type field.
|
||||
func ByItemType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldItemType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByManageMode orders the results by the manage_mode field.
|
||||
func ByManageMode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldManageMode, opts...).ToFunc()
|
||||
@@ -137,6 +152,11 @@ func ByTemplateCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTemplateCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByIsActive orders the results by the is_active field.
|
||||
func ByIsActive(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldIsActive, 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