BaseUserActiveDayMapper.xml 956 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.BaseUserActiveDayMapper" >
  <resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.BaseUserActiveDay" >
    <result column="date_id" property="dateId" jdbcType="VARCHAR" />
    <result column="udid" property="udid" jdbcType="VARCHAR" />
    <result column="idfa" property="idfa" jdbcType="VARCHAR" />
    <result column="app_key" property="appKey" jdbcType="VARCHAR" />
  </resultMap>

  <select id="selectByUdidAndAppKey" resultMap="BaseResultMap">
    select * from base_user_active_day where udid=#{udid} and app_key = #{appKey} limit 1
  </select>

  <select id="selectByUdidAndAppKeyDate" resultMap="BaseResultMap">
    select * from base_user_active_day where udid=#{udid} and app_key = #{appKey} and date_id &lt;#{end_date} limit 1
  </select>
</mapper>