【问题标题】:My addSelect query works unsure in this case我的 addSelect 查询在这种情况下不确定
【发布时间】:2022-06-13 13:34:52
【问题描述】:

php return RepositoryAction::selectRaw("repository_actions.id,repository_actions.product_variant_id, ->添加选择([ 'last_price' => RepositoryAction::where('parent_id', 'repository_actions.parent_id') // ->where('ra.id', '!=', 'repository_actions.id') ->orderByDesc('id') ->selectRaw('价格') ->限制(1) ]) ->where('currency_id', $currencyId) ->groupBy('repository_actions.id') ->get();

【问题讨论】:

标签: php laravel


猜你喜欢
  • 1970-01-01
  • 2017-11-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多