浏览代码

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 {