|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
namespace Home\Controller;
|
|
|
|
|
|
|
|
|
|
use Admin\Model\WithdrawModel;
|
|
|
|
|
use Base\Model\Model;
|
|
|
|
|
use OT\DataDictionary;
|
|
|
|
|
use Base\Repository\PromoteRepository;
|
|
|
|
@ -395,6 +396,7 @@ class FinanceController extends BaseController
|
|
|
|
|
$begTime = strtotime(date('Y-m-d', strtotime($initBegTime)));
|
|
|
|
|
$endTime = strtotime(date('Y-m-d', strtotime($initEndTime))) + 3600 * 24;
|
|
|
|
|
$status = '';
|
|
|
|
|
$settlementType = intval(I('settlement_type', 0));
|
|
|
|
|
|
|
|
|
|
$parameter['p'] = $page;
|
|
|
|
|
$parameter['row'] = $row;
|
|
|
|
@ -419,8 +421,11 @@ class FinanceController extends BaseController
|
|
|
|
|
$map['status'] = $status;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!empty($settlementType)) {
|
|
|
|
|
$map['settlement_type'] = $settlementType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$data = $model->field('id, widthdraw_number, create_time, settlement_begin_time, settlement_end_time, sum_money, status, respond, transfer_proof, op_id, op_type, last_op_id, last_op_type')
|
|
|
|
|
$data = $model->field('id, widthdraw_number, create_time, settlement_begin_time, settlement_end_time, sum_money, status, respond, transfer_proof, op_id, op_type, last_op_id, last_op_type, settlement_type')
|
|
|
|
|
->where($map)
|
|
|
|
|
->order('id desc')
|
|
|
|
|
->page($page, $row)
|
|
|
|
@ -439,6 +444,7 @@ class FinanceController extends BaseController
|
|
|
|
|
$list['last_op_id'] = $this->getOpIdByType($list['last_op_id'], $list['last_op_type']);
|
|
|
|
|
$list['op_type'] = getPromoteWithdrawOpType($list['op_type']);
|
|
|
|
|
$list['last_op_type'] = getPromoteWithdrawOpType($list['last_op_type']);
|
|
|
|
|
$list['settlement_type_text'] = WithdrawModel::$settlementTypeList[$list['settlement_type']] ?? '未知';
|
|
|
|
|
switch ($list['status']) {
|
|
|
|
|
case -2:
|
|
|
|
|
$list['status_name'] = '<span style="color: #bbbaba;">' . $list['status_name'] . '</span>';
|
|
|
|
@ -454,6 +460,8 @@ class FinanceController extends BaseController
|
|
|
|
|
|
|
|
|
|
$page = set_pagination($count, $row, $parameter);
|
|
|
|
|
|
|
|
|
|
$settlementTypeList = WithdrawModel::$settlementTypeList;
|
|
|
|
|
|
|
|
|
|
$this->assign('listData', $data);
|
|
|
|
|
$this->assign('count', $count);
|
|
|
|
|
$this->assign('initBegTime', $initBegTime);
|
|
|
|
@ -462,6 +470,7 @@ class FinanceController extends BaseController
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|
$this->assign('meta_title', $metaTitle);
|
|
|
|
|
$this->assign('modelList', $modelList);
|
|
|
|
|
$this->assign('settlementTypeList', $settlementTypeList);
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|