Commit b5d094e4 authored by hujun's avatar hujun

退款审核

parent 3f3ba255
...@@ -180,10 +180,7 @@ class Finance extends Basic ...@@ -180,10 +180,7 @@ class Finance extends Basic
} else { } else {
$bargain = new OBargainModel(); $bargain = new OBargainModel();
$fields = 'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.commission,a.practical_fee'; $fields = 'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.commission,a.practical_fee';
$where['a.father_id'] = 0; $where['a.id'] = $this->params['id'];
$where['c.is_del'] = 0;
// $where['a.check_status'] = 0;
$where['a.status'] = 10;
$data['data'] = $bargain->getBargainInfo($fields, $where); $data['data'] = $bargain->getBargainInfo($fields, $where);
} }
...@@ -330,6 +327,9 @@ class Finance extends Basic ...@@ -330,6 +327,9 @@ class Finance extends Basic
* 收款记录 * 收款记录
* *
* @return \think\Response * @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function payLogList() { public function payLogList() {
$data['code'] = 200; $data['code'] = 200;
...@@ -355,7 +355,11 @@ class Finance extends Basic ...@@ -355,7 +355,11 @@ class Finance extends Basic
/** /**
* 报备时间轴 * 报备时间轴
*
* @return \think\Response * @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function selectReportAll() public function selectReportAll()
{ {
...@@ -459,7 +463,7 @@ class Finance extends Basic ...@@ -459,7 +463,7 @@ class Finance extends Basic
$where['a.status'] = 1; $where['a.status'] = 1;
$refund = new ORefundModel(); $refund = new ORefundModel();
$fields = 'a.id,a.agent_name,a.name,a.bank,a.card_no,a.create_time,a.refund_money,b.report_agent_name,b.user_name,b.order_id'; $fields = 'a.id,a.agent_name,a.name,a.bank,a.card_no,a.create_time,a.refund_money,b.report_agent_name,b.user_name,a.order_id';
$data['data']['list'] = $refund->getCheckRefundList($pageNo, $pageSize, 'a.id DESC', $fields, $where); $data['data']['list'] = $refund->getCheckRefundList($pageNo, $pageSize, 'a.id DESC', $fields, $where);
$data['data']['total'] = $refund->getCheckRefundListTotal($where); $data['data']['total'] = $refund->getCheckRefundListTotal($where);
......
...@@ -73,12 +73,13 @@ class OBargainModel extends Model ...@@ -73,12 +73,13 @@ class OBargainModel extends Model
* *
* @param $filed * @param $filed
* @param $params * @param $params
* @param string $order
* @return false|\PDOStatement|string|\think\Collection * @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function selectBargainByOrderNo($filed, $params) public function selectBargainByOrderNo($filed, $params, $order = 'id desc')
{ {
$where_ = []; $where_ = [];
if (isset($params["report_id"])) { if (isset($params["report_id"])) {
...@@ -97,6 +98,7 @@ class OBargainModel extends Model ...@@ -97,6 +98,7 @@ class OBargainModel extends Model
return $this->db_ return $this->db_
->field($filed) ->field($filed)
->where($where_) ->where($where_)
->order($order)
->select(); ->select();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment