|
@@ -281,9 +281,9 @@ $config = array
|
|
|
'top_category_id' => array('yes-t_2.top_category_id'),
|
|
|
'second_category_id' => array('yes-t_2.second_category_id'),
|
|
|
'category_id' => array('yes-t_2.category_id'),
|
|
|
- 'status' => array('yes-t_2.status', 1),
|
|
|
- 'state' => array('yes-t_2.state', 1),
|
|
|
- 'state_1' => array('yes-t_1.state', 1),
|
|
|
+ 'state' => 'yes-t_2.state-1',
|
|
|
+ 'state_1' => 'yes-t_1.state-1',
|
|
|
+ 'status' => 'yes-t_2.status-1',
|
|
|
),
|
|
|
# 联表
|
|
|
'join' => array
|
|
@@ -298,7 +298,7 @@ $config = array
|
|
|
),
|
|
|
'type' => 'all',
|
|
|
//'order' => array('t_1.total_num`-t_1.`sell_num`' => 'desc', 't_2.reorder' => 'desc', 't_2.id' => 'desc', 't_2.price' => 'asc'),
|
|
|
- 'order' => 't_1.total_num-t_1.sell_num desc,t_2.reorder desc,t_2.id desc,t_2.price asc',
|
|
|
+ 'order' => array('t_1.total_num-t_1.sell_num desc,t_2.reorder desc,t_2.price asc,t_2.id ', 'desc'),
|
|
|
'page' => array(10, 'list'),
|
|
|
'col' => '*,t_2.name,t_2.cover,t_2.id as id,t_1.total_num-t_1.sell_num as total,t_1.sell_num',
|
|
|
),
|
|
@@ -316,9 +316,10 @@ $config = array
|
|
|
'top_category_id' => array('yes-t_2.top_category_id'),
|
|
|
'second_category_id' => array('yes-t_2.second_category_id'),
|
|
|
'category_id' => array('yes-t_2.category_id'),
|
|
|
- 'status' => array('yes-t_2.status', 1),
|
|
|
- 'state' => array('yes-t_2.state', 1),
|
|
|
- 'state_1' => array('yes-t_1.state', 1),
|
|
|
+ 'state' => 'yes-t_2.state-1',
|
|
|
+ 'state_1' => 'yes-t_1.state-1',
|
|
|
+ 'status' => 'yes-t_2.status-1',
|
|
|
+
|
|
|
),
|
|
|
# 联表
|
|
|
'join' => array
|