|
@@ -15,12 +15,24 @@ class refill_companyControl extends SystemControl
|
|
|
$cond['co_name'] = ['like', '%'.$_GET['co_name'].'%'];
|
|
|
}
|
|
|
if(!empty($_GET['co_type'])) {
|
|
|
- $cond['params'] = $_GET['co_type'];
|
|
|
+ $cond['co_type'] = $_GET['co_type'];
|
|
|
}
|
|
|
if(!empty($_GET['opened'])) {
|
|
|
$cond['opened'] = $_GET['opened'];
|
|
|
}
|
|
|
- $list = $company_mod->getCompanyList($cond);
|
|
|
+ $list = $company_mod->getCompanyList($cond, 50);
|
|
|
+
|
|
|
+ $company_debts = rcache("company-debts", 'refill-');
|
|
|
+
|
|
|
+ foreach ($list as $key => $value)
|
|
|
+ {
|
|
|
+ $co_id = $value['co_id'];
|
|
|
+ if(array_key_exists($co_id, $company_debts)) {
|
|
|
+ $list[$key]['debt'] = number_format($company_debts[$co_id],2,'.','');
|
|
|
+ }else{
|
|
|
+ $list[$key]['debt'] = '/';
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
Tpl::output('list', $list);
|
|
|
Tpl::output('show_page', $company_mod->showpage());
|
|
@@ -187,7 +199,7 @@ class refill_companyControl extends SystemControl
|
|
|
} elseif ($end_unixtime > 0) {
|
|
|
$cond['add_time'] = ['lt', $end_unixtime];
|
|
|
}
|
|
|
- $list = $mod_remit->getRemitList($cond);
|
|
|
+ $list = $mod_remit->getRemitList($cond, 50);
|
|
|
foreach ($list as $key => $value)
|
|
|
{
|
|
|
$list[$key]['amount'] = number_format($value['amount'],4,'.',',');
|