多店铺需求
This commit is contained in:
@@ -243,7 +243,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
|
|||||||
public Boolean edit(ShopInfoEditDTO shopInfoEditDTO) {
|
public Boolean edit(ShopInfoEditDTO shopInfoEditDTO) {
|
||||||
ShopInfo shopInfo;
|
ShopInfo shopInfo;
|
||||||
if (!StpKit.USER.isAdmin()) {
|
if (!StpKit.USER.isAdmin()) {
|
||||||
shopInfo = queryChain().eq(ShopInfo::getId, StpKit.USER.getLoginIdAsLong()).one();
|
shopInfo = queryChain().eq(ShopInfo::getId, shopInfoEditDTO.getId()).one();
|
||||||
} else {
|
} else {
|
||||||
shopInfo = getById(StpKit.USER.getLoginIdAsLong());
|
shopInfo = getById(StpKit.USER.getLoginIdAsLong());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user