This commit is contained in:
jhc 2023-06-13 17:12:36 +08:00
parent 559f1e2b4d
commit 8064359d26

View File

@ -612,9 +612,9 @@ func MyAllWorkApprovals(in *approval.ListRequest) ([]*Approval, int64) {
queryApprovalCopy := &ApprovalCopy{UserId: in.UserID}
if in.ApprovalStatus > StatusFail { // 具体 的 阅读状态
if in.ApprovalStatus == 4 {
queryApprovalCopy.Status = StatusNeedViewed
queryApprovalCopy.Status = 1
} else if in.ApprovalStatus == 5 {
queryApprovalCopy.Status = StatusViewed
queryApprovalCopy.Status = 2
}
queryApproval.Status = StatusOk // 此处 为 阅读状态 表示 审批状态 为 StatusOk
}