Commit 052f6b95 authored by hujun's avatar hujun

财务统计

parent 4c3b664f
...@@ -546,7 +546,7 @@ class OPayLogModel extends Model ...@@ -546,7 +546,7 @@ class OPayLogModel extends Model
*/ */
public function sumBargainPrice($field, $where) { public function sumBargainPrice($field, $where) {
return $this->db_->alias('a') return $this->db_->alias('a')
->join('o_bargain b','a.order_id=b.order_id', 'left') ->join('o_bargain b','a.bargain_id=b.id', 'left')
->where($where) ->where($where)
->sum($field); ->sum($field);
} }
......
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