...
|
...
|
@@ -4,18 +4,19 @@ |
|
|
<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="union_type" property="unionType" 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, union_type, usershare_union_type, click_visit, click_uv
|
|
|
id, date_id, usershare_union_type, click_visit, click_uv
|
|
|
</sql>
|
|
|
<select id="selectByUnionType" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
<select id="selectByUnionTypeAndDate" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from app_ad_union_usershare_click
|
|
|
where union_type = #{unionType,jdbcType=VARCHAR}
|
|
|
where usershare_union_type = #{unionType,jdbcType=VARCHAR}
|
|
|
and date_id >= #{startDate,jdbcType=INTEGER}
|
|
|
and date_id <= #{endDate,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|