|
|
|
@ -509,7 +509,7 @@ class MarketingStrategyController extends UserBaseController |
|
|
|
|
} |
|
|
|
|
$date = date('Y-m-d H:i:s'); |
|
|
|
|
$query = ZhongjiYingxiao::find() |
|
|
|
|
->where('begin_date<=:begin_date and end_date>=:end_date',[':begin_date'=>$date,':end_date'=>$date]) |
|
|
|
|
->where('is_delete=0 and begin_date<=:begin_date and end_date>=:end_date',[':begin_date'=>$date,':end_date'=>$date]) |
|
|
|
|
->andWhere(['in','id',$celuo_ids]) |
|
|
|
|
->orderBy('id desc'); |
|
|
|
|
$yingxiao_item = $query->one(); |
|
|
|
|