Commit bfe7ac3e by HTML5-侯张振

更改历史记录bug

parent cd5616fb
...@@ -112,8 +112,10 @@ class Customer_building_log_model extends MY_Model{ ...@@ -112,8 +112,10 @@ class Customer_building_log_model extends MY_Model{
->from('tb_customer_building_log CB') ->from('tb_customer_building_log CB')
->join('tb_building B', 'B.id= CB.building_id', 'left') ->join('tb_building B', 'B.id= CB.building_id', 'left')
->join('tb_customer TC', 'TC.id = CB.customer_id', 'left') ->join('tb_customer TC', 'TC.id = CB.customer_id', 'left')
->join('tb_user US', 'US.id=CB.sale_id', 'left') ->join('tb_customer_building SB','SB.customer_id = CB.customer_id','left')
->join('tb_user UM', 'UM.id = CB.manager_id', 'left') ->join('tb_customer_sales CS','CS.customer_building_id = SB.id','left')
->join('tb_user US', 'US.id=CS.sale_id', 'left')
->join('tb_user UM', 'UM.id = SB.manager_id', 'left')
->join('tb_user UU', 'UU.id = CB.user_id', 'left') ->join('tb_user UU', 'UU.id = CB.user_id', 'left')
->join('tb_distributor D', 'D.uniqid_id=UU.uniqid_id', 'left'); ->join('tb_distributor D', 'D.uniqid_id=UU.uniqid_id', 'left');
......
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