This commit is contained in:
2025-10-23 15:59:18 +08:00
parent 500860109a
commit 0104323702
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ public class ProductController {
@OperationLog("商品-列表")
//@SaAdminCheckPermission("product:list")
public CzgResult<List<ProductDTO>> getProductList(ProductDTO param) {
Long shopId = StpKit.USER.getShopId(0L);
Long shopId = StpKit.USER.getShopId();
param.setShopId(shopId);
List<ProductDTO> productList = productService.getProductCacheList(param);
productService.refreshProductStock(param, productList);

View File

@@ -11,9 +11,9 @@
AND is_del = 0
AND status = 2
AND NOW() BETWEEN valid_start_time AND valid_end_time
# AND (use_time_type = 'all' OR
<!-- AND (use_time_type = 'all' OR
# (use_time_type = 'custom' AND TIME(NOW()) BETWEEN use_start_time AND use_end_time))
# AND use_days LIKE CONCAT('%', #{useDay}, '%')
# AND use_days LIKE CONCAT('%', #{useDay}, '%') -->
ORDER BY sort DESC,
update_time DESC,
create_time DESC