Kirin 3 years ago
parent
commit
989e568a87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/system/SystemStoreStockBill.php

+ 1 - 1
app/models/system/SystemStoreStockBill.php

@@ -59,7 +59,7 @@ class SystemStoreStockBill extends BaseModel
         $model = $model->where('a.id','>',0);
         $model = $model->field('a.*,b.image,b.is_show,b.is_del,b.store_name');
         $count = $model->count();
-        $data = $model->page($where['page'],$where['limit'])->order("product_id desc")->select()->toarray();
+        $data = $model->page($where['page'],$where['limit'])->order("id desc")->select()->toarray();
         foreach ($data as &$v)
         {
             $v['store'] = SystemStore::where('id',$v['store_id'])->value('name');