|
@@ -27,6 +27,7 @@
|
|
|
app_id,
|
|
app_id,
|
|
|
power,
|
|
power,
|
|
|
phone,
|
|
phone,
|
|
|
|
|
+ device_id
|
|
|
)
|
|
)
|
|
|
values
|
|
values
|
|
|
(
|
|
(
|
|
@@ -52,7 +53,8 @@
|
|
|
#{platformId},
|
|
#{platformId},
|
|
|
#{appId},
|
|
#{appId},
|
|
|
#{power},
|
|
#{power},
|
|
|
- #{phone}
|
|
|
|
|
|
|
+ #{phone},
|
|
|
|
|
+ #{deviceId}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="addPowerRecord">
|
|
<insert id="addPowerRecord">
|
|
@@ -77,6 +79,12 @@
|
|
|
<if test="nickName != null">
|
|
<if test="nickName != null">
|
|
|
nick_name = #{nickName},
|
|
nick_name = #{nickName},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="phone != null">
|
|
|
|
|
+ phone = #{phone},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deviceId != null">
|
|
|
|
|
+ device_id = #{deviceId},
|
|
|
|
|
+ </if>
|
|
|
<if test="headImg != null">
|
|
<if test="headImg != null">
|
|
|
head_img = #{headImg},
|
|
head_img = #{headImg},
|
|
|
</if>
|
|
</if>
|
|
@@ -133,14 +141,14 @@
|
|
|
</update>
|
|
</update>
|
|
|
<select id="getYtAppUser" resultType="com.ytpm.app.model.YtDyzUser">
|
|
<select id="getYtAppUser" resultType="com.ytpm.app.model.YtDyzUser">
|
|
|
select
|
|
select
|
|
|
- user_id, app_id, ditch_id, nick_name,head_img, power, registry_time, last_login_time, last_login_ip, login_days, total_video, total_income, red_packet_balance, red_packet_amount, points_balance, points_total, withdraw_total, sign_days, user_status, risk_reason, wx_open_id, platform_id
|
|
|
|
|
|
|
+ user_id, app_id,phone,device_id, ditch_id, nick_name,head_img, power, registry_time, last_login_time, last_login_ip, login_days, total_video, total_income, red_packet_balance, red_packet_amount, points_balance, points_total, withdraw_total, sign_days, user_status, risk_reason, wx_open_id, platform_id
|
|
|
from yt_dyz_user
|
|
from yt_dyz_user
|
|
|
where wx_open_id = #{openid}
|
|
where wx_open_id = #{openid}
|
|
|
and ditch_id = #{ditchId}
|
|
and ditch_id = #{ditchId}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="queryAll" resultType="com.ytpm.app.view.YtAppUserListView">
|
|
<select id="queryAll" resultType="com.ytpm.app.view.YtAppUserListView">
|
|
|
select
|
|
select
|
|
|
- user_id,app_id, ditch_id, nick_name,head_img, power, registry_time, last_login_time, last_login_ip, login_days, total_video, total_income, red_packet_balance, red_packet_amount, points_balance, points_total, withdraw_total, sign_days, user_status, risk_reason, wx_open_id, platform_id
|
|
|
|
|
|
|
+ user_id,app_id,phone,device_id, ditch_id, nick_name,head_img, power, registry_time, last_login_time, last_login_ip, login_days, total_video, total_income, red_packet_balance, red_packet_amount, points_balance, points_total, withdraw_total, sign_days, user_status, risk_reason, wx_open_id, platform_id
|
|
|
from yt_dyz_user
|
|
from yt_dyz_user
|
|
|
where 1 = 1
|
|
where 1 = 1
|
|
|
<if test="userId != null and userId !=''">
|
|
<if test="userId != null and userId !=''">
|
|
@@ -177,18 +185,36 @@
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectPrimaryKey" resultType="com.ytpm.app.model.YtDyzUser">
|
|
<select id="selectPrimaryKey" resultType="com.ytpm.app.model.YtDyzUser">
|
|
|
select
|
|
select
|
|
|
- user_id,app_id, ditch_id, head_img, nick_name, registry_time, last_login_time, last_login_ip, login_days, total_video, total_income, red_packet_balance, red_packet_amount, points_balance, points_total, withdraw_total, sign_days, user_status, risk_reason, wx_open_id, platform_id, power
|
|
|
|
|
|
|
+ user_id,app_id,phone,device_id, ditch_id, head_img, nick_name, registry_time, last_login_time, last_login_ip, login_days, total_video, total_income, red_packet_balance, red_packet_amount, points_balance, points_total, withdraw_total, sign_days, user_status, risk_reason, wx_open_id, platform_id, power
|
|
|
from yt_dyz_user
|
|
from yt_dyz_user
|
|
|
where user_id = #{userId}
|
|
where user_id = #{userId}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getUserList" resultType="com.ytpm.app.model.YtDyzUser">
|
|
<select id="getUserList" resultType="com.ytpm.app.model.YtDyzUser">
|
|
|
select
|
|
select
|
|
|
du.user_id,
|
|
du.user_id,
|
|
|
- head_img,
|
|
|
|
|
- nick_name,
|
|
|
|
|
- registry_time,
|
|
|
|
|
- last_login_time,
|
|
|
|
|
- last_login_ip, login_days, total_video, total_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
|
|
|
|
|
|
|
+ du.head_img,
|
|
|
|
|
+ du.nick_name,
|
|
|
|
|
+ du.phone,
|
|
|
|
|
+ du.device_id,
|
|
|
|
|
+ du.registry_time,
|
|
|
|
|
+ du.last_login_time,
|
|
|
|
|
+ du.last_login_ip,
|
|
|
|
|
+ du.login_days,
|
|
|
|
|
+ du.total_video,
|
|
|
|
|
+ du.total_income,
|
|
|
|
|
+ du.red_packet_balance,
|
|
|
|
|
+ du.red_packet_amount,
|
|
|
|
|
+ du.points_balance,
|
|
|
|
|
+ du.points_total,
|
|
|
|
|
+ du.withdraw_total,
|
|
|
|
|
+ du.sign_days,
|
|
|
|
|
+ du.user_status,
|
|
|
|
|
+ du.risk_reason,
|
|
|
|
|
+ du.wx_open_id,
|
|
|
|
|
+ du.ditch_id,
|
|
|
|
|
+ du.app_id,
|
|
|
|
|
+ du.platform_id,
|
|
|
|
|
+ du.power
|
|
|
from yt_dyz_user du
|
|
from yt_dyz_user du
|
|
|
where du.user_id in
|
|
where du.user_id in
|
|
|
<foreach collection="userIds.split(',')" item="item" separator="," open="(" close=")">
|
|
<foreach collection="userIds.split(',')" item="item" separator="," open="(" close=")">
|
|
@@ -198,7 +224,7 @@
|
|
|
|
|
|
|
|
<select id="queryAllByTime" resultType="com.ytpm.app.model.YtDyzUser">
|
|
<select id="queryAllByTime" resultType="com.ytpm.app.model.YtDyzUser">
|
|
|
SELECT
|
|
SELECT
|
|
|
- user_id,app_id, nick_name, head_img, power, registry_time,
|
|
|
|
|
|
|
+ user_id,app_id,phone,device_id, nick_name, head_img, power, registry_time,
|
|
|
last_login_time, last_login_ip, login_days, total_video,
|
|
last_login_time, last_login_ip, login_days, total_video,
|
|
|
total_income, red_packet_balance, red_packet_amount,
|
|
total_income, red_packet_balance, red_packet_amount,
|
|
|
points_balance, points_total, withdraw_total, sign_days,
|
|
points_balance, points_total, withdraw_total, sign_days,
|
|
@@ -228,7 +254,7 @@
|
|
|
</select>
|
|
</select>
|
|
|
<select id="queryByOpenid" resultType="com.ytpm.app.model.YtDyzUser">
|
|
<select id="queryByOpenid" resultType="com.ytpm.app.model.YtDyzUser">
|
|
|
select
|
|
select
|
|
|
- user_id, head_img, nick_name, registry_time, last_login_time, last_login_ip, login_days, total_video, total_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
|
|
|
|
|
|
|
+ user_id,phone,device_id, head_img, nick_name, registry_time, last_login_time, last_login_ip, login_days, total_video, total_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
|
|
|
from yt_dyz_user
|
|
from yt_dyz_user
|
|
|
where wx_open_id = #{openid}
|
|
where wx_open_id = #{openid}
|
|
|
</select>
|
|
</select>
|