活动 传参 shopId

This commit is contained in:
2025-02-28 16:42:56 +08:00
parent 7aa726d0a0
commit 0c8a998006
4 changed files with 9 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ import java.util.List;
/**
* 店铺充值活动管理
*
* @author ww
* @description
*/
@@ -29,8 +30,8 @@ public class ShopActivateController {
*/
@SaAdminCheckPermission("activate:list")
@GetMapping
public CzgResult<List<ShopActivateDTO>> detail() {
return CzgResult.success(shopActivateService.getList());
public CzgResult<List<ShopActivateDTO>> detail(@RequestParam(required = false) Long shopId) {
return CzgResult.success(shopActivateService.getList(shopId));
}
/**

View File

@@ -6,6 +6,7 @@ import com.czg.resp.CzgResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@@ -25,8 +26,8 @@ public class UserShopActivateController {
* 店铺充值活动列表
*/
@GetMapping
public CzgResult<List<ShopActivateDTO>> detail() {
return CzgResult.success(shopActivateService.getList());
public CzgResult<List<ShopActivateDTO>> detail(@RequestParam(required = false) Long shopId) {
return CzgResult.success(shopActivateService.getList(shopId));
}
}