rkljw 6 сар өмнө
parent
commit
d9bc25684e

+ 4 - 3
app/JsonRpc/NewsService.php

@@ -148,7 +148,7 @@ class NewsService implements NewsServiceInterface
             array_push($where,['article.title','like','%'.$data['title'].'%']);
         }
         if(isset($data['category_name'])  && $data['category_name']){
-            array_push($where,['category.name','=',$data['category_name']]);
+            array_push($where,['category.name','like','%'.$data['category_name'].'%']);
         }
         if(isset($data['author'])  && $data['author']){
              array_push($where,['article.author','=',$data['author']]);
@@ -156,7 +156,7 @@ class NewsService implements NewsServiceInterface
         if(isset($data['islink'])  && $data['islink']){
             array_push($where,['article.islink','=',$data['islink']]);
         }
-        if(isset($data['status'])  && $data['status']){
+        if(isset($data['status']) && $data['status']!==""){
             array_push($where,['article.status','=',$data['status']]);
 
         }
@@ -168,7 +168,8 @@ class NewsService implements NewsServiceInterface
             ->orderBy("article.id","desc")
             ->limit($data['pageSize'])
             ->offset(($data['page']-1)*$data['pageSize'])->get();
-        $count =  Article::where($where)->count();
+        $count =  Article::where($where)->whereNotIn('article.status',[404])
+            ->leftJoin('category','article.catid','category.id')->count();
         $data = [
             'rows'=>$rep->toArray(),
             'count'=>$count

+ 0 - 1
runtime/hyperf.pid

@@ -1 +0,0 @@
-96168

+ 127 - 0
runtime/logs/hyperf.log

@@ -52,3 +52,130 @@
 [2024-10-29T00:45:19.792318+00:00] sql.INFO: [1.57] select count(*) as aggregate from `article` [] []
 [2024-10-29T01:48:07.980493+00:00] sql.INFO: [14.03] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
 [2024-10-29T01:48:07.983844+00:00] sql.INFO: [1.17] select count(*) as aggregate from `article` [] []
+[2024-10-29T09:00:41.948762+00:00] sql.INFO: [9.86] select * from `category` where (`pid` = '0') [] []
+[2024-10-29T09:00:41.948145+00:00] sql.INFO: [7.31] select * from `article` left join `article_data` on `article`.`id` = `article_data`.`article_id` where (`article`.`id` = '46') limit 1 [] []
+[2024-10-29T09:00:48.280668+00:00] sql.INFO: [12.19] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:00:48.284793+00:00] sql.INFO: [1.62] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:00:55.555995+00:00] sql.INFO: [17.27] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:00:55.559668+00:00] sql.INFO: [1.42] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:01:07.960431+00:00] sql.INFO: [3.12] select * from `category` where (`pid` = '0') [] []
+[2024-10-29T09:01:07.978925+00:00] sql.INFO: [25.18] select * from `article` left join `article_data` on `article`.`id` = `article_data`.`article_id` where (`article`.`id` = '26') limit 1 [] []
+[2024-10-29T09:01:08.063541+00:00] sql.INFO: [3.72] select * from `category` where (`pid` = '0') [] []
+[2024-10-29T09:01:14.868187+00:00] sql.INFO: [8.07] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:01:14.871654+00:00] sql.INFO: [1.45] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:01:23.482052+00:00] sql.INFO: [7.03] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:01:23.485541+00:00] sql.INFO: [1.45] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:01:30.954322+00:00] sql.INFO: [17.56] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:01:30.957828+00:00] sql.INFO: [1.39] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:01:56.232084+00:00] sql.INFO: [7.79] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:01:56.236473+00:00] sql.INFO: [1.9] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:03.346836+00:00] sql.INFO: [12.25] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:03.350330+00:00] sql.INFO: [1.5] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:09.223098+00:00] sql.INFO: [15.54] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = 'ttt') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:09.225073+00:00] sql.INFO: [1.52] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = 'ttt') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:14.769084+00:00] sql.INFO: [2.54] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` = '政策') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:14.771333+00:00] sql.INFO: [1.79] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` = '政策') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:16.896859+00:00] sql.INFO: [18.73] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:16.902299+00:00] sql.INFO: [2.68] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:22.169010+00:00] sql.INFO: [15.28] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:22.175594+00:00] sql.INFO: [2.85] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:28.224924+00:00] sql.INFO: [2.55] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:28.227198+00:00] sql.INFO: [1.53] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:29.990221+00:00] sql.INFO: [3.75] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%测试标题333%') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:29.993495+00:00] sql.INFO: [2.22] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%测试标题333%') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:31.911679+00:00] sql.INFO: [15.5] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:31.915234+00:00] sql.INFO: [1.41] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:41.051071+00:00] sql.INFO: [22.24] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = '政策法规') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:41.055845+00:00] sql.INFO: [3.04] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = '政策法规') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:42.468662+00:00] sql.INFO: [2.93] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` = '政策法规') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:42.471011+00:00] sql.INFO: [1.72] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` = '政策法规') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:48.003280+00:00] sql.INFO: [14.42] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = '政策法规') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:48.007027+00:00] sql.INFO: [2.34] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = '政策法规') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:02:51.066200+00:00] sql.INFO: [16.33] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = '政策法规') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:02:51.071712+00:00] sql.INFO: [3.6] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = '政策法规') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:03:22.196688+00:00] sql.INFO: [20.69] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = '政策法规') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:03:22.200740+00:00] sql.INFO: [2.61] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` = '政策法规') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:03:30.618198+00:00] sql.INFO: [11.54] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:03:30.622462+00:00] sql.INFO: [1.74] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:12:12.676217+00:00] sql.INFO: [11.92] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:12:12.688168+00:00] sql.INFO: [1.37] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:20:11.806411+00:00] sql.INFO: [13.16] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:20:11.809954+00:00] sql.INFO: [1.51] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:20:23.421594+00:00] sql.INFO: [7.61] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:20:23.425170+00:00] sql.INFO: [1.48] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:20:41.661876+00:00] sql.INFO: [13.52] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` like '%政策法规%') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:20:41.666116+00:00] sql.INFO: [2.54] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` like '%政策法规%') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:20:48.719811+00:00] sql.INFO: [2.64] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:20:48.722608+00:00] sql.INFO: [2.11] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:20:51.192995+00:00] sql.INFO: [19.69] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:20:51.196531+00:00] sql.INFO: [1.37] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:20:54.033088+00:00] sql.INFO: [2.46] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:20:54.035501+00:00] sql.INFO: [1.81] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:20:58.900658+00:00] sql.INFO: [19.76] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` like '%三农之窗%') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:20:58.908323+00:00] sql.INFO: [4.17] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`category`.`name` like '%三农之窗%') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:21:01.231370+00:00] sql.INFO: [2.44] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:21:01.233705+00:00] sql.INFO: [1.74] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:21:10.798102+00:00] sql.INFO: [2.8] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:21:10.800554+00:00] sql.INFO: [1.69] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`status` = '1') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:21:12.145609+00:00] sql.INFO: [21.44] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:21:12.152764+00:00] sql.INFO: [2.4] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '1') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:21:13.845599+00:00] sql.INFO: [2.8] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:21:13.848228+00:00] sql.INFO: [1.9] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:21:16.218120+00:00] sql.INFO: [21.32] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:21:16.221336+00:00] sql.INFO: [1.3] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:21:24.512045+00:00] sql.INFO: [10.39] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:21:24.515673+00:00] sql.INFO: [1.53] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:21:33.293708+00:00] sql.INFO: [19.12] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:21:33.301073+00:00] sql.INFO: [2.44] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '1') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:21:47.526636+00:00] sql.INFO: [2.85] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:21:47.529162+00:00] sql.INFO: [1.83] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`status` = '1') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:21:51.260291+00:00] sql.INFO: [17.32] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:21:51.268266+00:00] sql.INFO: [2.27] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:22:12.733192+00:00] sql.INFO: [2.22] select * from `category` where (`pid` = '0') [] []
+[2024-10-29T09:22:12.759196+00:00] sql.INFO: [2.25] select * from `article` left join `article_data` on `article`.`id` = `article_data`.`article_id` where (`article`.`id` = '27') limit 1 [] []
+[2024-10-29T09:22:12.790151+00:00] sql.INFO: [1.88] select * from `category` where (`pid` = '0') [] []
+[2024-10-29T09:22:14.857522+00:00] sql.INFO: [9] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:22:14.862267+00:00] sql.INFO: [1.69] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:22:25.824271+00:00] sql.INFO: [2.07] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`islink` = '1' and `article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:22:25.826248+00:00] sql.INFO: [1.53] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`islink` = '1' and `article`.`status` = '1') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:22:29.366043+00:00] sql.INFO: [2.43] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:22:29.368309+00:00] sql.INFO: [1.66] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`status` = '1') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:23:07.261730+00:00] sql.INFO: [11.85] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:23:07.265793+00:00] sql.INFO: [1.87] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:23:44.047946+00:00] sql.INFO: [20.27] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:23:44.140840+00:00] sql.INFO: [1.92] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟' and `article`.`status` = '1') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:23:48.566358+00:00] sql.INFO: [2.02] select * from `category` where (`pid` = '0') [] []
+[2024-10-29T09:23:52.279250+00:00] sql.INFO: [2.41] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:23:52.281932+00:00] sql.INFO: [2.01] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:24:30.093008+00:00] sql.INFO: [11.71] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:24:30.105191+00:00] sql.INFO: [1.48] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:24:36.738753+00:00] sql.INFO: [6.91] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '0') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:24:36.741449+00:00] sql.INFO: [1.44] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '0') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:24:41.301885+00:00] sql.INFO: [15.07] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:24:41.306200+00:00] sql.INFO: [1.77] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '1') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:24:46.675499+00:00] sql.INFO: [8.14] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '404') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:24:46.681374+00:00] sql.INFO: [4.5] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '404') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:24:49.549899+00:00] sql.INFO: [14.1] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '0') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:24:49.554894+00:00] sql.INFO: [2.92] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '0') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:24:53.077221+00:00] sql.INFO: [55.52] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:24:53.080866+00:00] sql.INFO: [1.49] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '1') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:24:56.794524+00:00] sql.INFO: [8.76] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:24:56.799155+00:00] sql.INFO: [2.51] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:24:58.980471+00:00] sql.INFO: [5] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:24:58.982697+00:00] sql.INFO: [1.29] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:25:03.527973+00:00] sql.INFO: [8.39] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:25:03.533152+00:00] sql.INFO: [2.61] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`status` = '') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:26:13.708584+00:00] sql.INFO: [9.77] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:26:13.718880+00:00] sql.INFO: [1.67] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:27:00.157389+00:00] sql.INFO: [11.5] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:27:00.170016+00:00] sql.INFO: [2.18] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `category`.`name` like '%政策%' and `article`.`author` = '刘佳伟') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:27:32.565812+00:00] sql.INFO: [10.27] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:27:32.570833+00:00] sql.INFO: [2.3] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:27:52.861929+00:00] sql.INFO: [7.26] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:27:52.865368+00:00] sql.INFO: [1.32] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:27:58.082385+00:00] sql.INFO: [6.64] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:27:58.086077+00:00] sql.INFO: [1.52] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2024-10-29T09:28:55.645367+00:00] sql.INFO: [12.89] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `article`.`status` = '0') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:28:55.653581+00:00] sql.INFO: [1.47] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `article`.`status` = '0') and `article`.`status` not in ('404') [] []
+[2024-10-29T09:29:02.340079+00:00] sql.INFO: [6.03] select `article`.*, `category`.`name` as `category_name` from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `article`.`status` = '1') and `article`.`status` not in ('404') order by `article`.`id` desc limit 10 offset 0 [] []
+[2024-10-29T09:29:02.347505+00:00] sql.INFO: [2.27] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where (`article`.`title` like '%刘佳伟%' and `article`.`status` = '1') and `article`.`status` not in ('404') [] []