From 8b7258c9427882bb1798f1502eaa35184c6e374e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:29:18 +0800
Subject: [PATCH] 短信指定楼栋发送

---
 src/main/java/org/springblade/modules/category/mapper/CategoryLabelMapper.xml |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/category/mapper/CategoryLabelMapper.xml b/src/main/java/org/springblade/modules/category/mapper/CategoryLabelMapper.xml
index 5680e50..46db1f2 100644
--- a/src/main/java/org/springblade/modules/category/mapper/CategoryLabelMapper.xml
+++ b/src/main/java/org/springblade/modules/category/mapper/CategoryLabelMapper.xml
@@ -11,10 +11,56 @@
         <result column="remark" property="remark"/>
     </resultMap>
 
+    <resultMap type="org.springblade.modules.category.dto.CategoryLabelDTO" id="CategoryLabelDTOResult">
+        <result property="id"    column="id"    />
+        <result property="categoryNo"    column="category_no"    />
+        <result property="categoryName"    column="category_name"    />
+        <result property="label"    column="label"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectCategoryLabel">
+        select
+            id,
+            category_no,
+            category_name,
+            label,
+            remark
+        from
+            jczz_category_label
+    </sql>
+
+
+    <select id="selectCategoryLabelById" parameterType="int" resultMap="CategoryLabelDTOResult">
+        <include refid="selectCategoryLabel"/>
+        where
+        id = #{id}
+    </select>
+
 
     <select id="selectCategoryLabelPage" resultMap="categoryLabelResultMap">
         select * from jczz_category_label where is_deleted = 0
     </select>
 
+    <select id="selectCategoryLabelList" parameterType="org.springblade.modules.category.dto.CategoryLabelDTO" resultMap="CategoryLabelDTOResult">
+        select
+        jcl.id,
+        jcl.category_no,
+        jcl.category_name,
+        jcl.label,
+        jcl.remark
+        from
+        jczz_place_poi_label jppl LEFT JOIN jczz_category_label jcl on jcl.category_no=jppl.poi_code
+        <where>
+            <if test="id != null "> and jcl.id = #{id}</if>
+            <if test="placeId != null and placeId != '' "> and jppl.place_id = #{placeId}</if>
+            <if test="categoryNo != null  and categoryNo != ''"> and jcl.category_no = #{categoryNo}</if>
+            <if test="categoryName != null  and categoryName != ''"> and cjcl.ategory_name = #{categoryName}</if>
+            <if test="label != null  and label != ''"> and jcl.label = #{label}</if>
+            <if test="remark != null  and remark != ''"> and jcl.remark = #{remark}</if>
+            and jcl.category_no is not null
+        </where>
+    </select>
+
 
 </mapper>

--
Gitblit v1.9.3