作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

后台设备模块开发

@@ -207,7 +207,7 @@ exit(); @@ -207,7 +207,7 @@ exit();
207 $data = Db::name('light') 207 $data = Db::name('light')
208 ->alias('l') 208 ->alias('l')
209 ->join('light_order lo', 'lo.light_id=l.id') 209 ->join('light_order lo', 'lo.light_id=l.id')
210 - ->where(['l.area_id' => $id,'lo.end_time'=>['!>',time()]])->field('l.row,l.column,l.id')->select()->toArray(); 210 + ->where(['l.area_id' => $id,'lo.status'=>['neq',3]])->field('l.row,l.column,l.id')->select()->toArray();
211 return json_encode($data); 211 return json_encode($data);
212 } 212 }
213 } 213 }