Explorar o código

排序问题处理

WH01243 hai 1 ano
pai
achega
3f7e8583d7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      service/integralService.go

+ 1 - 1
service/integralService.go

@@ -358,7 +358,7 @@ 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").
+		Desc("flow.createTime,flow.id").
 		Limit(int(data.PageSize), (int(data.Page-1))*int(data.PageSize)).
 		FindAndCount(&flowList)
 	var flowReq []*integral.Point