Browse Source

取消app筛选部门

zgg 1 month ago
parent
commit
28d78f5f59
1 changed files with 12 additions and 12 deletions
  1. 12 12
      application/common/model/PhOrders.php

+ 12 - 12
application/common/model/PhOrders.php

@@ -846,18 +846,18 @@ class PhOrders extends Base
                 $map[] = ['status','=',$status];
             }
         }
-        $depId = Db::name('ph_user')
-            ->where('enable',1)
-            ->where('del',0)
-            ->where('org_id',$orgId)
-            ->where('user',$userId)
-            ->value('dep');
-        $depId = explode(',',$depId);
-        if (!empty($depId)) {
-            $map[] = ['dep_id','in',$depId];
-        }else{
-            $map[] = ['dep_id','=',0];
-        }
+//        $depId = Db::name('ph_user')
+//            ->where('enable',1)
+//            ->where('del',0)
+//            ->where('org_id',$orgId)
+//            ->where('user',$userId)
+//            ->value('dep');
+//        $depId = explode(',',$depId);
+//        if (!empty($depId)) {
+//            $map[] = ['dep_id','in',$depId];
+//        }else{
+//            $map[] = ['dep_id','=',0];
+//        }
         $map[] = ['org_id', '=', $orgId];
         $map[] = ['is_service', '=', 1];