私域操盘手 - 流量池列表已转化的列表数据
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user