多店铺需求

This commit is contained in:
Tankaikai 2025-04-08 15:04:00 +08:00
parent c4cdc83ec3
commit 86fb4ccd3d
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,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, shopInfoEditDTO.getId()).one();
} else {
shopInfo = getById(StpKit.USER.getLoginIdAsLong());
}