From 29bd4d946349eacd38442c07ebf15b470af92e82 Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期二, 10 十月 2023 14:26:44 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 cloud-server-other/src/main/resources/mapper/GameMapper.xml |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/cloud-server-other/src/main/resources/mapper/GameMapper.xml b/cloud-server-other/src/main/resources/mapper/GameMapper.xml
index fb0656a..7ba2226 100644
--- a/cloud-server-other/src/main/resources/mapper/GameMapper.xml
+++ b/cloud-server-other/src/main/resources/mapper/GameMapper.xml
@@ -36,7 +36,39 @@
         FROM t_site_booking bk
                  LEFT JOIN t_store st on bk.storeId = st.id
                  LEFT JOIN t_site si on bk.siteId = si.id
+        <where>
+        <if test="provinceCode!=null and provinceCode!= ''">
+          and  bk.provinceCode=#{provinceCode}
+        </if>
+            <if test="cityCode!=null and cityCode!= ''">
+                and  bk.cityCode=#{cityCode}
+            </if>
 
+            <if test="store!=null and store!= ''">
+                and  st.name=#{store}
+            </if>
+
+            <if test="peopleName!=null and peopleName!= ''">
+                and  bk.booker=#{peopleName}
+            </if>
+
+            <if test="phone!=null and phone!= ''">
+                and  bk.phone=#{phone}
+            </if>
+
+
+            <if test="date!=null and date!= ''">
+                and bk.times like concat('%',#{date},'%')            </if>
+            <if test="payMethod!=null ">
+                and  bk.payType=#{payMethod}
+            </if>
+
+            <if test="state!=null ">
+                and  bk.status=#{state}
+            </if>
+
+        
+        </where>
 
 
 

--
Gitblit v1.7.1