From a47b138c7455dee981af9b4fac431a16c0eee675 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 25 Dec 2025 18:04:42 +0800
Subject: [PATCH] 报名导出修改
---
admin/app/shop/model/branch/ActivityUser.php | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/admin/app/shop/model/branch/ActivityUser.php b/admin/app/shop/model/branch/ActivityUser.php
index 1b721d2..697f3b3 100644
--- a/admin/app/shop/model/branch/ActivityUser.php
+++ b/admin/app/shop/model/branch/ActivityUser.php
@@ -34,6 +34,7 @@
$model = $this->alias('auser')
->field('auser.*, user.nickName, user.avatarUrl')
->join('user', 'user.user_id = auser.user_id')
+ ->with(['activity'=>['branch'],'branch'])
->where('auser.is_delete', '=', 0)
->order(['auser.create_time' => 'desc']);
// 查询条件
@@ -43,6 +44,16 @@
if (!empty($params['activity_id'])) {
$model = $model->where('auser.activity_id', '=', $params['activity_id']);
}
+ if (!empty($params['pay_status'])) {
+ if ($params['pay_status']>0){
+ $model = $model->where('auser.pay_status', '=', $params['pay_status']);
+ }
+ }
+ if (isset($params['status'])) {
+ if ($params['status']>-1) {
+ $model = $model->where('auser.status', '=', $params['status']);
+ }
+ }
// 如果不分页
if (!$is_page) {
if ($limit) {
--
Gitblit v1.9.2