From ad2ec97fe0c60eee4bb7c8cdacff7c876f280ea7 Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Mon, 08 Jan 2024 11:30:18 +0800
Subject: [PATCH] 公安安全监管
---
src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml b/src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml
index 6ab965f..ada52fb 100644
--- a/src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml
+++ b/src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml
@@ -15,10 +15,46 @@
<result column="is_deleted" property="isDeleted"/>
</resultMap>
-
+ <!--自定义分页查询-->
<select id="selectCategoryPage" resultMap="categoryResultMap">
select * from jczz_category where is_deleted = 0
</select>
+ <!--天地图poi 分类获取-->
+ <select id="getCategory" resultType="org.springblade.modules.category.vo.CategoryVO">
+ select * from jczz_category
+ where is_deleted = 0
+ <if test="category.level!=null">
+ and level = #{category.level}
+ </if>
+ <if test="category.parentNo!=null and category.parentNo!=''">
+ and parent_no = #{category.parentNo}
+ </if>
+ </select>
+
+ <select id="selectCategoryList" resultType="org.springblade.modules.category.dto.CategoryDTO">
+ select
+ jc.id,
+ jc.category_no,
+ jc.category_name,
+ jc.parent_no,
+ jc.remark
+ from
+ jczz_place_poi_label jppl LEFT JOIN jczz_category jc on jc.category_no=jppl.poi_code
+ <where>
+ <if test="category.id != null ">and jc.id = #{category.id}</if>
+ <if test="category.placeId != null and category.placeId != '' ">and jppl.place_id = #{category.placeId}</if>
+ <if test="category.categoryNo != null and category.categoryNo != ''">and jc.category_no =
+ #{category.categoryNo}
+ </if>
+ <if test="category.categoryName != null and category.categoryName != ''">and jc.ategory_name =
+ #{category.categoryName}
+ </if>
+ <if test="category.remark != null and category.remark != ''">and jc.remark = #{category.remark}</if>
+ and jppl.type = 3
+ and jc.category_no is not null
+ </where>
+ </select>
+
</mapper>
--
Gitblit v1.9.3