summaryrefslogtreecommitdiff
path: root/src/main/resources/mapper/AlertRuleDao.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/mapper/AlertRuleDao.xml')
-rw-r--r--src/main/resources/mapper/AlertRuleDao.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/resources/mapper/AlertRuleDao.xml b/src/main/resources/mapper/AlertRuleDao.xml
new file mode 100644
index 0000000..8f1e028
--- /dev/null
+++ b/src/main/resources/mapper/AlertRuleDao.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.nis.dao.AlertRuleDao">
+ <resultMap type="com.nis.entity.AlertRule" id="alertRule">
+ <result property="id" column="id"/>
+ <result property="alertName" column="alert_name"/>
+ <result property="expr" column="expr"/>
+ <result property="last" column="last"/>
+ <result property="severity" column="severity"/>
+ <result property="summary" column="summary"/>
+ <result property="description" column="description"/>
+ <result property="receiver" column="receiver"/>
+ </resultMap>
+
+ <select id="selectList" resultMap="alertRule">
+ select * from alert_rule
+ </select>
+
+</mapper> \ No newline at end of file