浏览代码

排序问题处理

WH01243 1 年之前
父节点
当前提交
ae244fa20c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      service/integralService.go

+ 2 - 1
service/integralService.go

@@ -358,7 +358,8 @@ func (service *IntegralService) IntegralDetailedCheck(data entity.FlowJSON) ([]*
 		Join("left", "point_type pt", "flow.pointType=pt.code").
 		Where("flow.userId = ? AND flow.appId = ?", data.UserId, data.AppId).
 		And(searchCode).
-		Desc("flow.createTime,flow.id").
+		Desc("flow.createTime").
+		Asc("flow.id").
 		Limit(int(data.PageSize), (int(data.Page-1))*int(data.PageSize)).
 		FindAndCount(&flowList)
 	var flowReq []*integral.Point