f
This commit is contained in:
@@ -201,18 +201,26 @@ func GetNextValidStatuses(currentStatus CertificationStatus) []CertificationStat
|
||||
nextStatusMap := map[CertificationStatus][]CertificationStatus{
|
||||
StatusPending: {
|
||||
StatusInfoSubmitted,
|
||||
// 管理员/系统可直接完成认证
|
||||
StatusCompleted,
|
||||
},
|
||||
StatusInfoSubmitted: {
|
||||
StatusEnterpriseVerified,
|
||||
StatusInfoRejected,
|
||||
// 管理员/系统可直接完成认证
|
||||
StatusCompleted,
|
||||
},
|
||||
StatusEnterpriseVerified: {
|
||||
StatusContractApplied,
|
||||
// 管理员/系统可直接完成认证(无合同场景)
|
||||
StatusCompleted,
|
||||
},
|
||||
StatusContractApplied: {
|
||||
StatusContractSigned,
|
||||
StatusContractRejected,
|
||||
StatusContractExpired,
|
||||
// 管理员/系统可在合同流程中直接完成认证
|
||||
StatusCompleted,
|
||||
},
|
||||
StatusContractSigned: {
|
||||
StatusCompleted, // 可以转换到完成状态
|
||||
@@ -222,12 +230,18 @@ func GetNextValidStatuses(currentStatus CertificationStatus) []CertificationStat
|
||||
},
|
||||
StatusInfoRejected: {
|
||||
StatusInfoSubmitted, // 可以重新提交
|
||||
// 管理员/系统可直接标记为完成
|
||||
StatusCompleted,
|
||||
},
|
||||
StatusContractRejected: {
|
||||
StatusEnterpriseVerified, // 重置到企业认证状态
|
||||
// 管理员/系统可直接标记为完成
|
||||
StatusCompleted,
|
||||
},
|
||||
StatusContractExpired: {
|
||||
StatusEnterpriseVerified, // 重置到企业认证状态
|
||||
// 管理员/系统可直接标记为完成
|
||||
StatusCompleted,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user