Explorar o código

fix:sop修改排序

jimmyyem hai 1 mes
pai
achega
2003419c9c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {