|
|
|
@ -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 = [];
|
|
|
|
|