unionShareBigDataClick.xml
1.11 KB
<?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.yoho.unions.dal.UnionShareBigDataClickMapper" >
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionShareBigDataClick" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="date_id" property="dateId" jdbcType="INTEGER" />
<result column="usershare_union_type" property="usershareUnionType" jdbcType="VARCHAR" />
<result column="click_visit" property="clickVisit" jdbcType="INTEGER" />
<result column="click_uv" property="clickUv" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
id, date_id, usershare_union_type, click_visit, click_uv
</sql>
<select id="selectByUnionTypeAndDate" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from app_ad_union_usershare_click
where usershare_union_type = #{unionType,jdbcType=VARCHAR}
and date_id >= #{startDate,jdbcType=INTEGER}
and date_id <= #{endDate,jdbcType=INTEGER}
</select>
</mapper>