多店铺需求

This commit is contained in:
Tankaikai
2025-04-07 18:11:48 +08:00
parent 1eafd54536
commit 18b2c536f3
5 changed files with 15 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
package com.czg.controller.admin;
import com.czg.account.dto.ShopBranchDTO;
import com.czg.account.param.ShopBranchParam;
import com.czg.account.service.ShopBranchService;
import com.czg.log.annotation.OperationLog;
import com.czg.resp.CzgResult;
@@ -27,9 +28,10 @@ public class ShopBranchController {
*/
@GetMapping("page")
@OperationLog("分店管理-分页")
public CzgResult<Page<ShopBranchDTO>> getBranchPage() {
public CzgResult<Page<ShopBranchDTO>> getBranchPage(ShopBranchParam param) {
Long shopId = StpKit.USER.getShopId(0L);
Page<ShopBranchDTO> data = shopBranchService.findPage(shopId);
param.setShopId(shopId);
Page<ShopBranchDTO> data = shopBranchService.findPage(param);
return CzgResult.success(data);
}