Browse Source

修改医废类型bug

hzd 4 months ago
parent
commit
1887c37f7e

+ 1 - 1
application/admin/controller/WasteApply.php

@@ -264,7 +264,7 @@ class WasteApply extends Auth {
                     ->field('id,real_name as title')
                     ->select();
             }
-            $type = (new \app\common\model\WasteType())->getList();
+            $type = (new \app\common\model\WasteType())->getList($this->orgId);
             $addr = model('Address')->getListByType(7,$this->orgId);
             $this->assign('addr', $addr);
             $this->assign('type', $type);

+ 1 - 1
application/admin/controller/WasteApplyOption.php

@@ -303,7 +303,7 @@ class WasteApplyOption extends Auth {
                     ->field('id,real_name as title')
                     ->select();
             }
-            $type = (new \app\common\model\WasteType())->getList();
+            $type = (new \app\common\model\WasteType())->getList($this->orgId);
             $addr = model('Address')->getListByType(7,$this->orgId);
             $this->assign('addr', $addr);
             $this->assign('type', $type);

+ 1 - 1
application/admin/controller/WasteRecord.php

@@ -722,7 +722,7 @@ class WasteRecord extends Auth {
                     ->field('id,real_name as title')
                     ->select();
             }
-            $type = model('WasteType')->getList();
+            $type = model('WasteType')->getList($this->orgId);
             $addr = model('Address')->getListByType(7,$this->orgId);
             $this->assign('addr', $addr);
             $this->assign('type', $type);