@@ -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');;
}
@@ -60,7 +60,7 @@ class LowPriceGoods extends Model
- return $this->hasMany(LowPriceGoodsKeywordModel::class,'lowprice_product_id','id');
+ return $this->hasMany(LowPriceGoodsKeywordModel::class,'lowprice_product_id','id')->orderBy('id','asc');
@@ -61,7 +61,7 @@ class ViolationProduct extends Model
- return $this->hasMany(ViolationProductKeywordModel::class,'violation_product_id','id');
+ return $this->hasMany(ViolationProductKeywordModel::class,'violation_product_id','id')->orderBy('id','asc');;