|
@@ -40,7 +40,7 @@ class OrderModel extends BaseModel
|
|
|
*/
|
|
*/
|
|
|
public function orderGoods()
|
|
public function orderGoods()
|
|
|
{
|
|
{
|
|
|
- return $this->hasMany(OrderGoodsModel::class, 'order_id', 'id')
|
|
|
|
|
|
|
+ return $this->hasMany(OrderGoodsModel::class, 'order_no', 'order_no')
|
|
|
->with(['category'])
|
|
->with(['category'])
|
|
|
->where('mark', 1);
|
|
->where('mark', 1);
|
|
|
}
|
|
}
|