This commit is contained in:
parent
f03f172a8d
commit
b2b2f9df38
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue