Explorar el Código

排序问题处理

WH01243 hace 1 año
padre
commit
ae244fa20c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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").
 		Join("left", "point_type pt", "flow.pointType=pt.code").
 		Where("flow.userId = ? AND flow.appId = ?", data.UserId, data.AppId).
 		Where("flow.userId = ? AND flow.appId = ?", data.UserId, data.AppId).
 		And(searchCode).
 		And(searchCode).
-		Desc("flow.createTime,flow.id").
+		Desc("flow.createTime").
+		Asc("flow.id").
 		Limit(int(data.PageSize), (int(data.Page-1))*int(data.PageSize)).
 		Limit(int(data.PageSize), (int(data.Page-1))*int(data.PageSize)).
 		FindAndCount(&flowList)
 		FindAndCount(&flowList)
 	var flowReq []*integral.Point
 	var flowReq []*integral.Point