补齐父手机客户
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
last_time, last_ip, join_time, join_ip, token, created_at, updated_at,
|
||||
status, viptime, is_vip, contract, max_order, is_resell,
|
||||
yesterday_sell_count, today_buy_count, today_buy_total, today_sell_total,
|
||||
poor, pname
|
||||
poor, pname, pmobile
|
||||
) VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(
|
||||
@@ -21,7 +21,8 @@
|
||||
#{item.createdAt}, #{item.updatedAt},
|
||||
#{item.status}, #{item.viptime}, #{item.isVip}, #{item.contract}, #{item.maxOrder},
|
||||
#{item.isResell}, #{item.yesterdaySellCount}, #{item.todayBuyCount},
|
||||
#{item.todayBuyTotal}, #{item.todaySellTotal}, #{item.poor}, #{item.pname}
|
||||
#{item.todayBuyTotal}, #{item.todaySellTotal}, #{item.poor}, #{item.pname},
|
||||
#{item.pmobile}
|
||||
)
|
||||
</foreach>
|
||||
ON DUPLICATE KEY UPDATE
|
||||
@@ -60,7 +61,15 @@
|
||||
today_buy_total = VALUES(today_buy_total),
|
||||
today_sell_total = VALUES(today_sell_total),
|
||||
poor = VALUES(poor),
|
||||
pname = VALUES(pname)
|
||||
pname = VALUES(pname),
|
||||
pmobile = VALUES(pmobile)
|
||||
</insert>
|
||||
|
||||
<update id="fillPmobileByTenantId">
|
||||
UPDATE lb_user u
|
||||
LEFT JOIN lb_user p ON u.pid = p.id AND u.tenant_id = p.tenant_id
|
||||
SET u.pmobile = p.mobile
|
||||
WHERE u.tenant_id = #{tenantId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user