Commit 5c872b49 authored by hujun's avatar hujun

去重

parent 2ac40322
...@@ -744,8 +744,12 @@ class Finance extends Basic ...@@ -744,8 +744,12 @@ class Finance extends Basic
$where['a.is_del'] = 0; $where['a.is_del'] = 0;
if (isset($this->params['status']) && $this->params['status'] != -1) { if (isset($this->params['status']) && $this->params['status'] != -1) {
if ($this->params['status'] == 1) {
$where['a.status'] = ['in', '0,1'];
} else {
$where['a.status'] = $this->params['status']; $where['a.status'] = $this->params['status'];
} }
}
if (!empty($this->params['start_time']) && empty($this->params['end_time'])) { if (!empty($this->params['start_time']) && empty($this->params['end_time'])) {
$where['a.create_time'] = ['>', $this->params['start_time']. ' 00:00:00']; $where['a.create_time'] = ['>', $this->params['start_time']. ' 00:00:00'];
...@@ -3696,9 +3700,14 @@ class Finance extends Basic ...@@ -3696,9 +3700,14 @@ class Finance extends Basic
switch ($this->params['status']) { switch ($this->params['status']) {
case 1 : case 1 :
$log_where['status'] = 1; $log_where['status'] = 1;
$check_num = $m_refund_log->getTotal($log_where); $check_agent_id = $m_refund_log->getListAll('operation_id',$log_where);
if ($check_num == 3) { foreach ($check_agent_id as $v) {
if ($v['operation_id'] == $this->userId) {
return $this->response(101, '你已审核过');
}
}
if (count($check_agent_id) == 3) {
$status = 3; //已审核 $status = 3; //已审核
} }
$save_data['status'] = 1; $save_data['status'] = 1;
......
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