Commit dc63a1ac authored by hujun's avatar hujun

paylog

parent d6af116d
...@@ -387,6 +387,7 @@ class OBargainModel extends Model ...@@ -387,6 +387,7 @@ class OBargainModel extends Model
->join('o_order c', 'a.order_id = c.id', 'left') ->join('o_order c', 'a.order_id = c.id', 'left')
->join('g_houses d', 'c.house_id = d.id', 'left') ->join('g_houses d', 'c.house_id = d.id', 'left')
->join('o_partial_commission e', 'e.bargain_id = a.id', 'left') ->join('o_partial_commission e', 'e.bargain_id = a.id', 'left')
->join('o_paylog f', 'a.id = f.bargain_id', 'left')
->where($params) ->where($params)
->sum($field); ->sum($field);
} }
......
...@@ -90,6 +90,7 @@ class ORealIncome extends BaseModel ...@@ -90,6 +90,7 @@ class ORealIncome extends BaseModel
->join('o_report b', 'a.report_id = b.id', 'left') ->join('o_report b', 'a.report_id = b.id', 'left')
->join('o_order c', 'a.order_id = c.id', 'left') ->join('o_order c', 'a.order_id = c.id', 'left')
->join('g_houses d', 'c.house_id = d.id', 'left') ->join('g_houses d', 'c.house_id = d.id', 'left')
->join('o_paylog f', 'a.id = f.bargain_id', 'left')
->where($params) ->where($params)
->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