tangyuanwang 1 день назад
Родитель
Сommit
b3cf7e9ab9

+ 1 - 1
app/Models/Manager/Collect/Product.php

@@ -56,7 +56,7 @@ class Product extends Model
      * @date 2026-03-31
      */
     public function product_keyword(){
-        return $this->hasMany(ProductKeywordModel::class,'collect_product_id','id');
+        return $this->hasMany(ProductKeywordModel::class,'collect_product_id','id')->orderBy('id','asc');;
     }
 
 

+ 1 - 1
app/Models/Manager/WashConfig/LowPriceGoods.php

@@ -60,7 +60,7 @@ class LowPriceGoods extends Model
      * @date 2026-03-31
      */
     public function product_keyword(){
-        return $this->hasMany(LowPriceGoodsKeywordModel::class,'lowprice_product_id','id');
+        return $this->hasMany(LowPriceGoodsKeywordModel::class,'lowprice_product_id','id')->orderBy('id','asc');
     }
 
 

+ 1 - 1
app/Models/Manager/WashConfig/ViolationProduct.php

@@ -61,7 +61,7 @@ class ViolationProduct extends Model
      * @date 2026-03-31
      */
     public function product_keyword(){
-        return $this->hasMany(ViolationProductKeywordModel::class,'violation_product_id','id');
+        return $this->hasMany(ViolationProductKeywordModel::class,'violation_product_id','id')->orderBy('id','asc');;
     }