yujian
2019-03-27 cdcbed9af813b2a02cdc01eefa24db8bec6b51a9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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.yeshi.fanli.dao.mybatis.RecommendBannerV2Mapper">
  <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.recommend.RecommendBannerV2">
    <id column="id" property="id" jdbcType="BIGINT"/>
    <result column="name" property="name" jdbcType="VARCHAR"/>
    <result column="picture" property="picture" jdbcType="VARCHAR"/>
    <result column="params" property="params" jdbcType="VARCHAR"/>
    <result column="createtime" property="createtime" jdbcType="BIGINT"/>
    <result column="orderby" property="orderby" jdbcType="INTEGER"/>
    <result column="show" property="show" jdbcType="VARCHAR"/>
    <association property="jumpDetail" column="jumpid" javaType="com.yeshi.fanli.entity.common.JumpDetailV2">
        <id column="jumpid" property="id" jdbcType="BIGINT" />    
    </association>
  </resultMap>
 
  <sql id="Base_Column_List">id,`name`,`picture`,jumpid,`params`,`createtime`,`orderby`,`show`</sql>
  
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">
      select <include refid="Base_Column_List"/>from yeshi_ec_recommend_banner_v2 where id = #{id,jdbcType=BIGINT}
  </select>
</mapper>