This commit is contained in:
zhaohengkun 2024-10-08 15:15:22 +08:00
parent 5a65086d4d
commit 001bbd7faa
3 changed files with 6 additions and 7 deletions

View File

@ -542,7 +542,7 @@
SELECT mt_user.* SELECT mt_user.*
FROM mt_user_balance FROM mt_user_balance
LEFT JOIN mt_user ON mt_user_balance.mt_user_id = mt_user.id LEFT JOIN mt_user ON mt_user_balance.mt_user_id = mt_user.id
WHERE mt_user_balance.user_status = 0 AND mt_user_balance.store_id IN WHERE mt_user_balance.store_id IN
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")"> <foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
@ -559,7 +559,7 @@
SELECT mt_user.* SELECT mt_user.*
FROM mt_user_balance FROM mt_user_balance
LEFT JOIN mt_user ON mt_user_balance.mt_user_id = mt_user.id LEFT JOIN mt_user ON mt_user_balance.mt_user_id = mt_user.id
WHERE mt_user_balance.user_status = 0 AND mt_user_balance.store_id IN WHERE mt_user_balance.store_id IN
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")"> <foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>

View File

@ -47,7 +47,6 @@
from mt_user_balance mub from mt_user_balance mub
left join mt_user mu on mub.mt_user_id = mu.id left join mt_user mu on mub.mt_user_id = mu.id
<where> <where>
mub.user_status = 0 and
mub.store_id in mub.store_id in
<foreach collection="user.storeIds" item="item" open="(" close=")" separator=","> <foreach collection="user.storeIds" item="item" open="(" close=")" separator=",">
#{item} #{item}
@ -63,7 +62,6 @@
from mt_user_balance mub from mt_user_balance mub
left join mt_user mu on mub.mt_user_id = mu.id left join mt_user mu on mub.mt_user_id = mu.id
where where
mub.user_status = 0 and
mub.store_id in mub.store_id in
<foreach collection="storeIds" item="item" open="(" close=")" separator=","> <foreach collection="storeIds" item="item" open="(" close=")" separator=",">
#{item} #{item}

View File

@ -547,9 +547,10 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
balance.setFixingLevel(user.getFixingLevel()); balance.setFixingLevel(user.getFixingLevel());
balance.setUserLabelId(user.getUserLabelId()); balance.setUserLabelId(user.getUserLabelId());
balance.setUserStatus(user.getUserStatus()); balance.setUserStatus(user.getUserStatus());
if (ObjectUtil.isNotEmpty(balance.getCardBalance()) && balance.getCardBalance() > 0){ // if (ObjectUtil.isNotEmpty(balance.getCardBalance()) && balance.getCardBalance() > 0){
balance.setRechargeNum(1); // balance.setRechargeNum(0);
} // } 无论初始化 有无 金额 充值次数都算0
balance.setRechargeNum(0);
balanceService.insertUserBalance(balance); balanceService.insertUserBalance(balance);
Integer chainStoreId = null; Integer chainStoreId = null;
// 添加邀请注册信息 // 添加邀请注册信息