Commit 12c4a60d authored by hujun's avatar hujun

财务审核列表-增加分佣方搜索-报错处理

parent d4c73460
......@@ -360,7 +360,7 @@ class OBargainModel extends Model
->join('o_order c', 'a.order_id = c.id', 'left')
->join('g_houses d', 'c.house_id = d.id', 'left')
->join('a_agents f', 'b.report_agent_id=f.id', 'left')
->join('a_agents e', 'a.agent_id=e.id', 'left')
->join('a_agents g', 'a.agent_id=g.id', 'left')
->where($params)
->having('count(e.order_id) = 1')
->order($order_)
......@@ -374,7 +374,7 @@ class OBargainModel extends Model
->join('o_order c', 'a.order_id = c.id', 'left')
->join('g_houses d', 'c.house_id = d.id', 'left')
->join('a_agents f', 'b.report_agent_id=f.id', 'left')
->join('a_agents e', 'a.agent_id=e.id', 'left')
->join('a_agents g', 'a.agent_id=g.id', 'left')
->where($params)
->group('a.id')
->order($order_)
......@@ -422,7 +422,7 @@ class OBargainModel extends Model
->join('o_order c', 'a.order_id = c.id', 'left')
->join('g_houses d', 'c.house_id = d.id', 'left')
->join('a_agents f', 'b.report_agent_id=f.id', 'left')
->join('a_agents e', 'a.agent_id=e.id', 'left')
->join('a_agents g', 'a.agent_id=g.id', 'left')
->where($params)
->having('count(e.order_id) = 1')
->group('e.order_id')
......@@ -433,7 +433,7 @@ class OBargainModel extends Model
->join('o_order c', 'a.order_id = c.id', 'left')
->join('g_houses d', 'c.house_id = d.id', 'left')
->join('a_agents f', 'b.report_agent_id=f.id', 'left')
->join('a_agents e', 'a.agent_id=e.id', 'left')
->join('a_agents g', 'a.agent_id=g.id', 'left')
->where($params)
->group('a.id')
->count();
......
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