fix: 完成商务迁移复核与接口优化并清理历史资料

This commit is contained in:
Yvan
2026-11-04 14:45:02 +08:00
parent 5a96be6a79
commit 297e80827d
176 changed files with 6803 additions and 6002 deletions
+13 -5
View File
@@ -76,6 +76,14 @@ type AlertRecordRepo interface {
type AlertAction string
const (
AlertUnprocessed = 1
AlertProcessing = 2
AlertPendingAudit = 3
AlertAuditRejected = 4
AlertProcessed = 5
)
const (
AlertStart AlertAction = "start"
AlertSubmit AlertAction = "submit"
@@ -148,15 +156,15 @@ func alertTransition(status int, action AlertAction) (int, error) {
var message string
switch action {
case AlertStart:
from, to, message = 1, 2, "仅未处理状态的预警可开始处理"
from, to, message = AlertUnprocessed, AlertProcessing, "仅未处理状态的预警可开始处理"
case AlertSubmit:
from, to, message = 2, 3, "仅处理中状态的预警可提交审核"
from, to, message = AlertProcessing, AlertPendingAudit, "仅处理中状态的预警可提交审核"
case AlertApprove:
from, to, message = 3, 5, "仅待审核状态的预警可审核通过"
from, to, message = AlertPendingAudit, AlertProcessed, "仅待审核状态的预警可审核通过"
case AlertReject:
from, to, message = 3, 4, "仅待审核状态的预警可审核驳回"
from, to, message = AlertPendingAudit, AlertAuditRejected, "仅待审核状态的预警可审核驳回"
case AlertReprocess:
from, to, message = 4, 2, "仅审核驳回状态的预警可重新处理"
from, to, message = AlertAuditRejected, AlertProcessing, "仅审核驳回状态的预警可重新处理"
default:
return status, ErrAlertRecordInput
}