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
+185
View File
@@ -58,6 +58,11 @@ func ManageMode(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldManageMode, v))
}
// Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.
func Category(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldCategory, v))
}
// MaterialCode applies equality check predicate on the "material_code" field. It's identical to MaterialCodeEQ.
func MaterialCode(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldMaterialCode, v))
@@ -118,6 +123,16 @@ func InboundNo(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldInboundNo, v))
}
// OrderNo applies equality check predicate on the "order_no" field. It's identical to OrderNoEQ.
func OrderNo(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldOrderNo, v))
}
// CompletedProcess applies equality check predicate on the "completed_process" field. It's identical to CompletedProcessEQ.
func CompletedProcess(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldCompletedProcess, v))
}
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func Remark(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldRemark, v))
@@ -173,6 +188,46 @@ func ManageModeLTE(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldManageMode, v))
}
// CategoryEQ applies the EQ predicate on the "category" field.
func CategoryEQ(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldCategory, v))
}
// CategoryNEQ applies the NEQ predicate on the "category" field.
func CategoryNEQ(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldCategory, v))
}
// CategoryIn applies the In predicate on the "category" field.
func CategoryIn(vs ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldCategory, vs...))
}
// CategoryNotIn applies the NotIn predicate on the "category" field.
func CategoryNotIn(vs ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldCategory, vs...))
}
// CategoryGT applies the GT predicate on the "category" field.
func CategoryGT(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldCategory, v))
}
// CategoryGTE applies the GTE predicate on the "category" field.
func CategoryGTE(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldCategory, v))
}
// CategoryLT applies the LT predicate on the "category" field.
func CategoryLT(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldCategory, v))
}
// CategoryLTE applies the LTE predicate on the "category" field.
func CategoryLTE(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldCategory, v))
}
// MaterialCodeEQ applies the EQ predicate on the "material_code" field.
func MaterialCodeEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldMaterialCode, v))
@@ -973,6 +1028,136 @@ func InboundNoContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldInboundNo, v))
}
// OrderNoEQ applies the EQ predicate on the "order_no" field.
func OrderNoEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldOrderNo, v))
}
// OrderNoNEQ applies the NEQ predicate on the "order_no" field.
func OrderNoNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldOrderNo, v))
}
// OrderNoIn applies the In predicate on the "order_no" field.
func OrderNoIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldOrderNo, vs...))
}
// OrderNoNotIn applies the NotIn predicate on the "order_no" field.
func OrderNoNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldOrderNo, vs...))
}
// OrderNoGT applies the GT predicate on the "order_no" field.
func OrderNoGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldOrderNo, v))
}
// OrderNoGTE applies the GTE predicate on the "order_no" field.
func OrderNoGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldOrderNo, v))
}
// OrderNoLT applies the LT predicate on the "order_no" field.
func OrderNoLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldOrderNo, v))
}
// OrderNoLTE applies the LTE predicate on the "order_no" field.
func OrderNoLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldOrderNo, v))
}
// OrderNoContains applies the Contains predicate on the "order_no" field.
func OrderNoContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldOrderNo, v))
}
// OrderNoHasPrefix applies the HasPrefix predicate on the "order_no" field.
func OrderNoHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldOrderNo, v))
}
// OrderNoHasSuffix applies the HasSuffix predicate on the "order_no" field.
func OrderNoHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldOrderNo, v))
}
// OrderNoEqualFold applies the EqualFold predicate on the "order_no" field.
func OrderNoEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldOrderNo, v))
}
// OrderNoContainsFold applies the ContainsFold predicate on the "order_no" field.
func OrderNoContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldOrderNo, v))
}
// CompletedProcessEQ applies the EQ predicate on the "completed_process" field.
func CompletedProcessEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldCompletedProcess, v))
}
// CompletedProcessNEQ applies the NEQ predicate on the "completed_process" field.
func CompletedProcessNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldCompletedProcess, v))
}
// CompletedProcessIn applies the In predicate on the "completed_process" field.
func CompletedProcessIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldCompletedProcess, vs...))
}
// CompletedProcessNotIn applies the NotIn predicate on the "completed_process" field.
func CompletedProcessNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldCompletedProcess, vs...))
}
// CompletedProcessGT applies the GT predicate on the "completed_process" field.
func CompletedProcessGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldCompletedProcess, v))
}
// CompletedProcessGTE applies the GTE predicate on the "completed_process" field.
func CompletedProcessGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldCompletedProcess, v))
}
// CompletedProcessLT applies the LT predicate on the "completed_process" field.
func CompletedProcessLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldCompletedProcess, v))
}
// CompletedProcessLTE applies the LTE predicate on the "completed_process" field.
func CompletedProcessLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldCompletedProcess, v))
}
// CompletedProcessContains applies the Contains predicate on the "completed_process" field.
func CompletedProcessContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldCompletedProcess, v))
}
// CompletedProcessHasPrefix applies the HasPrefix predicate on the "completed_process" field.
func CompletedProcessHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldCompletedProcess, v))
}
// CompletedProcessHasSuffix applies the HasSuffix predicate on the "completed_process" field.
func CompletedProcessHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldCompletedProcess, v))
}
// CompletedProcessEqualFold applies the EqualFold predicate on the "completed_process" field.
func CompletedProcessEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldCompletedProcess, v))
}
// CompletedProcessContainsFold applies the ContainsFold predicate on the "completed_process" field.
func CompletedProcessContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldCompletedProcess, v))
}
// RemarkEQ applies the EQ predicate on the "remark" field.
func RemarkEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldRemark, v))