From 25fae4a8608a91c5aae1db876a13cffd6418f573 Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Mon, 30 Nov 2020 16:02:38 +0800
Subject: [PATCH] 删除测试代码

---
 src/main/resources/mapper/DictionaryDataMapper.xml |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/DictionaryDataMapper.xml b/src/main/resources/mapper/DictionaryDataMapper.xml
index 5d502f6..1cb67b9 100644
--- a/src/main/resources/mapper/DictionaryDataMapper.xml
+++ b/src/main/resources/mapper/DictionaryDataMapper.xml
@@ -3,14 +3,29 @@
 <mapper namespace="com.moral.mapper.DictionaryDataMapper" >
   <resultMap id="BaseResultMap" type="com.moral.entity.DictionaryData" >
     <id column="id" property="id" jdbcType="INTEGER" />
-    <result column="dict_value" property="dictValue" jdbcType="INTEGER" />
+    <result column="dict_id" property="dictId" jdbcType="INTEGER" />
+    <result column="dict_data_key" property="dictDataKey" jdbcType="VARCHAR" />
     <result column="dict_data_name" property="dictDataName" jdbcType="VARCHAR" />
     <result column="dict_data_value" property="dictDataValue" jdbcType="OTHER" />
     <result column="is_fixed" property="isFixed" jdbcType="INTEGER" />
     <result column="is_delete" property="isDelete" jdbcType="INTEGER" />
     <result column="parent_id" property="parentId" jdbcType="INTEGER" />
+    <result column="description" property="description" jdbcType="VARCHAR" />
   </resultMap>
   <sql id="Base_Column_List" >
-    id, dict_value, dict_data_name, dict_data_value, is_fixed, is_delete, parent_id
+    id, dict_id, dict_data_key, dict_data_name, dict_data_value, is_fixed, is_delete, 
+    parent_id, description
   </sql>
+  <select id="selectSupperOrgId"  resultType="java.lang.Integer">
+    select dict_data_value from dictionary_data
+    where dict_data_key = 'auth_config_super_org'
+  </select>
+  <select id="isSupperOrgId"  resultType="java.lang.Boolean">
+    select count(*) from dictionary_data
+    where dict_data_key = 'auth_config_super_org' and dict_data_value = #{orgId,jdbcType=INTEGER}
+  </select>
+  <select id="getDefultAlarm" resultType="java.lang.String">
+      select dict_data_value from dictionary_data
+    where dict_data_key = 'default_alarm_config_value'
+  </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0