瀏覽代碼

投票列表后端接口

15313670163 3 月之前
父節點
當前提交
99855ccdd0
共有 4 個文件被更改,包括 145 次插入8 次删除
  1. 52 6
      app/JsonRpc/NewsService.php
  2. 10 1
      app/JsonRpc/NewsServiceInterface.php
  3. 1 1
      runtime/hyperf.pid
  4. 82 0
      runtime/logs/hyperf.log

+ 52 - 6
app/JsonRpc/NewsService.php

@@ -467,14 +467,14 @@ class NewsService implements NewsServiceInterface
      */
      public function getWebsiteSurvey(array $data): array
     {
-        if(isset($data['survey_id']) && !empty($data['survey_id'])){
+        if(isset($data['website_id']) && !empty($data['website_id'])){
             $website = Website::where('id',$data['website_id'])->first();
             if(empty($website)){
                 return Result::error("暂无此网站",0);
             }
         }
         if(isset($data['art_id'])  && !empty($data['art_id'])){
-            $article = Article::where('id',$data['art_id'])->first();
+            $article = Article::where('id',$data['art_id'])->where('status',1)->first();
             if(empty($article)){
                 return Result::error("暂无此文章",0);
             }
@@ -494,8 +494,8 @@ class NewsService implements NewsServiceInterface
         ->leftJoin('article','article_survey.art_id','article.id')
         ->select('article_survey.*','article.survey_type')
         ->get()->all();
-        $result['others'] = ArticleSurvey::where($where)->where('is_other',1)->where('other_id',0)->first();
-        $result['other'] = ArticleSurvey::where($where)->where('is_other',1)->where('other_id','!=',0)->orderByDesc('created_at')->first();
+        $result['other'] = ArticleSurvey::where($where)->where('is_other',1)->where('other_id',0)->first();
+        $result['others'] = ArticleSurvey::where($where)->where('is_other',1)->where('other_id','!=',0)->orderByDesc('created_at')->first();
         if(empty($result)){
             return Result::error("此文章暂无调查问卷",0); 
         }
@@ -548,7 +548,6 @@ class NewsService implements NewsServiceInterface
      */
     public function addWebsiteSurveyVote(array $data): array
     {
-        
         if(isset($data['website_id']) && !empty($data['website_id'])){
             $website = Website::where('id',$data['website_id'])->first(); 
             if(empty($website)){
@@ -609,5 +608,52 @@ class NewsService implements NewsServiceInterface
         }
         return Result::error("参数必填!");
     }
-    
+    /**
+     * 后端-获取网站调查问卷列表
+     * @param array $data
+     * @return array
+     */
+    public function getSurveyList(array $data): array
+    {
+        $result = Article::where('is_survey',1)
+        // ->select('id','survey_id','survey_type')
+        ->orderByDesc('updated_at')
+        ->limit($data['pageSize'])
+        ->offset(($data['page']-1)*$data['pageSize'])
+        ->get();
+        if(empty($result)){
+            return Result::error("暂无调查问卷",0);
+        }
+        return Result::success($result);
+    }
+    /**
+     * 后端-获取网站调查问卷详情
+     * @param array $data
+     * @return array 
+     */
+    public function getSurveyInfo(array $data): array
+    {
+        if(isset($data['sur_id']) &&!empty($data['sur_id'])){
+            $where = [ 'sur_id'=>$data['sur_id']];
+            $result['survey'] =  ArticleSurvey::where($where)->where('is_other',0)
+            ->leftJoin('article','article_survey.art_id','article.id')
+            ->select('article_survey.*','article.survey_type')
+            ->get()->all();
+            if(empty($result)){
+                return Result::error("此调查问卷不存在",0);
+            }
+            $resultsArray  = array_column($result['survey'], 'results');
+            $total = array_sum($resultsArray);
+            // $total = $result['survey']->sum('results');
+            $result['other'] = ArticleSurvey::where($where)->where('is_other',1)->where('other_id',0)->first();
+            $result['others'] = ArticleSurvey::where($where)->where('is_other',1)->where('other_id','!=',0)->orderByDesc('created_at')->first();
+            
+            // $total = 0;
+            if(!empty($result['other'])){
+                $total = $total + $result['other']['results'];
+            }
+            $result['total'] = $total;
+        }
+        return Result::success($result);
+    }
 }

+ 10 - 1
app/JsonRpc/NewsServiceInterface.php

@@ -112,5 +112,14 @@ interface NewsServiceInterface
      * @return array
      */
     public function addWebsiteSurveyVote(array $data):array;
-
+    /**
+     * @param array $data
+     * @return array
+     */
+    public function getSurveyList(array $data):array;
+    /**
+     * @param array $data
+     * @return array
+     */
+    public function getSurveyInfo(array $data):array;
 }

+ 1 - 1
runtime/hyperf.pid

@@ -1 +1 @@
-64458
+15871

+ 82 - 0
runtime/logs/hyperf.log

@@ -2407,3 +2407,85 @@
 [2025-02-21T17:43:08.305574+08:00] sql.INFO: [3.5] select * from `article_survey` where `id` in ('4', '8') and `website_id` = '2' and `is_other` = '1' and `other_id` != '0' limit 1 [] []
 [2025-02-21T17:43:08.341908+08:00] sql.INFO: [35.26] update `article_survey` set `results` = `results` + 1, `article_survey`.`updated_at` = '2025-02-21 17:43:08' where `id` in ('4', '8', '6') and `website_id` = '2' [] []
 [2025-02-21T17:43:08.345261+08:00] sql.INFO: [2.71] select * from `article_survey` where `id` in ('4', '8', '6') and `website_id` = '2' [] []
+[2025-02-27T10:00:17.231877+08:00] sql.INFO: [25.84] select * from `article` where `is_survey` = '1' order by `updated_at` desc limit 10 offset 0 [] []
+[2025-02-27T10:05:52.566730+08:00] sql.INFO: [23.15] select * from `article` where `is_survey` = '1' order by `updated_at` desc limit 10 offset 0 [] []
+[2025-02-27T10:09:51.487248+08:00] sql.INFO: [12.5] select * from `article_survey` where `sur_id` = '2025022512070358177870' [] []
+[2025-02-27T10:12:17.101500+08:00] sql.INFO: [14.17] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T10:12:17.131672+08:00] sql.INFO: [13.62] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T10:12:17.135272+08:00] sql.INFO: [2.55] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T10:12:20.723703+08:00] sql.INFO: [12.95] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T10:12:20.743730+08:00] sql.INFO: [3.46] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T10:12:20.747346+08:00] sql.INFO: [2.68] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T10:12:28.987183+08:00] sql.INFO: [3.63] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T10:12:28.991375+08:00] sql.INFO: [3.02] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T10:12:28.995474+08:00] sql.INFO: [3.27] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T10:12:29.959714+08:00] sql.INFO: [3.64] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T10:12:29.965209+08:00] sql.INFO: [3.93] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T10:12:29.969157+08:00] sql.INFO: [2.83] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T10:12:33.800805+08:00] sql.INFO: [13.5] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T10:12:33.819338+08:00] sql.INFO: [2.82] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T10:12:33.822732+08:00] sql.INFO: [2.62] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T10:32:32.369545+08:00] sql.INFO: [17.62] 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 [] []
+[2025-02-27T10:32:32.404624+08:00] sql.INFO: [16.53] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2025-02-27T10:37:02.026352+08:00] sql.INFO: [8.47] 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 [] []
+[2025-02-27T10:37:02.042397+08:00] sql.INFO: [13.1] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2025-02-27T10:39:52.713810+08:00] sql.INFO: [9.49] 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 [] []
+[2025-02-27T10:39:52.734894+08:00] sql.INFO: [18.11] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2025-02-27T10:40:31.569108+08:00] sql.INFO: [4.55] 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 [] []
+[2025-02-27T10:40:31.589168+08:00] sql.INFO: [16.98] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2025-02-27T10:40:34.193636+08:00] sql.INFO: [5.51] 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 [] []
+[2025-02-27T10:40:34.211681+08:00] sql.INFO: [15.01] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2025-02-27T10:40:58.716132+08:00] sql.INFO: [4.05] 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 [] []
+[2025-02-27T10:40:58.732949+08:00] sql.INFO: [14.05] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2025-02-27T10:41:20.873440+08:00] sql.INFO: [4.09] 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 [] []
+[2025-02-27T10:41:20.889895+08:00] sql.INFO: [13.59] select count(*) as aggregate from `article` left join `category` on `article`.`catid` = `category`.`id` where `article`.`status` not in ('404') [] []
+[2025-02-27T13:22:18.634878+08:00] sql.INFO: [57.97] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T13:23:09.825478+08:00] sql.INFO: [14.32] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T13:25:01.802590+08:00] sql.INFO: [15] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T13:25:01.823786+08:00] sql.INFO: [2.75] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:25:01.827055+08:00] sql.INFO: [2.54] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:25:17.700253+08:00] sql.INFO: [4.55] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T13:25:17.704846+08:00] sql.INFO: [3.41] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:25:17.709304+08:00] sql.INFO: [3.1] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:25:22.466215+08:00] sql.INFO: [16.17] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T13:25:22.484908+08:00] sql.INFO: [3.58] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:25:22.488476+08:00] sql.INFO: [2.96] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:27:34.894080+08:00] sql.INFO: [8.74] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T13:27:34.897852+08:00] sql.INFO: [2.77] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:27:34.901557+08:00] sql.INFO: [2.91] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:27:39.857396+08:00] sql.INFO: [14.68] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022512070358177870') and `is_other` = '0' [] []
+[2025-02-27T13:27:39.881088+08:00] sql.INFO: [5.48] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:27:39.884497+08:00] sql.INFO: [2.72] select * from `article_survey` where (`sur_id` = '2025022512070358177870') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:28:27.707025+08:00] sql.INFO: [3.38] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:28:27.710560+08:00] sql.INFO: [2.57] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:28:27.713997+08:00] sql.INFO: [2.77] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:28:28.661326+08:00] sql.INFO: [3.21] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:28:28.664995+08:00] sql.INFO: [2.7] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:28:28.669228+08:00] sql.INFO: [3.06] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:28:42.989644+08:00] sql.INFO: [3.19] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:28:42.993224+08:00] sql.INFO: [2.5] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:28:42.996569+08:00] sql.INFO: [2.7] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:28:44.030368+08:00] sql.INFO: [3.51] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:28:44.034656+08:00] sql.INFO: [3.23] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:28:44.038684+08:00] sql.INFO: [3.1] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:29:06.738097+08:00] sql.INFO: [14.98] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:29:06.757073+08:00] sql.INFO: [3.01] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:29:06.760602+08:00] sql.INFO: [2.88] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:29:07.960329+08:00] sql.INFO: [3.46] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:29:07.964892+08:00] sql.INFO: [3.18] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:29:07.969859+08:00] sql.INFO: [3.55] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:29:12.568010+08:00] sql.INFO: [17.61] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:29:12.584909+08:00] sql.INFO: [2.83] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:29:12.588165+08:00] sql.INFO: [2.59] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:30:03.129853+08:00] sql.INFO: [3.25] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:30:03.134179+08:00] sql.INFO: [3.24] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:30:03.138099+08:00] sql.INFO: [2.9] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:30:06.465318+08:00] sql.INFO: [13.9] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:30:06.485189+08:00] sql.INFO: [2.85] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:30:06.488421+08:00] sql.INFO: [2.53] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:30:23.942842+08:00] sql.INFO: [3.36] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:30:23.946573+08:00] sql.INFO: [2.67] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:30:23.949869+08:00] sql.INFO: [2.68] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []
+[2025-02-27T13:30:24.800151+08:00] sql.INFO: [3.52] select `article_survey`.*, `article`.`survey_type` from `article_survey` left join `article` on `article_survey`.`art_id` = `article`.`id` where (`sur_id` = '2025022108311143717588') and `is_other` = '0' [] []
+[2025-02-27T13:30:24.804006+08:00] sql.INFO: [2.81] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` = '0' limit 1 [] []
+[2025-02-27T13:30:24.807489+08:00] sql.INFO: [2.71] select * from `article_survey` where (`sur_id` = '2025022108311143717588') and `is_other` = '1' and `other_id` != '0' order by `created_at` desc limit 1 [] []