From 6419e64daf10315d2a3f4f88f13a0b4dfa95841d Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Wed, 16 Oct 2019 23:44:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/MarketingStrategyController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/controllers/MarketingStrategyController.php b/frontend/controllers/MarketingStrategyController.php index acad49e..9c5ea79 100644 --- a/frontend/controllers/MarketingStrategyController.php +++ b/frontend/controllers/MarketingStrategyController.php @@ -478,16 +478,15 @@ 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]) - ->andWhere(['<','baofei', $total1_clear]) ->andWhere(['in','id',$celuo_ids]) ->orderBy('id desc'); - echo $query->createCommand()->rawSql; $yingxiao_item = $query->one(); if(!$yingxiao_item) { return $result; } $items = ZhongjiTiaojian::find() ->where('celuo_id=:celuo_id and type=1',[':celuo_id'=>$yingxiao_item->id]) + ->andWhere(['<','baofei', $total1_clear]) ->all(); $ids = []; foreach($items as $item) {