Commit 83795f22 authored by hujun's avatar hujun

去除空统计

parent ab9b9956
......@@ -2945,6 +2945,10 @@ class Finance extends Basic
*/
public function totalOfficialReceiptsV2($agent_id, $district_id, $store_id, $create_time = '', $income_time = '')
{
if (empty($agent_id)) {
return false;
}
//获取被修改人信息
$m_agent_total = new TAgentTotalModel();
$where_bargain['agent_id'] = $agent_id;
......
......@@ -171,6 +171,10 @@ class ResultsSummaryNewTask
*/
public function updateTotalByAgentId($agent_id, $store_id, $district_id, $total_time,$site_id)
{
if (empty($agent_id)) {
return false;
}
$params[0]["id"] = $agent_id;
$params[0]["store_id"] = $store_id;
$params[0]["district_id"] = $district_id;
......@@ -371,6 +375,9 @@ class ResultsSummaryNewTask
//获取被修改人信息
$agent_data = $this->agentsModel->agentBargainAll('a.id,a.store_id,a.district_id,d.income_time,b.create_time', $where);
foreach ($agent_data as $k=>$v) {
if (empty($v['id'])) {
continue;
}
$this->totalOfficialReceipts($v['id'], $v['district_id'], $v['store_id'], $v['create_time'], $v['income_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