unknown 1 месяц назад
Родитель
Сommit
22fb2ac298
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      application/api/controller/Machine.php

+ 4 - 0
application/api/controller/Machine.php

@@ -63,6 +63,10 @@ class Machine extends Api
             $this->error('非法请求');
         }
         $list = \db('设备_基本资料')
+            ->where([
+                '使用部门' => ['<>',''],
+                'sys_sbID' => ['<>','']
+            ])
             ->group('使用部门')
             ->column('rtrim(使用部门)');
         $this->success('请求成功',$list);