...
|
...
|
@@ -44,11 +44,16 @@ class AdminWarningController extends AdminBaseController |
|
|
public function index()
|
|
|
{
|
|
|
//数据提取
|
|
|
$where=[];
|
|
|
if (cmf_get_current_admin_id()!=1){
|
|
|
$where['t.user_id']=cmf_get_current_admin_id();
|
|
|
};
|
|
|
$data=Db::name('warning')
|
|
|
->alias('w')
|
|
|
->join('light l','w.light_id=l.id')
|
|
|
->join('temple t','l.temple_id=t.id')
|
|
|
->join('temple_area ta','l.area_id=ta.id')
|
|
|
->where($where)
|
|
|
->field('w.*,l.row,l.column,l.address,l.temple_id,l.number,t.name as tname ,ta.name as taname,w.status as wstatus')
|
|
|
->order('w.create_time','desc')
|
|
|
->paginate(10);
|
...
|
...
|
|