From 53e7558400dcacecdce70e39ebfe1727740f9296 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期六, 25 十一月 2023 17:20:06 +0800
Subject: [PATCH] 重写课包支付和排课逻辑

---
 cloud-server-activity/src/main/resources/mapper/BodySideAppointmentsMapper.xml |   54 +++++++++++++++++++++++++++---------------------------
 1 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/cloud-server-activity/src/main/resources/mapper/BodySideAppointmentsMapper.xml b/cloud-server-activity/src/main/resources/mapper/BodySideAppointmentsMapper.xml
index ac8ac7b..1bd1b43 100644
--- a/cloud-server-activity/src/main/resources/mapper/BodySideAppointmentsMapper.xml
+++ b/cloud-server-activity/src/main/resources/mapper/BodySideAppointmentsMapper.xml
@@ -16,34 +16,34 @@
     </update>
 
     <select id="listAll" resultType="com.dsh.activity.model.QueryBodySideAppointmentVO">
-            select t1.* from t_body_side_appointments t1
-            <where>
-                <if test="query.phone!=null and query.phone!= ''">
-                    and t1.phone like concat('%',#{query.phone},'%')
-                </if>
-                <if test="query.parentName!=null and query.parentName!= ''">
-                    and t1.parentName like concat('%',#{query.parentName},'%')
-                </if>
-                <if test="query.state!=null and query.state!= ''">
-                    and t1.status = #{query.state}
-                </if>
+        select t1.* from t_body_side_appointments t1
+        <where>
+            <if test="query.phone!=null and query.phone!= ''">
+                and t1.phone like concat('%',#{query.phone},'%')
+            </if>
+            <if test="query.parentName!=null and query.parentName!= ''">
+                and t1.parentName like concat('%',#{query.parentName},'%')
+            </if>
+            <if test="query.state!=null and query.state!= ''">
+                and t1.status = #{query.state}
+            </if>
 
-                <if test="query.day!=null and query.day!= '' and query.day==1" >
-                    and DATE(t1.appointmentTime) = CURDATE()
-                </if>
-                <if test="query.day!=null and query.day!= '' and query.day==2" >
-                    and DATE(t1.appointmentTime) = DATE_ADD(CURDATE(), INTERVAL 1 DAY)
-                </if>
-                <if test="query.day!=null and query.day!= '' and query.day==7" >
-                    AND DATE(t1.appointmentTime) BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 7 DAY)
-                </if>
-                <if test="query.ids != null and query.ids.size()>0">
-                    AND t1.storeId IN
-                    <foreach collection="query.ids" separator="," item="id" open="(" close=")">
-                        #{id}
-                    </foreach>
-                </if>
-            </where>
+            <if test="query.day!=null and query.day!= '' and query.day==1">
+                and DATE(t1.appointmentTime) = CURDATE()
+            </if>
+            <if test="query.day!=null and query.day!= '' and query.day==2">
+                and DATE(t1.appointmentTime) = DATE_ADD(CURDATE(), INTERVAL 1 DAY)
+            </if>
+            <if test="query.day!=null and query.day!= '' and query.day==7">
+                AND DATE(t1.appointmentTime) BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 7 DAY)
+            </if>
+            <if test="query.ids != null and query.ids.size()>0">
+                AND t1.storeId IN
+                <foreach collection="query.ids" separator="," item="id" open="(" close=")">
+                    #{id}
+                </foreach>
+            </if>
+        </where>
     </select>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.7.1