From e93a1ffbe1b01253d7a9808cc7a05b5c69413c8d Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期三, 19 七月 2023 11:12:54 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

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

diff --git a/cloud-server-other/src/main/resources/mapper/SiteMapper.xml b/cloud-server-other/src/main/resources/mapper/SiteMapper.xml
index a5628c3..d9c0015 100644
--- a/cloud-server-other/src/main/resources/mapper/SiteMapper.xml
+++ b/cloud-server-other/src/main/resources/mapper/SiteMapper.xml
@@ -35,4 +35,30 @@
         </if>
         order by a.insertTime desc limit #{item.pageNum}, #{item.pageSize}
     </select>
+
+
+
+    <select id="queryMySite" resultType="com.dsh.other.model.QueryMySiteVo">
+        select
+        a.id,
+        b.`name` as `name`,
+        d.`name` as siteTypeName,
+        c.`name` as storeName,
+        c.address as storeAddress,
+        c.lon as storeLon,
+        c.lat as storeLat,
+        a.payMoney as payMoney,
+        CONCAT(DATE_FORMAT(a.startTime, '%Y-%m-%d %H:%i'), '-', DATE_FORMAT(a.endTime, '%H:%i')) as appointment,
+        a.`status`,
+        DATE_FORMAT(a.insertTime, '%Y-%m-%d %H:%i:%s') as insertTime
+        from t_site_booking a
+        left join t_site b on (a.siteId = b.id)
+        left join t_store c on (b.storeId = c.id)
+        left join t_site_type d on (b.siteTypeId = d.id)
+        where a.state = 1 and a.appUserId = #{uid}
+        <if test="null != status">
+            and a.status = #{status}
+        </if>
+        order by a.insertTime desc limit #{pageNo}, #{pageSize}
+    </select>
 </mapper>

--
Gitblit v1.7.1