Commit 84e3ce78 authored by zhz's avatar zhz

recommendgoods

parent 66f7ff76
......@@ -203,8 +203,10 @@ class StoreServiceModel extends \Business\AbstractModel{
$storeClassDAO = \DAO\StoreGoodsClassModel::getInstance();
$tempStcs = $storeClassDAO->getList(array('store_id'=>$storeId),'stc_id,stc_name');
$storeClassGoodsDao = \DAO\StoreGoodsClassGoodsModel::getInstance();
$stcGoods = $storeClassGoodsDao->getList(array('store_id'=>$storeId),'stc_id,goods_common_id');
if($tempStcs) {
$storeClassGoodsDao = \DAO\StoreGoodsClassGoodsModel::getInstance();
$stcGoods = $storeClassGoodsDao->getList('stc_id in('.implode(',',array_column($tempStcs,'stc_id')).')','stc_id,goods_common_id');
}
$recommendGoods = [];
if($stcGoods){
$goodsIds = array_column($stcGoods,'goods_common_id');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment