Pārlūkot izejas kodu

修复:后台??商品SKU顺序不正确

萤火科技 1 gadu atpakaļ
vecāks
revīzija
275a135080
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      app/common/model/GoodsSku.php

+ 1 - 0
app/common/model/GoodsSku.php

@@ -103,6 +103,7 @@ class GoodsSku extends BaseModel
     {
         return (new static)->with($withImage ? ['image'] : [])
             ->where('goods_id', '=', $goodsId)
+            ->order(['id' => 'asc'])
             ->select();
     }