Browse Source

统计,如果数据都是0,去掉

lizhen_gitee 6 tháng trước cách đây
mục cha
commit
b417f04865
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      application/admin/controller/Tongji.php

+ 5 - 0
application/admin/controller/Tongji.php

@@ -120,6 +120,11 @@ class Tongji extends Backend
 
             //
             $userlist[$key] = $user;
+
+            //如果数据都是0,去掉
+            if($user['paper_count'] == 0 && $user['train_count'] == 0){
+                unset($userlist[$key]);
+            }
         }
 
         $this->assign('datalist',$userlist);