fix:算法请求调整
This commit is contained in:
		
							parent
							
								
									a401d1e4c9
								
							
						
					
					
						commit
						a1bed56d19
					
				@ -943,7 +943,7 @@ func (d *defaultOrder) List(ctx context.Context, in *ListReq) (res *ListRes, err
 | 
			
		||||
	}
 | 
			
		||||
	var orderDetailList []gmodel.OrderDetail
 | 
			
		||||
	if count > 0 {
 | 
			
		||||
		m := model.Scopes(handlers.Paginate(&in.CurrentPage, &in.PerPage))
 | 
			
		||||
		m := model.Scopes(handlers.Paginate(&in.CurrentPage, &in.PerPage)).Order("id desc")
 | 
			
		||||
		result := m.Find(&orderList)
 | 
			
		||||
		if result.Error != nil {
 | 
			
		||||
			logc.Errorf(ctx, "order list failed, err: %v", err)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user