From f195cf48cf57635c8848b2bc32afd4541c4090ed Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 17 七月 2023 08:57:25 +0800
Subject: [PATCH] 更新接口

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

diff --git a/cloud-server-other/src/main/resources/mapper/StoreMapper.xml b/cloud-server-other/src/main/resources/mapper/StoreMapper.xml
index abb09e0..244a264 100644
--- a/cloud-server-other/src/main/resources/mapper/StoreMapper.xml
+++ b/cloud-server-other/src/main/resources/mapper/StoreMapper.xml
@@ -3,4 +3,20 @@
 <mapper namespace="com.dsh.other.mapper.StoreMapper">
 
 
+    <select id="queryProvince" resultType="com.dsh.other.model.ProvinceAndCityVo">
+        select province as name, provinceCode as code from t_store where state = 1 group by province, provinceCode
+    </select>
+
+
+    <select id="queryCity" resultType="com.dsh.other.model.ProvinceAndCityVo">
+        select city as name, cityCode as code from t_store where state = 1
+        <if test="null != pcode and '' != pcode">
+            and provinceCode = #{pcode}
+        </if>
+        group by city, cityCode
+    </select>
+
+    <select id="queryStoreByCityCode" resultType="com.dsh.other.model.BaseVo">
+        select id, name from t_store where state = 1 and cityCode = #{cityCode}
+    </select>
 </mapper>

--
Gitblit v1.7.1