|
|
|
@ -372,6 +372,19 @@ class PromoteCoinController extends BaseController
|
|
|
|
|
$conditions['create_time'] = ['elt', strtotime($endTime. ' 23:59:59')];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if($sn) {
|
|
|
|
|
$conditions['sn'] = $sn;
|
|
|
|
|
}
|
|
|
|
|
if($account) {
|
|
|
|
|
$map1['account'] = ['like','%'.$account.'%'];
|
|
|
|
|
$promotesRs = M('promote','tab_')->field('id')->where($map1)->select();
|
|
|
|
|
$idArr = "";
|
|
|
|
|
foreach ($promotesRs as $key => $value) {
|
|
|
|
|
$idArr .= intval($value['id']).',';
|
|
|
|
|
}
|
|
|
|
|
$idArr1 = rtrim($idArr,',');
|
|
|
|
|
$conditions['target_id'] = ['in',$idArr1];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$query = M('promote_coin_transfer_log', 'tab_')->where($conditions)->order('create_time desc');
|
|
|
|
|
list($logs, $pagination, $count) = $this->paginate($query);
|
|
|
|
|