|
|
@@ -86,6 +86,28 @@
|
|
|
#{appId}
|
|
|
)
|
|
|
</insert>
|
|
|
+ <update id="updateOneVisitor" parameterType="com.ytpm.app.model.YtDyzAdRecord">
|
|
|
+ update yt_dyz_ad_record_visitor
|
|
|
+ <set>
|
|
|
+ <if test="userId != null">user_id = #{userId},</if>
|
|
|
+ <if test="nickName != null">nick_name = #{nickName},</if>
|
|
|
+ <if test="iosId != null">ios_id = #{iosId},</if>
|
|
|
+ <if test="placementId != null">placement_id = #{placementId},</if>
|
|
|
+ <if test="adSourceId != null">ad_source_id = #{adSourceId},</if>
|
|
|
+ <if test="revenue != null">revenue = #{revenue},</if>
|
|
|
+ <if test="networkFormId != null">network_form_id = #{networkFormId},</if>
|
|
|
+ <if test="networkName != null">network_name = #{networkName},</if>
|
|
|
+ <if test="networkPlacementId != null">network_placement_id = #{networkPlacementId},</if>
|
|
|
+ <if test="beginTime != null">begin_time = #{beginTime},</if>
|
|
|
+ <if test="finishTime != null">finish_time = #{finishTime},</if>
|
|
|
+ <if test="resultJson != null">result_json = #{resultJson},</if>
|
|
|
+ <if test="adSourceIndex != null">ad_source_index = #{adSourceIndex},</if>
|
|
|
+ <if test="adSourceType != null">ad_source_type = #{adSourceType},</if>
|
|
|
+ <if test="ecpm != null">ecpm = #{ecpm},</if>
|
|
|
+ <if test="appId != null">app_id = #{appId},</if>
|
|
|
+ </set>
|
|
|
+ where record_id = #{recordId} <!-- 假设record_id是主键 -->
|
|
|
+ </update>
|
|
|
<select id="countByAppIds" resultType="java.lang.Integer">
|
|
|
select
|
|
|
count(record_id)
|