...
|
...
|
@@ -139,7 +139,7 @@ class AdminLightController extends AdminBaseController |
|
|
array_push($arr, [$r,$c]);
|
|
|
}
|
|
|
}
|
|
|
$is_set = Db::name('light')->where('area_id', $id)->field('row,column')->select()->toArray();
|
|
|
$is_set = Db::name('light')->where(['area_id'=>$id,'id'=>['neq',$this->request->param('lightId')]])->field('row,column')->select()->toArray();
|
|
|
if (!empty($lightId)) {
|
|
|
$is_set = Db::name('light')->where(['area_id'=> $id,'id'=>['neq',$lightId]])->field('row,column')->select()->toArray();
|
|
|
}
|
...
|
...
|
|