Authored by gezhengwen

update

package com.yoho.unions.dal;
import com.yoho.unions.dal.model.BaseUdidRelation;
public interface IBaseUdidRelationDAO {
int insert(BaseUdidRelation record);
int insertSelective(BaseUdidRelation record);
BaseUdidRelation selectByUdid(String udid);
}
\ No newline at end of file
... ...
package com.yoho.unions.dal.model;
public class BaseUdidRelation {
private Integer dateId;
private String appKey;
private String udid;
private Integer uid;
private String isnew;
private Long ts;
public Integer getDateId() {
return dateId;
}
public void setDateId(Integer dateId) {
this.dateId = dateId;
}
public String getAppKey() {
return appKey;
}
public void setAppKey(String appKey) {
this.appKey = appKey == null ? null : appKey.trim();
}
public String getUdid() {
return udid;
}
public void setUdid(String udid) {
this.udid = udid == null ? null : udid.trim();
}
public Integer getUid() {
return uid;
}
public void setUid(Integer uid) {
this.uid = uid;
}
public String getIsnew() {
return isnew;
}
public void setIsnew(String isnew) {
this.isnew = isnew == null ? null : isnew.trim();
}
public Long getTs() {
return ts;
}
public void setTs(Long ts) {
this.ts = ts;
}
}
\ No newline at end of file
... ...
<?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 <include refid="Blob_Column_List"/>
from BASE_UDID_RELATION where udid =#{udid} limit 1
</select>
</mapper>
\ No newline at end of file
... ...