tangzy
2022-01-13 05c981ed47b7efe87a1b481be012fbbfc11b1c92
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.springblade.modules.road.mapper.RoadMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="roadResultMap" type="org.springblade.modules.road.entity.Road">
        <id column="id" property="id"/>
        <result column="roadName" property="roadname"/>
        <result column="jd" property="jd"/>
        <result column="wd" property="wd"/>
    </resultMap>
 
 
    <select id="selectRoadPage" resultMap="roadResultMap">
        select * from sys_road where is_deleted = 0
    </select>
 
    <select id="selectList" resultType="java.util.HashMap">
        select roadName as roadname,jd,wd from sys_road
    </select>
 
</mapper>