Browse Source

大屏Bug

zgg 4 months ago
parent
commit
795721b124
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/api/controller/screen/Order.php

+ 1 - 0
application/api/controller/screen/Order.php

@@ -130,6 +130,7 @@ class Order extends Index
             $map[] = ['del','=',0];
             $map[] = ['del','=',0];
             $lists = Db::name('orders')
             $lists = Db::name('orders')
                 ->where($map)
                 ->where($map)
+                ->where('dep_id','<>',0)
                 ->field('count(*) as count,dep_id')
                 ->field('count(*) as count,dep_id')
                 ->group('dep_id')
                 ->group('dep_id')
                 ->distinct(true)
                 ->distinct(true)