Explorar o código

流程列表,删除筛选条件

wufeng %!s(int64=2) %!d(string=hai) anos
pai
achega
b6a77a518e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/admin/controller/Process.php

+ 2 - 2
app/admin/controller/Process.php

@@ -27,10 +27,10 @@ class Process extends BaseController
      $page =isset($this->post['page']) &&$this->post['page']!="" ? intval($this->post['page']) : 1;
      $size =isset($this->post['size']) &&$this->post['size']!="" ? intval($this->post['size']) : 10;
 
-     $count = Db::name("process")->count();
+     $count = Db::name("process")->where('is_del',1)->count();
      $total = ceil($count/$size);
      $page = $page>$total ? $total:$page;
-     $list = Db::name("process")->page($page,$size)->select();
+      $list = Db::name("process")->where('is_del', 1)->page($page, $size)->select();
      return app_show(0,"获取成功",["list"=>$list,"count"=>$count]);
   }