From 60ef8b4a95540dfab9df0447364ee40c18354010 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 04 七月 2023 08:48:57 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 cloud-server-course/src/main/resources/mapper/TCoursePackagePaymentMapper.xml |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/cloud-server-course/src/main/resources/mapper/TCoursePackagePaymentMapper.xml b/cloud-server-course/src/main/resources/mapper/TCoursePackagePaymentMapper.xml
index 9aee0a7..41486fa 100644
--- a/cloud-server-course/src/main/resources/mapper/TCoursePackagePaymentMapper.xml
+++ b/cloud-server-course/src/main/resources/mapper/TCoursePackagePaymentMapper.xml
@@ -43,7 +43,19 @@
         UNION ALL
         SELECT *
         FROM t_course_package_payment5
-        WHERE user_id = #{stuId}
+        WHERE 1=1
+        <if test=" stuId != null">
+            and studentId  = #{stuId}
+        </if>
+        <if test="appUserId != null">
+            and appUserId = #{appUserId}
+        </if>
+        <if test="startTime != null and endTime != null">
+            and (insertTime between #{startTime} and #{endTime})
+        </if>
+        <if test="coursePackId != null ">
+            and coursePackageId = #{coursePackId}
+        </if>
     </select>
 
 

--
Gitblit v1.7.1