From 5fc3aab046809ec03d59bd494a0cc91debeec251 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期二, 27 九月 2022 18:24:12 +0800 Subject: [PATCH] 违规事项设置 列表和删除 违建事项设置 列表和删除 --- ycl-platform/src/main/resources/mapper/dict/DataDictionaryMapper.xml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) diff --git a/ycl-platform/src/main/resources/mapper/dict/DataDictionaryMapper.xml b/ycl-platform/src/main/resources/mapper/dict/DataDictionaryMapper.xml index 355abb6..d21673b 100644 --- a/ycl-platform/src/main/resources/mapper/dict/DataDictionaryMapper.xml +++ b/ycl-platform/src/main/resources/mapper/dict/DataDictionaryMapper.xml @@ -19,4 +19,53 @@ id, name, code, type_name,type_code,parent_id,level,remark </sql> + <resultMap id="settingsResultMap" type="com.ycl.vo.IllegalBuildingSettingVO"> + <id column="number" property="number" /> + <result column="type" property="type" /> + <result column="typeFirst" property="typeFirst" /> + <result column="typeSecond" property="typeSecond" /> + <result column="typeThird" property="typeThird" /> + </resultMap> + + + <select id="listDataDictionaryPage" resultType="com.ycl.vo.IllegalBuildingSettingVO"> + SELECT + d1.id AS number, + d1.`name` AS type, + d2.`name` AS typeFirst + FROM + `ums_data_dictionary` AS d1 + JOIN ums_data_dictionary AS d2 ON d1.parent_id = d2.id + <where> + d1.`level` = '2' + AND d1.type_code = '06' + <if test="keyWord !=null and keyWord !=''"> + AND d1.`name` LIKE '%${keyWord}%' + </if> + + </where> + </select> + + <select id="listViolationPage" resultType="com.ycl.vo.ViolationSettingVO"> + SELECT + d1.id AS number, + d1.`name` AS type, + d2.`name` AS typeFirst, + d3.`name` AS typeSecond, + d4.`name` AS typeThird + FROM + `ums_data_dictionary` AS d1 + JOIN ums_data_dictionary AS d2 ON d1.parent_id = d2.id + JOIN ums_data_dictionary AS d3 ON d2.parent_id = d3.id + JOIN ums_data_dictionary AS d4 ON d3.parent_id = d4.id + <where> + d1.`level` = '4' + AND d1.type_code = '01' + <if test="keyWord !=null and keyWord !=''"> + AND d1.`name` LIKE '%${keyWord}%' + </if> + + </where> + </select> + </mapper> -- Gitblit v1.8.0