Commit 826e7db3 authored by hujun's avatar hujun

order_id

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