AppActivateIdfaListMapper.xml
910 Bytes
<?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.IAppActivateIdfaListDAO">
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.AppActivateIdfaList">
<result column="date_id" property="dateId" jdbcType="BIGINT" />
<result column="idfa" property="idfa" jdbcType="VARCHAR" />
<result column="app_key" property="appKey" jdbcType="VARCHAR" />
</resultMap>
<select id="selectByIdfaAndDate" resultMap="BaseResultMap">
select * from app_activate_idfa_list where date_id=#{dateId} and idfa=#{idfa} and instr(app_key, #{appKey}) > 0
</select>
<select id="select15DaysByIdfaAndDate" resultMap="BaseResultMap">
select * from app_activate_idfa_list_15days where date_id=#{dateId} and idfa=#{idfa} and instr(app_key, #{appKey}) > 0
</select>
</mapper>