|
|
|
@ -18,9 +18,10 @@ class MarketEvent extends Controller
|
|
|
|
|
/**
|
|
|
|
|
* 获取所有市场部组id
|
|
|
|
|
*/
|
|
|
|
|
public function getMarketGroupId()
|
|
|
|
|
public function getMarketGroupId($departmentId = null)
|
|
|
|
|
{
|
|
|
|
|
$res = M('department','sys_')->where("id in ({$this->MarketDepartmentId})")->getField("group_ids",true);
|
|
|
|
|
$departmentIds = $departmentId ? $departmentId : $this->MarketDepartmentId;
|
|
|
|
|
$res = M('department','sys_')->where("id in ({$departmentIds})")->getField("group_ids",true);
|
|
|
|
|
$sendData = '';
|
|
|
|
|
foreach ($res as $value) {
|
|
|
|
|
$sendData .= $value.",";
|
|
|
|
|