多店铺需求
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user