[积分商城]兑换订单-优化

This commit is contained in:
2026-03-19 16:29:52 +08:00
parent 20d89089ca
commit f3d65280e7
3 changed files with 11 additions and 2 deletions

View File

@@ -52,7 +52,9 @@ class RedemptionOrder extends Backend
*/
list($where, $alias, $limit, $order) = $this->queryBuilder();
$res = $this->model
->withJoin($this->withJoinTable, $this->withJoinType)
->with(['mallUser' => function ($query) {
$query->field('id,username');
}])
->visible(['mallUser' => ['username'], 'mallItem' => ['title']])
->alias($alias)
->where($where)