diff --git a/internal/v2/logic/third/supply.go b/internal/v2/logic/third/supply.go index 446e082..795716c 100644 --- a/internal/v2/logic/third/supply.go +++ b/internal/v2/logic/third/supply.go @@ -68,21 +68,6 @@ func (s *supplyLogic) Lists(search SupplySearch, page bean.Page) (lists []skuIte mysql.Db.Model(thirdPartySupplies).Where(where).Count(&total) if page.HasPage(total) { mysql.Db.Where(where).Offset(page.GetStart()).Limit(page.GetLimit()).Order("id desc").Find(&thirdPartySupplies) - for _, thirdPartySupply := range thirdPartySupplies { - lists = append(lists, skuItem{ - Id: thirdPartySupply.Id, - Name: thirdPartySupply.Name, - ImgUrl: thirdPartySupply.ImgUrl, - SupplyStatus: thirdPartySupply.SupplyStatus, - SupplySkuId: thirdPartySupply.SupplySkuId, - FirstCategoryName: thirdPartySupply.FirstCategoryName, - SecondCategoryName: thirdPartySupply.SecondCategoryName, - ThirdCategoryName: thirdPartySupply.ThirdCategoryName, - BrandName: thirdPartySupply.BrandName, - Price: thirdPartySupply.Price, - GuidePrice: thirdPartySupply.GuidePrice, - }) - } } } for _, thirdPartySupply := range thirdPartySupplies {