补单记录

master
zhanglingsheng 5 years ago
parent 93123b3b95
commit 087a935c45

@ -122,9 +122,9 @@ class BehaviorLogController extends ThinkController
if(!empty(I('get.order_number'))) {
$map['tab_spend.order_number'] = I('get.order_number');
$data = M('repair_pay', 'tab_')->join('tab_spend on tab_spend.pay_order_number = tab_repair_pay.pay_order_number')->where($map)->page($p, $row)->select();
$data = M('repair_pay', 'tab_')->join('tab_spend on tab_spend.pay_order_number = tab_repair_pay.pay_order_number')->where($map)->page($p, $row)->order('tab_repair_pay.id DESC')->select();
} else {
$data = M('repair_pay', 'tab_')->where($map)->page($p, $row)->select();
$data = M('repair_pay', 'tab_')->where($map)->page($p, $row)->order('id DESC')->select();
}
$show_data = [];

@ -2134,9 +2134,9 @@ class ExportController extends Controller
if(!empty(I('get.order_number'))) {
$map['tab_spend.order_number'] = I('get.order_number');
$data = M('repair_pay', 'tab_')->join('tab_spend on tab_spend.pay_order_number = tab_repair_pay.pay_order_number')->where($map)->page($p, $row)->select();
$data = M('repair_pay', 'tab_')->join('tab_spend on tab_spend.pay_order_number = tab_repair_pay.pay_order_number')->where($map)->page($p, $row)->order('tab_repair_pay.id DESC')->select();
} else {
$data = M('repair_pay', 'tab_')->where($map)->page($p, $row)->select();
$data = M('repair_pay', 'tab_')->where($map)->page($p, $row)->order('id DESC')->select();
}
$xlsData = [];

Loading…
Cancel
Save