私域操盘手 - 流量池列表已转化的列表数据

This commit is contained in:
柳清爽
2025-05-13 17:21:58 +08:00
parent 83d3429af6
commit 90c3ed5dc4
3 changed files with 101 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
namespace app\cunkebao\controller\traffic;
use app\common\model\TrafficPool as TrafficPoolModel;
use app\common\model\TrafficSource as TrafficSourceModel;
use app\common\model\WechatFriendShip as WechatFriendShipModel;
use app\cunkebao\controller\BaseController;
use library\ResponseHelper;
@@ -27,6 +28,8 @@ class GetPotentialListWithInCompanyV1Controller extends BaseController
// 状态筛选
if ($status = $this->request->param('status')) {
$where['s.status'] = $status;
} else {
$where['s.status'] = array('<>', TrafficSourceModel::STATUS_PASSED);
}
// 来源的筛选
@@ -63,6 +66,11 @@ class GetPotentialListWithInCompanyV1Controller extends BaseController
continue;
}
if (is_array($value)) {
$query->where($key, ...$value);
continue;
}
$query->where($key, $value);
}