会员购买
This commit is contained in:
@@ -70,7 +70,7 @@ public class ShopStorageServiceImpl extends ServiceImpl<ShopStorageMapper, ShopS
|
||||
|
||||
@Override
|
||||
public Boolean add(Long shopId, ShopStorageAddDTO shopStorageAddDTO) {
|
||||
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getUserId, shopStorageAddDTO.getUserId()).eq(ShopUser::getShopId, shopId));
|
||||
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getUserId, shopStorageAddDTO.getUserId()).eq(ShopUser::getSourceShopId, shopId));
|
||||
if (shopUser == null) {
|
||||
throw new ApiNotPrintException("店铺用户不存在");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user