LiuJ 3 месяцев назад
Родитель
Сommit
2bafec9e5e
1 измененных файлов с 13 добавлено и 13 удалено
  1. 13 13
      app/JsonRpc/ChatService.php

+ 13 - 13
app/JsonRpc/ChatService.php

@@ -1355,29 +1355,29 @@ class ChatService implements ChatServiceInterface
      */
     public function getBusinessDistrictList(array $data): array
     {
-        $query = GroupMemberImp::Join('hperf.chat_topics', 'hperf.chat_topics.group_id', '=', 'chat_groups_members.group_id')
-            ->leftJoin('hperf.chat_topic_class', 'hperf.chat_topic_class.id', '=', 'hperf.chat_topics.type')
-            ->where(['hperf.group_member.user_id' => $data['user_id']])
+        $query = GroupMemberImp::Join('hyperf.chat_topics', 'hyperf.chat_topics.group_id', '=', 'chat_groups_members.group_id')
+            ->leftJoin('hyperf.chat_topic_class', 'hyperf.chat_topic_class.id', '=', 'hyperf.chat_topics.type')
+            ->where(['hyperf.group_member.user_id' => $data['user_id']])
             ->when($data, function ($query) use ($data) {
                 if (!empty($data['type'])) {
-                    $query->where(['hperf.chat_topics.type' => $data['type']]);
+                    $query->where(['hyperf.chat_topics.type' => $data['type']]);
                 }
                 if (!empty($data['title'])) {
-                    $query->where('hperf.chat_topics.title', 'like', '%' . $data['title'] . '%');
+                    $query->where('hyperf.chat_topics.title', 'like', '%' . $data['title'] . '%');
                 }
                 if (!empty($data['created_at'])) {
-                    $query->whereDate('hperf.chat_topics.created_at', $data['created_at']);
+                    $query->whereDate('hyperf.chat_topics.created_at', $data['created_at']);
                 }
             })
             ->select(
-                'hperf.chat_topics.id',
-                'hperf.chat_topics.title',
-                'hperf.chat_topics.author',
-                'hperf.chat_topics.created_at',
-                'hperf.chat_topics.updated_at',
-                'hperf.chat_topic_class.topicname',
+                'hyperf.chat_topics.id',
+                'hyperf.chat_topics.title',
+                'hyperf.chat_topics.author',
+                'hyperf.chat_topics.created_at',
+                'hyperf.chat_topics.updated_at',
+                'hyperf.chat_topic_class.topicname',
             )
-            ->orderBy('hperf.chat_topics.created_at', 'desc');
+            ->orderBy('hyperf.chat_topics.created_at', 'desc');
         $total = $query->count();
         $list = $query->forPage($data['page'], $data['page_size'])->get();
         $result = [