|
@@ -169,6 +169,9 @@
|
|
|
<if test="canAllowAutoRefresh != null">
|
|
<if test="canAllowAutoRefresh != null">
|
|
|
can_allow_auto_refresh = #{canAllowAutoRefresh},
|
|
can_allow_auto_refresh = #{canAllowAutoRefresh},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="unlockTimer != null">
|
|
|
|
|
+ unlock_timer = #{unlockTimer},
|
|
|
|
|
+ </if>
|
|
|
<if test="revenueDisplayRate != null">
|
|
<if test="revenueDisplayRate != null">
|
|
|
revenue_display_rate = #{revenueDisplayRate}
|
|
revenue_display_rate = #{revenueDisplayRate}
|
|
|
</if>
|
|
</if>
|
|
@@ -460,7 +463,7 @@
|
|
|
can_use_root, can_use_adb, can_use_float, can_accumulation,
|
|
can_use_root, can_use_adb, can_use_float, can_accumulation,
|
|
|
ditch_id, power_wait_time, interstitial_interval_time,
|
|
ditch_id, power_wait_time, interstitial_interval_time,
|
|
|
low_value_tip, brush_tip,flow_interval_time,task_limit_tip,start_wait_time,
|
|
low_value_tip, brush_tip,flow_interval_time,task_limit_tip,start_wait_time,
|
|
|
- can_cache_video,can_allow_auto_refresh,revenue_display_rate
|
|
|
|
|
|
|
+ can_cache_video,can_allow_auto_refresh,revenue_display_rate,unlock_timer
|
|
|
from yt_app_default_config
|
|
from yt_app_default_config
|
|
|
where app_type = #{appType}
|
|
where app_type = #{appType}
|
|
|
</select>
|
|
</select>
|
|
@@ -471,7 +474,7 @@
|
|
|
taku_reward_pid, taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,
|
|
taku_reward_pid, taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,
|
|
|
ditch_id, power_wait_time, interstitial_interval_time,
|
|
ditch_id, power_wait_time, interstitial_interval_time,
|
|
|
low_value_tip, brush_tip,flow_interval_time,task_limit_tip,start_wait_time,
|
|
low_value_tip, brush_tip,flow_interval_time,task_limit_tip,start_wait_time,
|
|
|
- can_cache_video,can_allow_auto_refresh,revenue_display_rate
|
|
|
|
|
|
|
+ can_cache_video,can_allow_auto_refresh,revenue_display_rate,unlock_timer
|
|
|
from yt_app_default_config
|
|
from yt_app_default_config
|
|
|
where app_id = #{appId}
|
|
where app_id = #{appId}
|
|
|
</select>
|
|
</select>
|
|
@@ -482,7 +485,7 @@
|
|
|
taku_reward_pid, taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,
|
|
taku_reward_pid, taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,
|
|
|
ditch_id, power_wait_time, interstitial_interval_time,
|
|
ditch_id, power_wait_time, interstitial_interval_time,
|
|
|
low_value_tip, brush_tip, flow_interval_time,task_limit_tip,start_wait_time,
|
|
low_value_tip, brush_tip, flow_interval_time,task_limit_tip,start_wait_time,
|
|
|
- can_cache_video,can_allow_auto_refresh,revenue_display_rate
|
|
|
|
|
|
|
+ can_cache_video,can_allow_auto_refresh,revenue_display_rate,unlock_timer
|
|
|
from yt_app_default_config
|
|
from yt_app_default_config
|
|
|
where app_id = #{appId}
|
|
where app_id = #{appId}
|
|
|
</select>
|
|
</select>
|
|
@@ -490,7 +493,7 @@
|
|
|
select
|
|
select
|
|
|
user_id,phone,device_id, head_img, nick_name, registry_time, last_login_time, last_login_ip, login_days,
|
|
user_id,phone,device_id, head_img, nick_name, registry_time, last_login_time, last_login_ip, login_days,
|
|
|
total_video, total_income, nearly_income, red_packet_balance, red_packet_amount, points_balance, points_total,
|
|
total_video, total_income, nearly_income, red_packet_balance, red_packet_amount, points_balance, points_total,
|
|
|
- withdraw_total, sign_days, user_status, risk_reason, wx_open_id, ditch_id, app_id, platform_id, power
|
|
|
|
|
|
|
+ withdraw_total, sign_days, user_status, risk_reason, wx_open_id, ditch_id, app_id, platform_id, power,unlock_timer
|
|
|
from yt_dyz_user
|
|
from yt_dyz_user
|
|
|
where wx_open_id = #{openid}
|
|
where wx_open_id = #{openid}
|
|
|
</select>
|
|
</select>
|
|
@@ -506,7 +509,8 @@
|
|
|
answer_path, power_path,taku_app_id, taku_key, taku_banner_pid, taku_native_pid, taku_reward_pid,
|
|
answer_path, power_path,taku_app_id, taku_key, taku_banner_pid, taku_native_pid, taku_reward_pid,
|
|
|
taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,can_simulator,
|
|
taku_interstitial_pid, can_use_root, can_use_adb, can_use_float, can_accumulation,can_simulator,
|
|
|
ditch_id, power_wait_time, interstitial_interval_time, low_value_tip, brush_tip,
|
|
ditch_id, power_wait_time, interstitial_interval_time, low_value_tip, brush_tip,
|
|
|
- flow_interval_time,task_limit_tip,start_wait_time,can_cache_video,can_allow_auto_refresh,revenue_display_rate
|
|
|
|
|
|
|
+ flow_interval_time,task_limit_tip,start_wait_time,can_cache_video,can_allow_auto_refresh,
|
|
|
|
|
+ revenue_display_rate,unlock_timer
|
|
|
from yt_app_default_config
|
|
from yt_app_default_config
|
|
|
where app_id in
|
|
where app_id in
|
|
|
<foreach collection="appIds.split(',')" item="item" separator="," open="(" close=")">
|
|
<foreach collection="appIds.split(',')" item="item" separator="," open="(" close=")">
|
|
@@ -822,4 +826,10 @@
|
|
|
total_income = COALESCE(total_income, 0) + #{revenue}
|
|
total_income = COALESCE(total_income, 0) + #{revenue}
|
|
|
WHERE user_id = #{userId};
|
|
WHERE user_id = #{userId};
|
|
|
</update>
|
|
</update>
|
|
|
|
|
+ <update id="updateUserRedPacket">
|
|
|
|
|
+ UPDATE yt_dyz_user
|
|
|
|
|
+ SET red_packet_amount = COALESCE(red_packet_amount, 0) + #{revenue},
|
|
|
|
|
+ red_packet_balance = COALESCE(red_packet_balance, 0) + #{revenue}
|
|
|
|
|
+ WHERE user_id = #{userId}
|
|
|
|
|
+ </update>
|
|
|
</mapper>
|
|
</mapper>
|