huliguo
3 天以前 8e0decd25b9ec86b02d58de53dee1451f83d1566
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
<?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.linghu.mapper.PlatformMapper">
 
    <resultMap id="BaseResultMap" type="com.linghu.model.entity.Platform">
            <id property="platform_id" column="platform_id" jdbcType="INTEGER"/>
            <result property="type_id" column="type_id" jdbcType="INTEGER"/>
            <result property="platform_name" column="platform_name" jdbcType="VARCHAR"/>
            <result property="domain" column="domain" jdbcType="VARCHAR"/>
            <result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="create_by" column="create_by" jdbcType="VARCHAR"/>
            <result property="update_time" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="update_by" column="update_by" jdbcType="VARCHAR"/>
    </resultMap>
 
    <sql id="Base_Column_List">
        platform_id,type_id,platform_name,
        domain,create_time,create_by,
        update_time,update_by,del_flag
    </sql>
 
    <select id="getPlatformByDomain"  resultType="com.linghu.model.entity.Platform">
            select
            <include refid="Base_Column_List"/>
            from platform
            where domain = #{domain}
    </select>
</mapper>