龚焕茏
2024-03-11 2bacd2670e0f1b495e9cfda6023d8bccc32a5572
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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="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>