Commit 5875548d authored by zhz's avatar zhz

goods

parent 307981a0
......@@ -182,8 +182,10 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
}elseif ($type == 3){
if($attrStr || $activities){
$where[] = 'han_goods_common.goods_commonid in('.trim($ids,',').')';
$order[] = ['han_goods_common.goods_commonid','DESC'];
}else{
$where[] = 'goods_commonid in('.trim($ids,',').')';
$order[] = ['goods_commonid','DESC'];
}
}
$saleSort ? $ttl = \Our\ApiConst::oneHour : \Our\ApiConst::oneDaySecond;
......@@ -316,7 +318,6 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$order[] = ['eval_score','DESC'];
break;
}
$order[] = ['goods_commonid','DESC'];
return array($where,$order,$attrStr,$saleSort);
}
......@@ -486,7 +487,11 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$keyword !== '' && $where[] = "goods_name like '%{$keyword}%'";
list($_where,$order,$attrStr,$saleSort) = $this->getParam($attrValue,$minPrice,$maxPrice,$goodsSort);
$where = array_merge($where,$_where);
if($attrStr || $activities){
$order[] = ['han_goods_common.goods_commonid','DESC'];
}else{
$order[] = ['goods_commonid','DESC'];
}
$commonDAO = \DAO\GoodsCommonModel::getInstance();
$saleSort ? $ttl = \Our\ApiConst::oneHour : \Our\ApiConst::oneDaySecond;
if(!$activities){
......
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