unknown 9 月之前
父节点
当前提交
e3e6d2e624
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      application/api/controller/Facility.php

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

@@ -31,11 +31,11 @@ class Facility extends Api
             $this->error('请求错误');
         }
         $param = $this->request->param();
-        if (isset($param['sort'])){
-            $where['使用部门'] = '智能车间';
-        }else{
-            $where['使用部门'] = ['<>','智能车间'];
-        }
+//        if (isset($param['sort'])){
+//            $where['使用部门'] = '智能车间';
+//        }else{
+//            $where['使用部门'] = ['<>','智能车间'];
+//        }
         $data = [];
         $date = date('Y-m-d 00:00:00',time()-3888000);
         $department = \db('设备_基本资料')
@@ -43,7 +43,7 @@ class Facility extends Api
             ->where('使用部门','<>','研发中心')
             ->where('设备编组','<>','')
             ->where('sys_sbID','<>','')
-            ->where($where)
+//            ->where($where)
             ->order('设备编组')
             ->column('rtrim(使用部门) as 使用部门');
         if (empty($department)){