unknown 9 meses atrás
pai
commit
12a390e26d
1 arquivos alterados com 6 adições e 6 exclusões
  1. 6 6
      application/api/controller/Manufacture.php

+ 6 - 6
application/api/controller/Manufacture.php

@@ -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)){