diff options
| author | tanghao <default@DESKTOP-7FEGRP2> | 2019-11-29 18:25:03 +0800 |
|---|---|---|
| committer | tanghao <default@DESKTOP-7FEGRP2> | 2019-11-29 18:25:03 +0800 |
| commit | 7f613afb92b399df0b3e808c59a744bc4ea304a5 (patch) | |
| tree | fc9f46ad6f9e4e7040233e3cecfcd55cdfbc56c2 /src/main/resources/mapper/AlertRuleDao.xml | |
| parent | 7d43f2c999e55c003fb1598a4621aaf9bcd05e67 (diff) | |
confagent初版
Diffstat (limited to 'src/main/resources/mapper/AlertRuleDao.xml')
| -rw-r--r-- | src/main/resources/mapper/AlertRuleDao.xml | 19 |
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 |
