|
@@ -122,7 +122,7 @@ class Info
|
|
|
$page['num'] = 10;
|
|
|
$where_sql = implode(' and ', $where_sql);
|
|
|
|
|
|
- $sql = 'SELECT t_2.* FROM `info_goods_'.$attr->config['name'].'` as t_1 Left Join `info_goods_info` AS t_2 ON t_1.`info_id`=t_2.`id` WHERE '.$where_sql.' order by t_2.`reorder` desc,t_2.`id` desc';
|
|
|
+ $sql = 'SELECT t_2.* FROM `{project}_goods_'.$attr->config['name'].'` as t_1 Left Join `{project}_goods_info` AS t_2 ON t_1.`info_id`=t_2.`id` WHERE '.$where_sql.' order by t_2.`reorder` desc,t_2.`id` desc';
|
|
|
|
|
|
$data = $attr->fetchAll($sql, array(), $page);
|
|
|
|