master:进货车列表放开档口账号权限;

pull/1121/head
liujiang 2025-09-20 11:24:23 +08:00
parent e31f0c025a
commit 57cc0fb1ed
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ public class ShoppingCartController extends XktBaseController {
return R.ok(BeanUtil.toBean(shopCartService.getEditInfo(shoppingCartId), ShopCartEditDetailResVO.class));
}
@PreAuthorize("@ss.hasAnyRoles('seller,agent')")
// 如果进货车不对档口开放权限,则商城首页商品详情显示会有问题
@PreAuthorize("@ss.hasAnyRoles('admin,general_admin,store,seller,agent')||@ss.hasSupplierSubRole()")
@ApiOperation(value = "进货车下单时及商品下单时获取商品列表", httpMethod = "POST", response = R.class)
@PostMapping("/list")
public R<List<ShopCartResVO>> getList(@Validated @RequestBody ShopCartListVO listVO) {