存客宝微信好友表更名,模型动态引用

This commit is contained in:
柳清爽
2025-05-12 15:32:42 +08:00
parent 138e1c1deb
commit dbf6bb592a
14 changed files with 177 additions and 90 deletions

View File

@@ -4,7 +4,7 @@ namespace app\superadmin\controller\company;
use app\common\model\Device as DeviceModel;
use app\common\model\DeviceWechatLogin as DeviceWechatLoginModel;
use app\common\model\WechatFriend as WechatFriendModel;
use app\common\model\WechatFriendShip as WechatFriendShipModel;
use Eison\Utils\Helper\ArrHelper;
use library\ResponseHelper;
use think\Controller;
@@ -72,7 +72,7 @@ class GetCompanyDevicesForProfileController extends Controller
$relations = $this->getDeviceWechatRelationsByDeviceIds($deviceIds);
// 统计微信好友数量
$friendCounts = WechatFriendModel::alias('f')
$friendCounts = WechatFriendShipModel::alias('f')
->field([
'f.ownerWechatId wechatId', 'count(*) friendCount'
])