主店员工修改店铺配置bug

This commit is contained in:
Tankaikai 2025-04-12 13:39:17 +08:00
parent b0a1db7976
commit ad803c859e
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
public Boolean edit(ShopInfoEditDTO shopInfoEditDTO) {
ShopInfo shopInfo;
if (!StpKit.USER.isAdmin()) {
shopInfo = queryChain().eq(ShopInfo::getId, StpKit.USER.getLoginIdAsLong()).one();
shopInfo = queryChain().eq(ShopInfo::getId, StpKit.USER.getShopId()).one();
} else {
shopInfo = getById(shopInfoEditDTO.getId());
}