装扮连表加搜索
This commit is contained in:
@@ -700,9 +700,15 @@ class Activities extends adminApi
|
||||
* 装扮列表
|
||||
*/
|
||||
public function decorate_list(){
|
||||
$type = input('type', '');
|
||||
$where = [];
|
||||
if($type){
|
||||
$where['b.type'] = $type;
|
||||
}
|
||||
$decorate_list = db::name('vs_decorate_price')->alias('a')
|
||||
->field('a.id,a.did,b.type,a.day,a.price,b.title,b.base_image')
|
||||
->where('b.delete_time',0)
|
||||
->where($where)
|
||||
->join('vs_decorate b','a.did = b.did')
|
||||
->select();
|
||||
$return_data = [];
|
||||
|
||||
Reference in New Issue
Block a user