This commit is contained in:
Jerry Yan 2020-06-21 17:54:12 +08:00
parent 9d339215b0
commit 64b8bf8ca5

View File

@ -186,8 +186,11 @@ class CashDraws extends Base{
// $orders['collectionGatheringSum'] += abs($v['payable']); // $orders['collectionGatheringSum'] += abs($v['payable']);
// } // }
} }
$data = Db::name('cash_draws')->whereTime('createTime',[$date,date('Y-m-d',strtotime('+1 day',strtotime($date)))]) $data = Db::name('cash_draws')->whereIn('cashId',
->where("cashSatus", '=', 1)->select(); 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){ foreach ($data as $item){
$m->setTable('shops'); $m->setTable('shops');
$shopUserId = $m->getField(['shopId'=>$item['targetId']],'userId'); $shopUserId = $m->getField(['shopId'=>$item['targetId']],'userId');