多店铺需求
This commit is contained in:
parent
b8db432134
commit
5b58c59e95
|
|
@ -98,12 +98,14 @@ public class ShopInfoController {
|
||||||
@GetMapping("branchList")
|
@GetMapping("branchList")
|
||||||
public CzgResult<List<ShopBranchSelectDTO>> findShopBranch() {
|
public CzgResult<List<ShopBranchSelectDTO>> findShopBranch() {
|
||||||
Long shopId = StpKit.USER.getShopId(0L);
|
Long shopId = StpKit.USER.getShopId(0L);
|
||||||
List<ShopBranchSelectDTO> data = shopInfoService.findShopBranch(shopId);
|
Long headId = StpKit.USER.getHeadId();
|
||||||
|
List<ShopBranchSelectDTO> data = shopInfoService.findShopBranch(headId != null ? headId : shopId);
|
||||||
return CzgResult.success(data);
|
return CzgResult.success(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 切换店铺
|
* 切换店铺
|
||||||
|
*
|
||||||
* @param shopId 店铺ID
|
* @param shopId 店铺ID
|
||||||
*/
|
*/
|
||||||
@PostMapping("/change/{shopId}")
|
@PostMapping("/change/{shopId}")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue