From 1d07f8271751880bdfbf3ea41e696f9ee719888b Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期四, 17 八月 2023 08:48:36 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai

---
 cloud-server-course/src/main/resources/mapper/TCoursePackageMapper.xml |   35 ++++++++++++++++++++++++++++++++++-
 1 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/cloud-server-course/src/main/resources/mapper/TCoursePackageMapper.xml b/cloud-server-course/src/main/resources/mapper/TCoursePackageMapper.xml
index 25c46c6..bf5df87 100644
--- a/cloud-server-course/src/main/resources/mapper/TCoursePackageMapper.xml
+++ b/cloud-server-course/src/main/resources/mapper/TCoursePackageMapper.xml
@@ -68,7 +68,7 @@
         a.state
         from t_course_package a
         left join t_course_package_type b on (a.coursePackageTypeId = b.id)
-        where a.state != 3
+        where a.state != 3 and a.auditStatus = 2
         <if test="null != item.provinceCode and '' != item.provinceCode">
             and a.provinceCode = #{item.provinceCode}
         </if>
@@ -92,4 +92,37 @@
         </if>
         order by a.insertTime desc
     </select>
+
+
+    <select id="queryExamineCoursePackageLists" resultType="map">
+        select
+        a.id,
+        CONCAT(a.province, a.city) as city,
+        a.storeId,
+        b.`name` as coursePackageType,
+        a.`name`,
+        a.maxSubscribeNumber,
+        CONCAT('购买后', a.validDays, '天内有效') as validDays,
+        a.sort,
+        a.auditStatus
+        from t_course_package a
+        left join t_course_package_type b on (a.coursePackageTypeId = b.id)
+        where a.state = 1 and a.auditStatus != 2
+        <if test="null != item.provinceCode and '' != item.provinceCode">
+            and a.provinceCode = #{item.provinceCode}
+        </if>
+        <if test="null != item.cityCode and '' != item.cityCode">
+            and a.cityCode = #{item.cityCode}
+        </if>
+        <if test="null != item.coursePackageTypeId">
+            and a.coursePackageTypeId = #{item.coursePackageTypeId}
+        </if>
+        <if test="null != item.name and '' != item.name">
+            and a.name line CONCAT('%', #{item.name}, '%')
+        </if>
+        <if test="null != item.auditStatus">
+            and a.auditStatus = #{item.auditStatus}
+        </if>
+        order by a.insertTime desc
+    </select>
 </mapper>

--
Gitblit v1.7.1