소스 검색

fix:sop修改排序

jimmyyem 1 개월 전
부모
커밋
2003419c9c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      internal/logic/sop_stage/get_sop_stage_list_logic.go

+ 1 - 1
internal/logic/sop_stage/get_sop_stage_list_logic.go

@@ -39,7 +39,7 @@ func (l *GetSopStageListLogic) GetSopStageList(req *types.SopStageListReq) (*typ
 		return nil, dberrorhandler.DefaultEntError(l.Logger, fmt.Errorf("TaskID 不能为空"), req)
 	}
 	data, err := l.svcCtx.DB.SopStage.Query().Where(predicates...).Order(
-		ent.Desc(sopstage.FieldIndexSort), ent.Desc(sopstage.FieldUpdatedAt),
+		ent.Asc(sopstage.FieldIndexSort), ent.Desc(sopstage.FieldUpdatedAt),
 	).All(l.ctx)
 
 	if err != nil {