Commit 91b6c625 authored by hujun's avatar hujun

经纪人门店和部门id

parent d4cda1f2
......@@ -2151,22 +2151,22 @@ class Finance extends Basic
if ($data_arr['father_id'] == 0) {
$father_id = $data_arr['father_id'];
}
$this->totalOfficialReceipts($data_arr['agent_id'], $data_arr['district_id'], $data_arr['store_id'], $data_arr['create_time']);
$this->totalOfficialReceipts($this->params['agent_id'], $data_arr['district_id'], $data_arr['store_id'], $data_arr['create_time']);
$content = '';
if ($data_arr['agent_id'] != $this->params['agent_id']) {
$agent_id[0] = $data_arr['agent_id'];
$agent_id[1] = $this->params['agent_id'];
$m_agent = new AAgents();
$agent_data = $m_agent->getAgentById('id,name,phone', [ 'in_id' => $agent_id ]);
$agent_data = $m_agent->getAgentById('id,name,phone,district_id,store_id', [ 'in_id' => $agent_id ]);
foreach ($agent_data as $v) {
if ($v['id'] == $data_arr['agent_id']) {
$this->totalOfficialReceipts($v['agent_id'], $v['district_id'], $v['store_id'], $data_arr['create_time']);
$content .= '【分佣方:' . $agent_data[0]['name'] . '-' . $agent_data[0]['phone'].'】';
}
if ($v['id'] == $this->params['agent_id']) {
$this->totalOfficialReceipts($v['agent_id'], $v['district_id'], $v['store_id'], $data_arr['create_time']);
$content .= '【修改为:' . $agent_data[1]['name'] . '-' . $agent_data[1]['phone'] . '】';
}
}
......
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