|
|
@ -13,7 +13,7 @@ use Admin\Model\WithdrawModel;
|
|
|
|
class QueryController extends ThinkController
|
|
|
|
class QueryController extends ThinkController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//生成提现单号
|
|
|
|
//生成提现单号
|
|
|
|
private function produceWithdrawNumber()
|
|
|
|
public function produceWithdrawNumber()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$prefix = 'WD_';
|
|
|
|
$prefix = 'WD_';
|
|
|
|
$number = '';
|
|
|
|
$number = '';
|
|
|
@ -148,7 +148,7 @@ class QueryController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
$records = M('withdraw', 'tab_')->field('id, promote_account, widthdraw_number, sum_money, op_id, op_type, last_op_id, last_op_type, settlement_begin_time, settlement_end_time, create_time, status, respond')
|
|
|
|
$records = M('withdraw', 'tab_')->field('id, promote_account, widthdraw_number, sum_money, op_id, op_type, last_op_id, last_op_type, settlement_begin_time, settlement_end_time, create_time, status, respond')
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
|
->order('')
|
|
|
|
->order('create_time desc')
|
|
|
|
->page($page, $row)
|
|
|
|
->page($page, $row)
|
|
|
|
->select();
|
|
|
|
->select();
|
|
|
|
$count = M('withdraw', 'tab_')->field('id, promote_account, widthdraw_number, sum_money, op_id, op_type, last_op_id, last_op_type, settlement_begin_time, settlement_end_time, create_time, status, respond')
|
|
|
|
$count = M('withdraw', 'tab_')->field('id, promote_account, widthdraw_number, sum_money, op_id, op_type, last_op_id, last_op_type, settlement_begin_time, settlement_end_time, create_time, status, respond')
|
|
|
@ -247,7 +247,7 @@ class QueryController extends ThinkController
|
|
|
|
$add['promote_account'] = $promote['account'];
|
|
|
|
$add['promote_account'] = $promote['account'];
|
|
|
|
$add['create_time'] = $thisTime;
|
|
|
|
$add['create_time'] = $thisTime;
|
|
|
|
$add['status'] = 0;
|
|
|
|
$add['status'] = 0;
|
|
|
|
$add['widthdraw_number'] = $this->produceWithdrawNumber();
|
|
|
|
$add['widthdraw_number'] = D('withdraw')->produceWithdrawNumber();
|
|
|
|
$add['settlement_begin_time'] = $beginTime;
|
|
|
|
$add['settlement_begin_time'] = $beginTime;
|
|
|
|
$add['settlement_end_time'] = $endTime;
|
|
|
|
$add['settlement_end_time'] = $endTime;
|
|
|
|
$add['spend_ids'] = '';
|
|
|
|
$add['spend_ids'] = '';
|
|
|
|