...
|
...
|
@@ -78,10 +78,16 @@ class TestController extends WeChatBaseController |
|
|
->where(['l.area_id'=>$param['id']])
|
|
|
->distinct(true)
|
|
|
->field('l.row')
|
|
|
->order('l.row','dec')
|
|
|
->column('l.row');
|
|
|
foreach ($row as $k=>$v){
|
|
|
$arr[$v]=Db::name('light')->where('row',$v)->select()->toArray();
|
|
|
$arr[$v]=Db::name('light')->alias('l')->join('light_order lo','lo.light_id=l.id')->where('l.row',$v)->select()->toArray();
|
|
|
}
|
|
|
var_dump($arr);
|
|
|
$this->assign('empty',$param['empty']);
|
|
|
$this->assign('list',$arr);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
//财神详情
|
|
|
public function
|
|
|
} |
...
|
...
|
|