From 014d7a35addafbc63689cda7c20bae61951f7852 Mon Sep 17 00:00:00 2001
From: luo <2855143437@qq.com>
Date: 星期一, 09 十月 2023 18:25:19 +0800
Subject: [PATCH] 10.9

---
 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