cqpCow 1 年之前
父節點
當前提交
e87daf37ec
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/Service/PurchaseOrderService.php

+ 1 - 2
app/Service/PurchaseOrderService.php

@@ -207,8 +207,7 @@ class PurchaseOrderService extends Service
      */
     public function getList($data,$user){
         $model = new PurchaseOrder(['userData' => $user]);
-        $model->where('del_time',0)
-            ->select('order_number','id','depart_id','top_depart_id','mark','crt_time','state','crt_id','order_type','sales_order_id','supplier','purchase_id','purchase_total','rate','discount_fee','other_fee','total','is_purchase_to_main')
+        $model = $model->where('del_time',0)->select('order_number','id','depart_id','top_depart_id','mark','crt_time','state','crt_id','order_type','sales_order_id','supplier','purchase_id','purchase_total','rate','discount_fee','other_fee','total','is_purchase_to_main')
             ->orderby('id', 'desc');
         if(! empty($data['order_number'])) $model->where('order_number', 'LIKE', '%'.$data['order_number'].'%');
         if(! empty($data['depart_id'])) $model->where('depart_id', $data['depart_id']);