在获取营销时,把已经删除的条件加上。

dev
曾超新 5 years ago
parent b6464ac83f
commit a2b0ea9842
  1. 2
      frontend/controllers/MarketingStrategyController.php

@ -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();

Loading…
Cancel
Save