From 64b8bf8ca5f30c0aae3c9eddb5108aa91142ad48 Mon Sep 17 00:00:00 2001 From: JerryYan <792602257@qq.com> Date: Sun, 21 Jun 2020 17:54:12 +0800 Subject: [PATCH] 108.1 --- hyhproject/admin/model/CashDraws.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hyhproject/admin/model/CashDraws.php b/hyhproject/admin/model/CashDraws.php index f1e76ff..98c471e 100755 --- a/hyhproject/admin/model/CashDraws.php +++ b/hyhproject/admin/model/CashDraws.php @@ -186,8 +186,11 @@ class CashDraws extends Base{ // $orders['collectionGatheringSum'] += abs($v['payable']); // } } - $data = Db::name('cash_draws')->whereTime('createTime',[$date,date('Y-m-d',strtotime('+1 day',strtotime($date)))]) - ->where("cashSatus", '=', 1)->select(); + $data = Db::name('cash_draws')->whereIn('cashId', + Db::name('log_moneys') + ->whereTime('createTime',[$date,date('Y-m-d',strtotime('+1 day',strtotime($date)))]) + ->where('dataSrc', '=', 3)->column('dataId') + )->select(); foreach ($data as $item){ $m->setTable('shops'); $shopUserId = $m->getField(['shopId'=>$item['targetId']],'userId');