| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.dromara.demo.mapper.RsDangerInfoMapper"> |
| | | |
| | | <resultMap id="DangerInfoList" type="org.dromara.demo.domain.vo.RsDangerInfoVo"> |
| | | <id column="id" jdbcType="VARCHAR" property="id" /> |
| | | <result column="notification_time" jdbcType="VARCHAR" property="notificationTime" /> |
| | | <result column="danger_type" jdbcType="VARCHAR" property="dangerType" /> |
| | | <result column="accountability_unit" jdbcType="VARCHAR" property="accountabilityUnit" /> |
| | | <result column="rectification_time_limit" jdbcType="VARCHAR" property="rectificationTimeLimit" /> |
| | | <result column="performance" jdbcType="VARCHAR" property="performance" /> |
| | | <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
| | | <result column="status" jdbcType="INTEGER" property="status" /> |
| | | <collection property="imgList" ofType="org.dromara.system.domain.vo.SysOssVo"/> |
| | | </resultMap> |
| | | |
| | | <select id="getDangerInfo" resultMap="DangerInfoList"> |
| | | select * from rs_danger_info a left join sys_oss b on a.id = b.tenant_id where `status` = 1 order by a.create_time, b.create_time |
| | | </select> |
| | | </mapper> |