微信列表及设备列表优化

This commit is contained in:
wong
2025-06-16 15:40:45 +08:00
parent edb983e01e
commit 9e89e3db9c
2 changed files with 10 additions and 6 deletions

View File

@@ -79,6 +79,7 @@ class GetDeviceListV1Controller extends BaseController
])
->leftJoin('device_wechat_login l', 'd.id = l.deviceId and l.alive =' . DeviceWechatLoginModel::ALIVE_WECHAT_ACTIVE . ' and l.companyId = d.companyId')
->leftJoin('wechat_account a', 'l.wechatId = a.wechatId')
->group('l.wechatId')
->order('d.id desc');
foreach ($where as $key => $value) {
@@ -124,7 +125,7 @@ class GetDeviceListV1Controller extends BaseController
$curstomer = WechatCustomerModel::field('friendShip')
->where(
[
'companyId' => $this->getUserInfo('companyId'),
//'companyId' => $this->getUserInfo('companyId'),
'wechatId' => $wechatId
]
)