Commit 24abee34 authored by hujun's avatar hujun

where

parent 315d365d
...@@ -2609,7 +2609,7 @@ class Finance extends Basic ...@@ -2609,7 +2609,7 @@ class Finance extends Basic
$m_report = new OReportModel(); $m_report = new OReportModel();
$m_agent_house = new GHousesToAgents(); $m_agent_house = new GHousesToAgents();
$m_house = new GHouses(); $m_house = new GHouses();
$m_refund = new ORefundLogModel(); $m_refund = new ORefundModel();
foreach ($list as $k=>$v) { foreach ($list as $k=>$v) {
if ($v['source'] == 2) { if ($v['source'] == 2) {
$source_id = $m_pay_adjustment->getFieldColumn('id', ['new_paylog_id'=> $v['id']]); $source_id = $m_pay_adjustment->getFieldColumn('id', ['new_paylog_id'=> $v['id']]);
...@@ -2618,8 +2618,8 @@ class Finance extends Basic ...@@ -2618,8 +2618,8 @@ class Finance extends Basic
$list[$k]['source_id'] = ''; $list[$k]['source_id'] = '';
} }
$num = $m_refund->getTotal(['order_id'=>$v['order_id'],'is_del'=>0]); $num = $m_refund->getFind('id',['pay_log_id'=>$v['id'],'is_del'=>0]);
if ($num > 0) { if ($num['id'] > 0) {
$list[$k]['is_refund'] = 1; $list[$k]['is_refund'] = 1;
} else { } else {
$list[$k]['is_refund'] = 0; $list[$k]['is_refund'] = 0;
......
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