Commit 20668ca7 authored by hujun's avatar hujun

20

parent 00a30979
...@@ -3908,9 +3908,13 @@ class Finance extends Basic ...@@ -3908,9 +3908,13 @@ class Finance extends Basic
return $this->response($code, '参数错误'); return $this->response($code, '参数错误');
} }
$msg = ''; $msg = '';
$where['status'] = 20;
$where[] = ['EXP', 'a.id ='.$this->params['id'].' OR a.father_id='.$this->params['id']]; $where[] = ['EXP', 'a.id ='.$this->params['id'].' OR a.father_id='.$this->params['id']];
$agent_arr = $this->m_bargain->agentBargainAll('a.create_time,a.agent_id,b.store_id,b.district_id', $where); $agent_arr = $this->m_bargain->agentBargainAll('a.create_time,a.agent_id,b.store_id,b.district_id', $where);
if (empty($agent_arr)) {
return $this->response($code, '没有该记录');
}
foreach ($agent_arr as $k=>$v) { foreach ($agent_arr as $k=>$v) {
try { try {
$this->totalOfficialReceipts($v['agent_id'], $v['district_id'], $v['store_id'], $v['create_time']); $this->totalOfficialReceipts($v['agent_id'], $v['district_id'], $v['store_id'], $v['create_time']);
......
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