Sfoglia il codice sorgente

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

萤火科技 1 anno fa
parent
commit
275a135080
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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();
     }