From fd658508f4470f0c479b2a36738b0f50481cbbe9 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期六, 16 九月 2023 10:59:09 +0800
Subject: [PATCH] 后台代码

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

diff --git a/cloud-server-activity/src/main/resources/mapper/BodySideAppointmentsMapper.xml b/cloud-server-activity/src/main/resources/mapper/BodySideAppointmentsMapper.xml
index 0fbf1fc..c222803 100644
--- a/cloud-server-activity/src/main/resources/mapper/BodySideAppointmentsMapper.xml
+++ b/cloud-server-activity/src/main/resources/mapper/BodySideAppointmentsMapper.xml
@@ -25,7 +25,23 @@
                     t1.parentName like concat('%',#{query.parentName},'%')
                 </if>
                 <if test="query.state!=null and query.state!= ''">
-                    and t1.state = #{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>
     </select>

--
Gitblit v1.7.1