...
|
...
|
@@ -12,9 +12,10 @@ |
|
|
<result column="td" property="td" jdbcType="VARCHAR" />
|
|
|
<result column="app_key" property="appKey" jdbcType="VARCHAR" />
|
|
|
<result column="client_ip" property="clientIp" jdbcType="VARCHAR" />
|
|
|
<result column="user_agent" property="userAgent" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, app_id, idfa, imei, union_type, create_time, client_type, td, app_key, client_ip
|
|
|
id, app_id, idfa, imei, union_type, create_time, client_type, td, app_key, client_ip,user_agent
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -30,11 +31,11 @@ |
|
|
insert into union_click_logs (id, app_id, idfa,
|
|
|
imei, union_type, create_time,
|
|
|
client_type, td, app_key,
|
|
|
client_ip)
|
|
|
client_ip,user_agent)
|
|
|
values (#{id,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR}, #{idfa,jdbcType=VARCHAR},
|
|
|
#{imei,jdbcType=VARCHAR}, #{unionType,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER},
|
|
|
#{clientType,jdbcType=VARCHAR}, #{td,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR},
|
|
|
#{clientIp,jdbcType=VARCHAR})
|
|
|
#{clientIp,jdbcType=VARCHAR},#{userAgent,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yoho.unions.dal.model.UnionClickLogs" >
|
|
|
insert into union_click_logs
|
...
|
...
|
@@ -69,6 +70,9 @@ |
|
|
<if test="clientIp != null" >
|
|
|
client_ip,
|
|
|
</if>
|
|
|
<if test="userAgent != null" >
|
|
|
user_agent,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
...
|
...
|
@@ -101,6 +105,9 @@ |
|
|
<if test="clientIp != null" >
|
|
|
#{clientIp,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="userAgent != null" >
|
|
|
#{userAgent,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="selectByIdfa" resultMap="BaseResultMap">
|
...
|
...
|
@@ -129,7 +136,8 @@ |
|
|
client_type = #{clientType,jdbcType=VARCHAR},
|
|
|
td = #{td,jdbcType=VARCHAR},
|
|
|
app_key = #{appKey,jdbcType=VARCHAR},
|
|
|
client_ip = #{clientIp,jdbcType=VARCHAR}
|
|
|
client_ip = #{clientIp,jdbcType=VARCHAR},
|
|
|
user_agent = #{userAgent,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|