Commit 826e7db3 authored by hujun's avatar hujun

order_id

parent d721ca28
...@@ -2386,8 +2386,11 @@ class Finance extends Basic ...@@ -2386,8 +2386,11 @@ class Finance extends Basic
} }
if (!empty($this->params['bargain_id'])) { if (!empty($this->params['bargain_id'])) {
$order_id = $this->m_bargain->getFieldValue('order_id', $this->params['bargain_id']); $order_id = $this->m_bargain->getFieldValue('order_id', ['id'=>$this->params['bargain_id']]);
$where[] = ['EXP', 'a.id='.$order_id];
if (!empty($order_id)) {
$where[] = ['EXP', 'a.id='.$order_id];
}
} }
if (!empty($this->params['pay_id'])) { if (!empty($this->params['pay_id'])) {
......
...@@ -1593,7 +1593,7 @@ class OBargainModel extends Model ...@@ -1593,7 +1593,7 @@ class OBargainModel extends Model
* @return mixed * @return mixed
*/ */
public function getFieldValue($field, $where) { public function getFieldValue($field, $where) {
return $this->where($where)->value($field); return $this->db_->where($where)->value($field);
} }
/** /**
...@@ -1605,7 +1605,7 @@ class OBargainModel extends Model ...@@ -1605,7 +1605,7 @@ class OBargainModel extends Model
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function getDetail($field, $where) { public function getDetail($field, $where) {
return $this->field($field) return $this->db_->field($field)
->where($where) ->where($where)
->find(); ->find();
} }
......
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