This commit is contained in:
Leufolium 2024-07-11 15:01:02 +08:00
parent f03f172a8d
commit b2b2f9df38
3 changed files with 3 additions and 6 deletions

View File

@ -102,7 +102,6 @@ func (p *StreamerAuthApprovalBasic) OpDeleteBatch(ctx *gin.Context, ids []int64)
//2.原有审核申请标记删除后转存到历史表
for _, streamerauthapprovalbasic := range list {
streamerauthapprovalbasic.DelFlag = goproto.Int64(consts.Deleted)
streamerauthapprovalbasic.ApproveStatus = goproto.Int64(consts.StreamerAuthApprovalBasicApprove_Rejected)
}
err = p.store.CreateBatchStreamerAuthApprovalBasicHis(ctx, list)
if err != nil {

View File

@ -134,8 +134,6 @@ func (p *StreamerAuthApprovalDetails) OpDeleteBatchByMids(ctx *gin.Context, mids
//2.原有审核申请标记删除后转存到历史表
for _, streamerauthapprovaldetails := range list {
streamerauthapprovaldetails.DelFlag = goproto.Int64(consts.Deleted)
streamerauthapprovaldetails.ApproveStatus = goproto.Int64(consts.StreamerAuthApprovalDetailsApprove_Rejected)
streamerauthapprovaldetails.Status = goproto.Int64(consts.StreamerAuthApprovalDetails_Rejected)
}
err = p.store.CreateBatchStreamerAuthApprovalDetailsHis(ctx, list)
if err != nil {

View File

@ -1957,12 +1957,12 @@ func (s *Service) OpGetStreamerAuthApprovalBasicHisList(ctx *gin.Context, req *s
func (s *Service) OpApproveStreamerAuthApprovalBasic(ctx *gin.Context, req *streamerauthapprovalbasicproto.OpApproveReq) (ec errcode.ErrCode) {
ec = errcode.ErrCodeStreamerAuthApprovalBasicSrvOk
//状态流转0-等待复审 → 3-跟进中3-跟进中 → 1-通过/2-拒绝
//状态流转0-等待复审 → 3-跟进中/2-拒绝3-跟进中 → 1-通过/2-拒绝
destApproveStatus := util.DerefInt64(req.ApproveStatus)
currentApproveStatus := int64(-1)
if destApproveStatus == consts.StreamerAuthApprovalBasicApprove_Approving {
if destApproveStatus == consts.StreamerAuthApprovalBasicApprove_Approving || destApproveStatus == consts.StreamerAuthApprovalBasicApprove_Rejected {
currentApproveStatus = consts.StreamerAuthApprovalBasicApprove_Waiting
} else if destApproveStatus == consts.StreamerAuthApprovalBasicApprove_Passed || destApproveStatus == consts.StreamerAuthApprovalBasicApprove_Rejected {
} else if destApproveStatus == consts.StreamerAuthApprovalBasicApprove_Passed {
currentApproveStatus = consts.StreamerAuthApprovalBasicApprove_Approving
}