|
|
@@ -307,18 +307,18 @@ class Manufacture extends Api
|
|
|
$this->error('请求错误');
|
|
|
}
|
|
|
$param = $this->request->param();
|
|
|
- if (isset($param['sort'])){
|
|
|
- $where['使用部门'] = '智能车间';
|
|
|
- }else{
|
|
|
- $where['使用部门'] = ['<>','智能车间'];
|
|
|
- }
|
|
|
+// if (isset($param['sort'])){
|
|
|
+// $where['使用部门'] = '智能车间';
|
|
|
+// }else{
|
|
|
+// $where['使用部门'] = ['<>','智能车间'];
|
|
|
+// }
|
|
|
$data = [];
|
|
|
$department = \db('设备_基本资料')
|
|
|
->distinct(true)
|
|
|
->where('使用部门','<>','研发中心')
|
|
|
->where('设备编组','<>','')
|
|
|
->where('sys_sbID','<>','')
|
|
|
- ->where($where)
|
|
|
+// ->where($where)
|
|
|
->order('设备编组')
|
|
|
->column('使用部门');
|
|
|
if (empty($department)){
|