Commit 9263102a authored by hujun's avatar hujun

商铺同步修改

parent e104e033
This diff is collapsed.
...@@ -778,7 +778,6 @@ class OfficeBargain extends Basic ...@@ -778,7 +778,6 @@ class OfficeBargain extends Basic
} }
if (!empty($content)) { if (!empty($content)) {
dump($father_id);die;
$this->editRecordLog($father_id, '【编号:' . $father_id . '】'.$content); $this->editRecordLog($father_id, '【编号:' . $father_id . '】'.$content);
} }
/*记录日志 end*/ /*记录日志 end*/
......
...@@ -1367,6 +1367,7 @@ class OBargainModel extends Model ...@@ -1367,6 +1367,7 @@ class OBargainModel extends Model
->field($filed) ->field($filed)
->alias("a") ->alias("a")
->join("o_partial_commission b", "a.id = b.bargain_id", "left") ->join("o_partial_commission b", "a.id = b.bargain_id", "left")
->join("o_real_income c", "b.real_income_id = c.id", "left")
->where($where_) ->where($where_)
->whereOr($whereOr_) ->whereOr($whereOr_)
->order("a.id asc") ->order("a.id asc")
...@@ -1631,6 +1632,24 @@ class OBargainModel extends Model ...@@ -1631,6 +1632,24 @@ class OBargainModel extends Model
->select(); ->select();
} }
/**
* @param $field
* @param $where
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function agentBargainIncome($field, $where) {
return $this->db_->alias('a')
->field($field)
->join('a_agents b', 'a.agent_id = b.id', 'left')
->join('office_o_partial_commission c', 'a.id = c.bargain_id', 'left')
->join('office_o_real_income d', 'c.real_income_id = d.id', 'left')
->where($where)
->select();
}
/** /**
* @param $field * @param $field
* @param $where * @param $where
......
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