BUG-20241119 #818
|
@ -147,7 +147,7 @@ type OpReviewReq struct {
|
|||
base.BaseRequest
|
||||
MomentIds []int64 `json:"moment_ids"`
|
||||
OpType int64 `json:"op_type"`
|
||||
Remarks string `json:"remarks"`
|
||||
ManuallyReviewOpinion string `json:"manually_review_opinion"`
|
||||
}
|
||||
|
||||
type OpReviewData struct {
|
||||
|
|
|
@ -2285,7 +2285,7 @@ func (s *Service) ApiUpdateMoment(ctx *gin.Context, req *momentproto.ApiUpdateRe
|
|||
Id: tasks[0].Id,
|
||||
ManuallyReviewStatus: goproto.Int64(consts.MomentManuallyReview_Waiting),
|
||||
ManuallyReviewOperator: goproto.Int64(0),
|
||||
Remarks: goproto.String(""),
|
||||
ManuallyReviewOpinion: goproto.String(""),
|
||||
}
|
||||
|
||||
if len(imageaudittasks) > 0 {
|
||||
|
|
|
@ -1504,7 +1504,7 @@ func (s *Service) OpReviewMoment(ctx *gin.Context, req *momentproto.OpReviewReq)
|
|||
err = _DefaultMomentAuditTask.OpUpdateByMomentIdsAndStatus(ctx, &dbstruct.MomentAuditTask{
|
||||
ManuallyReviewStatus: goproto.Int64(finalMomentAuditTaskStatus),
|
||||
ManuallyReviewOperator: goproto.Int64(req.BaseRequest.Mid),
|
||||
Remarks: goproto.String(req.Remarks),
|
||||
ManuallyReviewOpinion: goproto.String(req.ManuallyReviewOpinion),
|
||||
}, momentStrIds, consts.MomentManuallyReview_Waiting)
|
||||
if err != nil {
|
||||
logger.Error("_DefaultMomentAuditTask OpUpdateByMomentIdsAndStatus fail, req: %v, err: %v", util.ToJson(req), err)
|
||||
|
|
|
@ -276,7 +276,7 @@ func (s *Service) utilFillMomentsWithApiVOInfo(ctx *gin.Context, list []*dbstruc
|
|||
return
|
||||
}
|
||||
|
||||
// 4.获取审核信息
|
||||
// 4.获取审核信息1
|
||||
tasks, err := _DefaultMomentAuditTask.GetByMomentIds(ctx, momentIds)
|
||||
if err != nil {
|
||||
logger.Error("GetByMomentIds fail")
|
||||
|
@ -305,7 +305,7 @@ func (s *Service) utilFillMomentsWithApiVOInfo(ctx *gin.Context, list []*dbstruc
|
|||
// 填充审核信息
|
||||
vo.ImageAuditOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetImageAuditOpinion()
|
||||
vo.TextAuditOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetTextAuditOpinion()
|
||||
vo.ManuallyReviewOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetRemarks()
|
||||
vo.ManuallyReviewOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetManuallyReviewOpinion()
|
||||
|
||||
}
|
||||
|
||||
|
@ -358,7 +358,7 @@ func (s *Service) utilFillMomentsWithOpVOInfo(ctx *gin.Context, list []*dbstruct
|
|||
// 填充审核信息
|
||||
vo.ImageAuditOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetImageAuditOpinion()
|
||||
vo.TextAuditOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetTextAuditOpinion()
|
||||
vo.ManuallyReviewOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetRemarks()
|
||||
vo.ManuallyReviewOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetManuallyReviewOpinion()
|
||||
}
|
||||
|
||||
return
|
||||
|
|
|
@ -16,7 +16,7 @@ type MomentAuditTask struct {
|
|||
Status *int64 `json:"status" bson:"status"` // 是否已过期
|
||||
ManuallyReviewStatus *int64 `json:"manually_review_status" bson:"manually_review_status"` // 人工复审状态
|
||||
ManuallyReviewOperator *int64 `json:"manually_review_operator" bson:"manually_review_operator"` // 人工复审操作人
|
||||
Remarks *string `json:"remarks" bson:"remarks"` // 备注
|
||||
ManuallyReviewOpinion *string `json:"manually_review_opinion" bson:"manually_review_opinion"` // 备注
|
||||
Ct *int64 `json:"ct" bson:"ct"` // 创建时间
|
||||
Ut *int64 `json:"ut" bson:"ut"` // 更新时间
|
||||
DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记
|
||||
|
@ -65,9 +65,9 @@ func (p *MomentAuditTask) GetTextAuditOpinion() string {
|
|||
return *p.TextAuditOpinion
|
||||
}
|
||||
|
||||
func (p *MomentAuditTask) GetRemarks() string {
|
||||
if p == nil || p.Remarks == nil {
|
||||
func (p *MomentAuditTask) GetManuallyReviewOpinion() string {
|
||||
if p == nil || p.ManuallyReviewOpinion == nil {
|
||||
return ""
|
||||
}
|
||||
return *p.Remarks
|
||||
return *p.ManuallyReviewOpinion
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue