From 36ee24623731cb8421f58dc8750d471562106d02 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 01 八月 2023 16:12:29 +0800
Subject: [PATCH] 同步代码

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

diff --git a/cloud-server-course/src/main/resources/mapper/TCoursePackageMapper.xml b/cloud-server-course/src/main/resources/mapper/TCoursePackageMapper.xml
index 4fab90f..21c89f7 100644
--- a/cloud-server-course/src/main/resources/mapper/TCoursePackageMapper.xml
+++ b/cloud-server-course/src/main/resources/mapper/TCoursePackageMapper.xml
@@ -52,4 +52,41 @@
           and ts.`state` = 1
     </select>
 
+
+
+    <select id="queryCoursePackageLists" 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.`status`,
+        a.state
+        from t_course_package a
+        left join t_course_package_type b on (a.coursePackageTypeId = b.id)
+        where a.state != 3
+        <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.status">
+            and a.status = #{item.status}
+        </if>
+        <if test="null != item.state">
+            and a.state = #{item.state}
+        </if>
+        order by a.insertTime desc
+    </select>
 </mapper>

--
Gitblit v1.7.1