|
|
@@ -101,6 +101,23 @@
|
|
|
</if>
|
|
|
order by finish_time desc
|
|
|
</select>
|
|
|
+ <select id="getByUserByParam" resultType="com.ytpm.app.model.YtDyzAdRecord">
|
|
|
+ select
|
|
|
+ record_id, user_id,app_id, nick_name, placement_id, ad_source_id, revenue, network_form_id, network_name,
|
|
|
+ network_placement_id, finish_time, begin_time,result_json,ad_source_type,ad_source_index,ecpm,
|
|
|
+ ifnull(#{loginStatus}, 2) as loginStatus
|
|
|
+ <if test="loginStatus != null and loginStatus == 1">
|
|
|
+ from yt_dyz_ad_record_visitor
|
|
|
+ </if>
|
|
|
+ <if test="loginStatus == null or loginStatus != 1">
|
|
|
+ from yt_dyz_ad_record
|
|
|
+ </if>
|
|
|
+ where user_id = #{userId}
|
|
|
+ <if test="adsourceType != null and adsourceType!=888">
|
|
|
+ and ad_source_type = #{adsourceType}
|
|
|
+ </if>
|
|
|
+ order by finish_time desc
|
|
|
+ </select>
|
|
|
<select id="getByUserIds" resultType="com.ytpm.app.model.YtDyzAdRecord">
|
|
|
select
|
|
|
record_id, user_id,app_id, nick_name, placement_id, ad_source_id, revenue, network_form_id, network_name, network_placement_id, finish_time, begin_time,result_json,ad_source_type,ad_source_index,ecpm
|