修改错误

dev
曾超新 5 years ago
parent db9f05cf19
commit 6419e64daf
  1. 3
      frontend/controllers/MarketingStrategyController.php

@ -478,16 +478,15 @@ 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(['in','id',$celuo_ids]) ->andWhere(['in','id',$celuo_ids])
->orderBy('id desc'); ->orderBy('id desc');
echo $query->createCommand()->rawSql;
$yingxiao_item = $query->one(); $yingxiao_item = $query->one();
if(!$yingxiao_item) { if(!$yingxiao_item) {
return $result; return $result;
} }
$items = ZhongjiTiaojian::find() $items = ZhongjiTiaojian::find()
->where('celuo_id=:celuo_id and type=1',[':celuo_id'=>$yingxiao_item->id]) ->where('celuo_id=:celuo_id and type=1',[':celuo_id'=>$yingxiao_item->id])
->andWhere(['<','baofei', $total1_clear])
->all(); ->all();
$ids = []; $ids = [];
foreach($items as $item) { foreach($items as $item) {

Loading…
Cancel
Save