feat: 新增预警与附件模块,优化工位派工功能

1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑
2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能
3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工
4. 新增上传文件获取原文件名与大小的工具方法
5. 在系统管理菜单新增预警中心与附件中心入口
This commit is contained in:
SunYF
2026-09-14 16:31:08 +08:00
parent 0ab21b1234
commit 5c3b747a20
399 changed files with 147674 additions and 2213 deletions
+8
View File
@@ -3,7 +3,10 @@
package ent
import (
"bj_power_mes/ent/alert"
"bj_power_mes/ent/alertrule"
"bj_power_mes/ent/associationtrace"
"bj_power_mes/ent/attachment"
"bj_power_mes/ent/bomitem"
"bj_power_mes/ent/dailyplan"
"bj_power_mes/ent/eventlog"
@@ -25,6 +28,7 @@ import (
"bj_power_mes/ent/stationprocess"
"bj_power_mes/ent/stepcriterion"
"bj_power_mes/ent/stepdata"
"bj_power_mes/ent/torqueauditlog"
"bj_power_mes/ent/torquerecord"
"bj_power_mes/ent/user"
"bj_power_mes/ent/userstation"
@@ -101,7 +105,10 @@ var (
func checkColumn(t, c string) error {
initCheck.Do(func() {
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
alert.Table: alert.ValidColumn,
alertrule.Table: alertrule.ValidColumn,
associationtrace.Table: associationtrace.ValidColumn,
attachment.Table: attachment.ValidColumn,
bomitem.Table: bomitem.ValidColumn,
dailyplan.Table: dailyplan.ValidColumn,
eventlog.Table: eventlog.ValidColumn,
@@ -123,6 +130,7 @@ func checkColumn(t, c string) error {
stationprocess.Table: stationprocess.ValidColumn,
stepcriterion.Table: stepcriterion.ValidColumn,
stepdata.Table: stepdata.ValidColumn,
torqueauditlog.Table: torqueauditlog.ValidColumn,
torquerecord.Table: torquerecord.ValidColumn,
user.Table: user.ValidColumn,
userstation.Table: userstation.ValidColumn,