Commit 4f2c0fd1 authored by zhz's avatar zhz

saleprice

parent e8f83b81
...@@ -204,8 +204,9 @@ class StoreServiceModel extends \Business\AbstractModel{ ...@@ -204,8 +204,9 @@ class StoreServiceModel extends \Business\AbstractModel{
$tempGoods = $goodsCommonDAO->getGoodsList(array('goods_commonid in('.implode(',',$goodsIds).')'),'goods_name,goods_image,goods_price as goodsPrice,goods_marketprice,goods_commonid'); $tempGoods = $goodsCommonDAO->getGoodsList(array('goods_commonid in('.implode(',',$goodsIds).')'),'goods_name,goods_image,goods_price as goodsPrice,goods_marketprice,goods_commonid');
}else{ }else{
$activities = array_keys($activities); $activities = array_keys($activities);
$tempGoods = $goodsCommonDAO->getListWithSale(array('han_goods_common.goods_commonid in('.implode(',',$goodsIds).')'),'goods_name,goods_image,goods_price,goods_marketprice,han_goods_common.goods_commonid',$activities); $tempGoods = $goodsCommonDAO->getListWithSale(array('han_goods_common.goods_commonid in('.implode(',',$goodsIds).')'),'goods_name,goods_image,goods_price,goods_marketprice,han_goods_common.goods_commonid,IFNULL(discount_price,han_goods_common.goods_price) AS goodsPrice',$activities);
} }
if($tempGoods && $tempStcs){ if($tempGoods && $tempStcs){
$stcs = []; $stcs = [];
foreach ($tempStcs as $v){ foreach ($tempStcs as $v){
......
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