Commit 50826c26 authored by hujun's avatar hujun

成交报告审核

parent a3198cfc
...@@ -71,7 +71,7 @@ class Finance extends Basic ...@@ -71,7 +71,7 @@ class Finance extends Basic
a.commission,a.practical_fee,a.scale_fee,a.order_no,a.order_id,content,house_number'; a.commission,a.practical_fee,a.scale_fee,a.order_no,a.order_id,content,house_number';
$where['a.father_id'] = 0; $where['a.father_id'] = 0;
// $where['c.is_del'] = 0; // $where['c.is_del'] = 0;
$where['a.status'] = 10; $where['a.status'] = 11;
$order = 'e.id desc'; $order = 'e.id desc';
if (!empty($this->params['create_time']) && empty($this->params['end_time'])) { if (!empty($this->params['create_time']) && empty($this->params['end_time'])) {
...@@ -1136,6 +1136,8 @@ class Finance extends Basic ...@@ -1136,6 +1136,8 @@ class Finance extends Basic
$data['is_del'] = 1; $data['is_del'] = 1;
$data = $m_financial->editData($data, $this->params['bargain_id'], 'bargain_id'); $data = $m_financial->editData($data, $this->params['bargain_id'], 'bargain_id');
$m_bargain = new OBargainModel();
$m_bargain->updateBargainById($this->params['bargain_id'], ['status'=>10]);
$msg = ''; $msg = '';
if ($data > 0) { if ($data > 0) {
$code = 200; $code = 200;
......
...@@ -380,7 +380,7 @@ class OBargainModel extends Model ...@@ -380,7 +380,7 @@ class OBargainModel extends Model
*/ */
public function addCheckBargain(int $id, array $data, int $source, int $status): bool public function addCheckBargain(int $id, array $data, int $source, int $status): bool
{ {
$this->startTrans(); // $this->startTrans();
$bargain_data = $this->field('id,report_id,agent_id,order_no,order_id')->where([ $bargain_data = $this->field('id,report_id,agent_id,order_no,order_id')->where([
'id' => $id, 'id' => $id,
'status' => ['in','10,11'] 'status' => ['in','10,11']
......
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