存酒接口修改
This commit is contained in:
parent
327a5cf8f6
commit
04f9457916
|
|
@ -51,7 +51,7 @@ public class ShopStorageGoodServiceImpl extends ServiceImpl<ShopStorageGoodMappe
|
|||
public Boolean saveInfo(Long shopId, ShopStorageGoodDTO shopStorageGoodDTO) {
|
||||
ShopStorageGood shopStorageGood = BeanUtil.copyProperties(shopStorageGoodDTO, ShopStorageGood.class);
|
||||
if (shopStorageGoodDTO.getSource() == 1) {
|
||||
Product product = productService.getOne(new QueryWrapper().eq(Product::getShopId, shopId).eq(Product::getId, shopStorageGoodDTO.getId()));
|
||||
Product product = productService.getOne(new QueryWrapper().eq(Product::getShopId, shopId).eq(Product::getId, shopStorageGoodDTO.getProdId()));
|
||||
if (product == null) {
|
||||
throw new ApiNotPrintException("商品不存在");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue