chore: 批量完成项目多模块迭代优化

1. 废弃半成品库存表并统一库存主表
2. 修复列表排序与搜索大小写不敏感问题
3. 新增用户最近登录时间、工单BOM名称字段
4. 完善角色管理、工位选择器功能
5. 增加拧紧数据补录、成品自动回流WMS能力
6. 统一导出时间范围校验规则
7. 丰富物料/备料单筛选条件
8. 调整菜单与权限命名适配产品型号业务
This commit is contained in:
SunYF
2026-09-08 11:44:04 +08:00
parent 06689970e2
commit e852c7cd37
96 changed files with 4528 additions and 542 deletions
+8
View File
@@ -27,6 +27,8 @@ const (
FieldWorkstationPassword = "workstation_password"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldLastLoginAt holds the string denoting the lastloginat field in the database.
FieldLastLoginAt = "last_login_at"
// FieldCreatedAt holds the string denoting the createdat field in the database.
FieldCreatedAt = "created_at"
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
@@ -45,6 +47,7 @@ var Columns = []string{
FieldCanLoginWorkstation,
FieldWorkstationPassword,
FieldStatus,
FieldLastLoginAt,
FieldCreatedAt,
FieldUpdatedAt,
}
@@ -129,6 +132,11 @@ func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()
}
// ByLastLoginAt orders the results by the lastLoginAt field.
func ByLastLoginAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldLastLoginAt, opts...).ToFunc()
}
// ByCreatedAt orders the results by the createdAt field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()