|
@@ -1355,9 +1355,9 @@ class ChatService implements ChatServiceInterface
|
|
|
*/
|
|
*/
|
|
|
public function getBusinessDistrictList(array $data): array
|
|
public function getBusinessDistrictList(array $data): array
|
|
|
{
|
|
{
|
|
|
- $query = ChatGroupsMember::Join('chat_topics', 'chat_topics.group_id', '=', 'chat_groups_members.group_id')
|
|
|
|
|
|
|
+ $query = GroupMemberImp::Join('chat_topics', 'chat_topics.group_id', '=', 'chat_groups_members.group_id')
|
|
|
->leftJoin('chat_topic_class', 'chat_topic_class.id', '=', 'chat_topics.type')
|
|
->leftJoin('chat_topic_class', 'chat_topic_class.id', '=', 'chat_topics.type')
|
|
|
- ->where(['chat_groups_members.user_id' => $data['user_id']])
|
|
|
|
|
|
|
+ ->where(['group_member.user_id' => $data['user_id']])
|
|
|
->when($data, function ($query) use ($data) {
|
|
->when($data, function ($query) use ($data) {
|
|
|
if (!empty($data['type'])) {
|
|
if (!empty($data['type'])) {
|
|
|
$query->where(['chat_topics.type' => $data['type']]);
|
|
$query->where(['chat_topics.type' => $data['type']]);
|