AppActivateIdfaListMapper.xml 1.29 KB
<?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" />
	</resultMap>
	<select id="selectByIdfaAndDate" resultMap="BaseResultMap">
		select * from app_activate_idfa_list where date_id=#{dateId} and idfa=#{idfa} 
	</select>
	<insert id="insert" parameterType="com.yoho.unions.dal.model.AppActivateIdfaList">
		insert into app_activate_idfa_list (date_id, idfa)
		values (#{dateId,jdbcType=BIGINT}, #{idfa,jdbcType=VARCHAR})
	</insert>
	<insert id="insertSelective" parameterType="com.yoho.unions.dal.model.AppActivateIdfaList">
		insert into app_activate_idfa_list
		<trim prefix="(" suffix=")" suffixOverrides=",">
			<if test="dateId != null">
				date_id,
			</if>
			<if test="idfa != null">
				idfa,
			</if>
		</trim>
		<trim prefix="values (" suffix=")" suffixOverrides=",">
			<if test="dateId != null">
				#{dateId,jdbcType=BIGINT},
			</if>
			<if test="idfa != null">
				#{idfa,jdbcType=VARCHAR},
			</if>
		</trim>
	</insert>
</mapper>