更新供应链查询
This commit is contained in:
parent
b97d9878b0
commit
df86becb41
@ -29,11 +29,15 @@ class SpuDao extends BaseDao
|
|||||||
{
|
{
|
||||||
$order = 'P.sort DESC';
|
$order = 'P.sort DESC';
|
||||||
if(isset($where['order'])){
|
if(isset($where['order'])){
|
||||||
if(in_array($where['order'], ['is_new', 'price_asc', 'price_desc', 'rate', 'sales'])){
|
if(in_array($where['order'], ['is_new', 'price_asc', 'price_desc', 'rate', 'sales','procure_price_asc','procure_price_desc'])){
|
||||||
if ($where['order'] == 'price_asc') {
|
if ($where['order'] == 'price_asc') {
|
||||||
$order = 'S.price ASC';
|
$order = 'S.price ASC';
|
||||||
} else if ($where['order'] == 'price_desc') {
|
} else if ($where['order'] == 'price_desc') {
|
||||||
$order = 'S.price DESC';
|
$order = 'S.price DESC';
|
||||||
|
} else if ($where['order'] == 'procure_price_asc') {
|
||||||
|
$order = 'S.procure_price ASC';
|
||||||
|
} else if ($where['order'] == 'procure_price_desc') {
|
||||||
|
$order = 'S.procure_price DESC';
|
||||||
} else {
|
} else {
|
||||||
$order = 'P.'.$where['order'] . ' DESC';
|
$order = 'P.'.$where['order'] . ' DESC';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user