zhongrj
2022-10-24 0cc95376f2af6fa5dfbe63ff79cbaf94674531e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?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.springblade.modules.hd.mapper.HdMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="hdResultMap" type="org.springblade.modules.hd.entity.Hd">
        <id column="id" property="id"/>
        <result column="hdname" property="hdname"/>
        <result column="address" property="address"/>
        <result column="time" property="time"/>
        <result column="tpurl" property="tpurl"/>
        <result column="context" property="context"/>
        <result column="lx" property="lx"/>
    </resultMap>
 
 
    <select id="selectHdPage" resultMap="hdResultMap">
        select *
        from sys_hd
    </select>
 
    <select id="selectInList" resultType="java.util.HashMap">
        select id, hdname
        from sys_hd
    </select>
 
    <select id="selectInfo" resultType="java.lang.String">
        SELECT mapUrl,mapname FROM sys_hdmap where hdid=#{id}
    </select>
    <select id="selectInfos" resultType="java.lang.String">
        SELECT mapname FROM sys_hdmap where hdid=#{id}
    </select>
 
<!--    <select id="selectInfo" resultType="java.util.HashMap">-->
<!--        SELECT h.*,hd.mapUrl as mapurl-->
<!--        FROM sys_hd h-->
<!--                 LEFT JOIN sys_hdmap hd ON h.id = hd.hdid where h.id=#{id}-->
<!--    </select>-->
 
</mapper>