|
|
@ -17,6 +17,7 @@ use app\common\model\store\StoreCategory; |
|
|
|
use app\common\repositories\store\StoreCategoryRepository; |
|
|
|
use app\common\repositories\store\StoreCategoryRepository; |
|
|
|
use app\common\repositories\system\merchant\MerchantRepository; |
|
|
|
use app\common\repositories\system\merchant\MerchantRepository; |
|
|
|
use crmeb\services\VicWordService; |
|
|
|
use crmeb\services\VicWordService; |
|
|
|
|
|
|
|
use think\facade\Log; |
|
|
|
|
|
|
|
|
|
|
|
class SpuDao extends BaseDao |
|
|
|
class SpuDao extends BaseDao |
|
|
|
{ |
|
|
|
{ |
|
|
@ -39,10 +40,13 @@ class SpuDao extends BaseDao |
|
|
|
} |
|
|
|
} |
|
|
|
}elseif($where['order'] == 'star'){ |
|
|
|
}elseif($where['order'] == 'star'){ |
|
|
|
$order = 'S.star DESC,S.rank DESC'; |
|
|
|
$order = 'S.star DESC,S.rank DESC'; |
|
|
|
|
|
|
|
}elseif($where['order'] == 'product_id'){ |
|
|
|
|
|
|
|
$order = 'S.product_id ASC'; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
$order = 'S.'. (($where['order'] !== '') ?$where['order']: 'star' ).' DESC'; |
|
|
|
$order = 'S.'. (($where['order'] !== '') ?$where['order']: 'star' ).' DESC'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Log::info("Order is ". $order); |
|
|
|
|
|
|
|
|
|
|
|
$order .= ',S.create_time DESC'; |
|
|
|
$order .= ',S.create_time DESC'; |
|
|
|
if(isset($where['order']) && $where['order'] === 'none'){ |
|
|
|
if(isset($where['order']) && $where['order'] === 'none'){ |
|
|
|