多店铺需求
This commit is contained in:
parent
c4cdc83ec3
commit
86fb4ccd3d
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue