BaseUdidRelationMapper.xml 929 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.IBaseUdidRelationDAO" >
  <resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.BaseUdidRelation" >
    <result column="DATE_ID" property="dateId" jdbcType="INTEGER" />
    <result column="APP_KEY" property="appKey" jdbcType="VARCHAR" />
    <result column="UDID" property="udid" jdbcType="VARCHAR" />
    <result column="UID" property="uid" jdbcType="INTEGER" />
    <result column="ISNEW" property="isnew" jdbcType="VARCHAR" />
    <result column="TS" property="ts" jdbcType="BIGINT" />
  </resultMap>

  <sql id="Blob_Column_List">
    DATE_ID,APP_KEY,UDID,UID,ISNEW,TS
  </sql>

  <select id="selectByUdid" resultMap="BaseResultMap">
     select  UID
     from BASE_UDID_RELATION where udid =#{udid} limit 1
  </select>
</mapper>