cqpCow 11 bulan lalu
induk
melakukan
605b75c1ba
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      app/Service/SalesOrderService.php

+ 2 - 1
app/Service/SalesOrderService.php

@@ -1295,7 +1295,8 @@ class SalesOrderService extends Service
     public function salesOrderListsalesOrderWxList($data,$user){
         $model = SalesOrder::where('del_time',0)
             ->select('id','sales_order_type','model_type','order_number','selling_price','vin_no','car_type','order_type','customer_id','sign_time','crt_id','crt_time','mark','product_total','rate','construction_time','handover_time','other_fee','discount_fee','contract_fee','pay_way','car_type','year','mileage','color','original_set','processing','state','invoice_state','plat_type','plat_order','install_method','install_position','customer_contact','is_confirm','dispatch_time_second')
-            ->orderby('id', 'desc');
+            ->orderby('id', 'desc')
+            ->orderby('dispatch_time_second','desc');
 
         if(! empty($data['openid'])){
             $mobile = WxEmployee::where('openid',$data['openid'])->select('mobile')->get()->toArray();