Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
2397cc633d
|
|
@ -49,7 +49,7 @@ public class ShopInfoController {
|
|||
if (StpKit.USER.isAdmin() || StpKit.USER.getShopId().equals(id)) {
|
||||
return CzgResult.success(shopInfoService.detail(id));
|
||||
}
|
||||
return CzgResult.failure("店铺信息不存在");
|
||||
return CzgResult.success(shopInfoService.detail(StpKit.USER.getShopId()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class ShopStorageGoodServiceImpl extends ServiceImpl<ShopStorageGoodMappe
|
|||
|
||||
shopStorageGood.setName(product.getName());
|
||||
shopStorageGood.setImgUrl(product.getCoverImg());
|
||||
ShopProdUnit unit = shopProdUnitService.getOne(new QueryWrapper().eq(ShopProdUnit::getShopId, shopId).eq(ShopProdUnit::getId, product.getId()));
|
||||
ShopProdUnit unit = shopProdUnitService.getOne(new QueryWrapper().eq(ShopProdUnit::getShopId, shopId).eq(ShopProdUnit::getId, product.getUnitId()));
|
||||
shopStorageGood.setUnit(unit == null ? "" : unit.getName());
|
||||
}
|
||||
shopStorageGood.setShopId(shopId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue