|
@@ -91,7 +91,7 @@ public class ApiGoodsController extends ApiBaseAction {
|
|
|
public Object sku(@LoginUser UserVo loginUser, Long goodsId) {
|
|
|
Map<String, Object> resultObj = new HashMap();
|
|
|
//
|
|
|
- GoodsVo goodsVo = goodsService.queryObject(goodsId);
|
|
|
+ GoodsVo goodsVo = goodsService.queryObjectByStoreId(goodsId, getStoreId());
|
|
|
//
|
|
|
List<Map> goodsSpecificationEntityList = goodsSpecificationService.queryByGoodsIdGroupByNames(goodsId);
|
|
|
//
|
|
@@ -100,7 +100,7 @@ public class ApiGoodsController extends ApiBaseAction {
|
|
|
param.put("store_id", getStoreId());
|
|
|
List<ProductVo> productEntityList = productService.queryList(param);
|
|
|
|
|
|
- CartVo cartVo = cartService.queryObjectByGoodsIdAndUserId(goodsId,getUserId());
|
|
|
+ CartVo cartVo = cartService.queryObjectByGoodsIdAndUserId(goodsId, getUserId(), getStoreId());
|
|
|
if(cartVo == null){
|
|
|
resultObj.put("cartNumber", 0);
|
|
|
}else{
|
|
@@ -528,7 +528,7 @@ public class ApiGoodsController extends ApiBaseAction {
|
|
|
List<Integer> relatedGoods = new ArrayList();
|
|
|
if (null == relatedGoodsIds || relatedGoods.size() < 1) {
|
|
|
//查找同分类下的商品
|
|
|
- GoodsVo goodsCategory = goodsService.queryObject(id);
|
|
|
+ GoodsVo goodsCategory = goodsService.queryObjectByStoreId(id, getStoreId());
|
|
|
if (null != goodsCategory) {
|
|
|
Map paramRelated = new HashMap();
|
|
|
paramRelated.put("store_id", getStoreId());
|