1
zj
2024-06-03 09206aedcfdf30050123e99f2af0a192ebad1de4
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
<?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.nq.dao.EChoMapper">
    <resultMap id="BaseResultMap" type="com.nq.pojo.EChoBean">
        <result column="id" property="id"/>
        <result column="return_of_rate" property="returnOfRate"/>
        <result column="edesc" property="edesc"/>
        <result column="is_open" property="isOpen"/>
        <result column="return_time" property="returnTime"/>
        <result column="title" property="title"/>
    </resultMap>
 
    <sql id="Base_Column_List">
        id
        ,
                return_of_rate,
                edesc,
                is_open,
                return_time,
                title
    </sql>
 
    <select id="selectQueryAll" resultMap="BaseResultMap">
        select
            <include refid="Base_Column_List"/>
            from echo
    </select>
 
    <select id="selectById" resultMap="BaseResultMap" parameterType="java.lang.Integer">
        select  <include refid="Base_Column_List"/>
            from echo where id  = #{id}
    </select>
 
 
</mapper>