fix: 第1批 M8、M13、M14 审批提交失败终态与退款关闭类终态定位
- 审批核心在实例进入提交失败的同一事务内写 submission_failed 决策投递与终态事件,消费入口单独放行 - 核销(4)、退款(7)、扫码注册(3)、资料资格(4)、线下充值(7)、佣金提现(5)新增“审批提交失败”终态并释放预占/冻结 - 三处恢复入口不再重放提交失败;退款关闭类终态按审批尝试定位退款单(M13) - 核销列表与详情批量返回审批提交状态;筛选、字段说明、状态名称、退款导出加入新状态 - 迁移 000239 放宽五张业务表状态约束与决策投递取值约束(测试库已执行 up/down/up) - OpenSpec Change fix-approval-submission-failure-terminal:18/26,测试部署后端到端验证与存量补数据待完成
This commit is contained in:
@@ -248,6 +248,8 @@ const (
|
||||
WithdrawalStatusApproved = 2 // 已通过
|
||||
WithdrawalStatusRejected = 3 // 已拒绝
|
||||
WithdrawalStatusPaid = 4 // 已到账
|
||||
// WithdrawalStatusSubmissionFailed 提交企业微信审批被明确拒绝,提现终止并释放冻结金额。
|
||||
WithdrawalStatusSubmissionFailed = 5
|
||||
)
|
||||
|
||||
// 提现方式
|
||||
@@ -416,7 +418,7 @@ func GetOrderCommissionResultName(result int) string {
|
||||
}
|
||||
|
||||
// GetRefundStatusName 获取退款申请状态名称
|
||||
// 1=待审批, 2=已通过, 3=已拒绝, 4=已退回, 5=原路退款处理中, 6=原路退款失败
|
||||
// 1=待审批, 2=已通过, 3=已拒绝, 4=已退回, 5=原路退款处理中, 6=原路退款失败, 7=审批提交失败
|
||||
func GetRefundStatusName(status int) string {
|
||||
switch status {
|
||||
case 1:
|
||||
@@ -431,13 +433,15 @@ func GetRefundStatusName(status int) string {
|
||||
return "原路退款处理中"
|
||||
case 6:
|
||||
return "原路退款失败"
|
||||
case 7:
|
||||
return ApprovalSubmissionFailedStatusName
|
||||
default:
|
||||
return "未知"
|
||||
}
|
||||
}
|
||||
|
||||
// GetWithdrawalStatusName 获取提现申请状态名称
|
||||
// 对应 WithdrawalStatus* 常量:1=待审核, 2=已通过, 3=已拒绝, 4=已到账
|
||||
// 对应 WithdrawalStatus* 常量:1=待审核, 2=已通过, 3=已拒绝, 4=已到账, 5=审批提交失败
|
||||
func GetWithdrawalStatusName(status int) string {
|
||||
switch status {
|
||||
case WithdrawalStatusPending:
|
||||
@@ -448,6 +452,8 @@ func GetWithdrawalStatusName(status int) string {
|
||||
return "已拒绝"
|
||||
case WithdrawalStatusPaid:
|
||||
return "已到账"
|
||||
case WithdrawalStatusSubmissionFailed:
|
||||
return ApprovalSubmissionFailedStatusName
|
||||
default:
|
||||
return "未知"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user