Commit 6f8b73f7 authored by hujun's avatar hujun

agent_id

parent b84afcba
...@@ -2499,7 +2499,7 @@ class Finance extends Basic ...@@ -2499,7 +2499,7 @@ class Finance extends Basic
$m_partial = new OPartialCommission(); $m_partial = new OPartialCommission();
$m_partial->editData(['is_del'=>1], $this->params['partial_id'], 'bargain_id'); $m_partial->editData(['is_del'=>1], $this->params['partial_id'], 'bargain_id');
$this->updatePerformance(0, $this->params['partial_id']); $this->updatePerformanceAll($this->params['partial_id'], $agent_id);
$m_tax = new OTaxes(); $m_tax = new OTaxes();
$m_tax->updateData(['is_del'=>1],['agent_id'=>$agent_id,'bargain_id'=>$partial_id]); $m_tax->updateData(['is_del'=>1],['agent_id'=>$agent_id,'bargain_id'=>$partial_id]);
...@@ -2718,7 +2718,7 @@ class Finance extends Basic ...@@ -2718,7 +2718,7 @@ class Finance extends Basic
* @param int $bargain_id * @param int $bargain_id
* @return array * @return array
*/ */
private function updatePerformanceAll(int $bargain_id = 0): array private function updatePerformanceAll(int $bargain_id = 0, $agent_id = 0): array
{ {
$data['status'] = 'fail'; $data['status'] = 'fail';
try { try {
...@@ -2726,6 +2726,11 @@ class Finance extends Basic ...@@ -2726,6 +2726,11 @@ class Finance extends Basic
if ($bargain_id) { if ($bargain_id) {
$where[] = ['EXP','b.id = '.$bargain_id. ' OR b.father_id='.$bargain_id]; $where[] = ['EXP','b.id = '.$bargain_id. ' OR b.father_id='.$bargain_id];
} }
if ($agent_id) {
$where['a.id'] = $agent_id;
}
if (!empty($where)) { if (!empty($where)) {
//获取被修改人信息 //获取被修改人信息
$m_agent = new AAgents(); $m_agent = new AAgents();
......
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