chuweiqiang hai 1 ano
pai
achega
ce12496005

+ 1 - 1
.idea/workspace.xml

@@ -481,7 +481,7 @@
       <workItem from="1700440204810" duration="14773000" />
       <workItem from="1700526499424" duration="11662000" />
       <workItem from="1700613253175" duration="10732000" />
-      <workItem from="1700699350870" duration="3648000" />
+      <workItem from="1700699350870" duration="4060000" />
     </task>
     <servers />
   </component>

+ 2 - 2
application/api/controller/Recruit.php

@@ -874,14 +874,14 @@ class Recruit extends Base
     public function getFollowUpMessage()
     {
         $list = UserMessage::where(['m.user_id'=>$this->user_id,'m.is_deleted'=>0,'m.module'=>'recruit'])->where('m.type_id','in','4,5')->alias('m')
-            ->field('m.id,m.create_at,m.is_read,m.children_id recruit_id,m.content')
+            ->field('m.id,m.create_at,m.is_read,m.children_id recruit_id,m.content,m.type_id')
             ->limit($this->off_set,$this->page_num)
             ->order(['m.id'=>'desc'])
             ->select()->toArray();
         array_walk($list,function (&$v){
             $v['is_normal'] = CheckPower::checkModulesPower($v['recruit_id'], 0, $this->request->controller());
         });
-        $total_num = UserMessage::where(['m.user_id'=>$this->user_id,'m.is_deleted'=>0,'m.module'=>'recruit','m.type_id'=>5])->alias('m')->count();
+        $total_num = UserMessage::where(['m.user_id'=>$this->user_id,'m.is_deleted'=>0,'m.module'=>'recruit'])->where('m.type_id','in','4,5')->alias('m')->count();
         $this->success('ok',['list'=>$list,'total_count'=>$total_num,'page_num'=>$this->page_num]);
     }
 

+ 23 - 0
runtime/log/single.log

@@ -43723,3 +43723,26 @@
 [ info ] [ PARAM ] array (
 )
 [ info ] [ DB ] INIT mysql
+---------------------------------------------------------------
+
+[2023-11-23T11:07:31+08:00] 127.0.0.1 POST gaoyx.com/api/Recruit/getFollowUpMessage
+[运行时间:2.110352s] [吞吐率:0.47req/s] [内存消耗:6,411.21kb] [文件加载:167]
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\vendor\zoujingli\think-library\src/lang/zh-cn.php
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\vendor\zoujingli\think-library\src/lang/en-us.php
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\thinkphp\lang\zh-cn.php
+[ info ] [ ROUTE ] array (
+)
+[ info ] [ HEADER ] array (
+  'content-length' => '0',
+  'host' => 'gaoyx.com',
+  'connection' => 'keep-alive',
+  'accept-encoding' => 'gzip, deflate, br',
+  'accept' => '*/*',
+  'authorization' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjQ3OSwiaXNzIjoiaHR0cHM6XC9cL3phaW4uY29tIiwiYXVkIjoiaHR0cHM6XC9cL3phaW4uY29tIiwiaWF0IjoxNzAwNzAwNjk3LCJuYmYiOjE3MDA3MDA2OTcsImV4cCI6MTcwMjE0MDY5NywiZmFjaWxpdHlfY29kZSI6ImRtbDJiMVl5TVRFNFFUTXhNVEk9IiwibG9naW5fdHlwZSI6IjEifQ.5lzYUqWdfHPV9rjS6UPHBfgozBSAjzpQBLDqgC9LPC8',
+  'cache-control' => 'no-cache',
+  'user-agent' => 'PostmanRuntime-ApipostRuntime/1.1.0',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ DB ] INIT mysql

+ 16 - 0
runtime/log/single_sql.log

@@ -12748,3 +12748,19 @@
 [ sql ] [ SQL ] SELECT * FROM `dd_recruit` WHERE  `id` = 0  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.115592s ]
 [ sql ] [ SQL ] SELECT * FROM `dd_recruit` WHERE  `id` = 0  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.108345s ]
 [ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_user_message` `m` WHERE  `m`.`user_id` = 479  AND `m`.`is_deleted` = 0  AND `m`.`module` = 'recruit'  AND `m`.`type_id` = 5 [ RunTime:0.112883s ]
+---------------------------------------------------------------
+
+[2023-11-23T11:07:31+08:00] 127.0.0.1 POST gaoyx.com/api/Recruit/getFollowUpMessage
+[ sql ] [ DB ] CONNECT:[ UseTime:0.165865s ] mysql:host=120.79.86.50;port=3306;dbname=gaoyixia_hdlkeji;charset=utf8mb4
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_store_member` [ RunTime:0.110028s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_store_member` WHERE  `id` = 479 LIMIT 1 [ RunTime:0.115062s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_system_config` [ RunTime:0.120543s ]
+[ sql ] [ SQL ] SELECT `name`,`value` FROM `dd_system_config` [ RunTime:0.610534s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_store_member` WHERE  `id` = 479 LIMIT 1 [ RunTime:0.106289s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_user_message` [ RunTime:0.112514s ]
+[ sql ] [ SQL ] SELECT `m`.`id`,`m`.`create_at`,`m`.`is_read`,m.children_id recruit_id,`m`.`content` FROM `dd_user_message` `m` WHERE  `m`.`user_id` = 479  AND `m`.`is_deleted` = 0  AND `m`.`module` = 'recruit'  AND `m`.`type_id` IN ('4','5') ORDER BY `m`.`id` DESC LIMIT 0,20 [ RunTime:0.106582s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_recruit` [ RunTime:0.108006s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_recruit` WHERE  `id` = 0  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.108789s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_recruit` WHERE  `id` = 0  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.112073s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_recruit` WHERE  `id` = 0  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.111608s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_user_message` `m` WHERE  `m`.`user_id` = 479  AND `m`.`is_deleted` = 0  AND `m`.`module` = 'recruit'  AND `m`.`type_id` = 5 [ RunTime:0.105655s ]