|
@@ -725,7 +725,7 @@ class ordersendlistControl extends SystemControl
|
|
|
|
|
|
public function order_exceptionOp()
|
|
|
{
|
|
|
- $mod = Model('refill_exception');
|
|
|
+ $mod_except = Model('refill_exception');
|
|
|
$cond['exc_state'] = 0;
|
|
|
|
|
|
if (!empty($_GET['order_sns'])) {
|
|
@@ -735,7 +735,7 @@ class ordersendlistControl extends SystemControl
|
|
|
if(in_array($_GET['exc_state'], ['0', '1'])) {
|
|
|
$cond['exc_state'] = $_GET['exc_state'];
|
|
|
}
|
|
|
- $list = $mod->getRefillExceptionList($cond);
|
|
|
+ $list = $mod_except->getExceptionList($cond);
|
|
|
|
|
|
$merchant_list = $this->merchants();
|
|
|
foreach ($merchant_list as $value) {
|
|
@@ -743,7 +743,7 @@ class ordersendlistControl extends SystemControl
|
|
|
}
|
|
|
Tpl::output('merchant_list', $merchants);
|
|
|
Tpl::output('list', $list);
|
|
|
- Tpl::output('show_page', $mod->showpage());
|
|
|
+ Tpl::output('show_page', $mod_except->showpage());
|
|
|
Tpl::showpage('refill.order.exception');
|
|
|
}
|
|
|
|
|
@@ -751,11 +751,13 @@ class ordersendlistControl extends SystemControl
|
|
|
{
|
|
|
$exc_ids = $_GET['exc_ids'];
|
|
|
$exc_ids = explode(',', $exc_ids);
|
|
|
+
|
|
|
$cond['exc_id'] = ['in',$exc_ids];
|
|
|
$cond['exc_state'] = 0;
|
|
|
- $mod = Model('refill_exception');
|
|
|
- $order_exceptions = $mod->getRefillExceptionList($cond);
|
|
|
- if(empty($order_exceptions)) {
|
|
|
+ $mod_except = Model('refill_exception');
|
|
|
+
|
|
|
+ $excepts = $mod_except->getExceptionList($cond);
|
|
|
+ if(empty($excepts)) {
|
|
|
showMessage('操作完成');
|
|
|
}
|
|
|
|
|
@@ -763,11 +765,9 @@ class ordersendlistControl extends SystemControl
|
|
|
$update['admin_id'] = $admininfo['id'];
|
|
|
$update['admin_name'] = $admininfo['name'];
|
|
|
$update['update_time'] = time();
|
|
|
- foreach ($order_exceptions as $order_exception)
|
|
|
- {
|
|
|
-
|
|
|
- $exc_id = $order_exception['exc_id'];
|
|
|
- $mod->ExceptionHandled($exc_id, $update);
|
|
|
+ foreach ($excepts as $except) {
|
|
|
+ $exc_id = $except['exc_id'];
|
|
|
+ $mod_except->setHandled($exc_id, $update);
|
|
|
}
|
|
|
showMessage('操作完成');
|
|
|
}
|