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