Commit f40ba069 authored by zhz's avatar zhz

goods

parent 5875548d
......@@ -182,12 +182,11 @@ 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'];
}
}
$order[] = ['goodsCommonid','DESC'];
$saleSort ? $ttl = \Our\ApiConst::oneHour : \Our\ApiConst::oneDaySecond;
if($activities){
$activities = array_keys($activities);
......@@ -487,11 +486,7 @@ 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'];
}
$order[] = ['goodsCommonId','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