收音机 / 客户端 商品列表

This commit is contained in:
2026-04-09 16:54:57 +08:00
parent caec6b2d0f
commit 3448331b31
4 changed files with 32 additions and 78 deletions

View File

@@ -56,9 +56,6 @@ public class ProductController {
@Resource
private ShopSyncService shopSyncService;
@Resource
private UProductService uProductService;
@Resource
private ShopInfoService shopInfoService;
@@ -87,12 +84,8 @@ public class ProductController {
*/
@GetMapping("list")
@OperationLog("商品-列表")
//@SaAdminCheckPermission("product:list")
public CzgResult<List<ProductDTO>> getProductList(ProductDTO param) {
Long shopId = StpKit.USER.getShopId();
param.setShopId(shopId);
List<ProductDTO> productList = productService.getProductCacheList(param);
productList.forEach(prod -> prod.setIsSaleTime(uProductService.calcIsSaleTime(prod.getDays(), prod.getStartTime(), prod.getEndTime())));
public CzgResult<List<ProductDTO>> getProductList(@RequestParam Long categoryId) {
List<ProductDTO> productList = productService.getProductCacheList(StpKit.USER.getShopId(), categoryId);
return CzgResult.success(productList);
}