This commit is contained in:
张良(004796)
2024-03-15 17:02:47 +08:00
parent 00e5cfb288
commit 224f17d404
5 changed files with 9 additions and 5 deletions

View File

@@ -249,7 +249,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
log.error("分销失败,参数错误 amount={},accountChangeEnum={}",amount,accountChangeEnum);
return false;
}
baseMapper.incsCoin(userId, amount);
baseMapper.incsIncomeCoin(userId, amount);
if(ConsumeLogType.GIFT.getCode().equals(consumeLog.getType())){ // 礼物
Gift gift = giftService.getById(consumeLog.getBusinessParam());
accountChangeLogService.saveLogNoAdmin(userId,user.getUsercode(), accountChangeEnum,amount,consumeLog.getTraceId(),
@@ -368,7 +368,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
}
if(incsIncomeCoin > 0){
payIncome = payIncome - incsIncomeCoin;
baseMapper.incsCoin(callUserData.getId(), incsIncomeCoin);
baseMapper.incsIncomeCoin(callUserData.getId(), incsIncomeCoin);
}
}
Long amountReal = payCoin + payIncome; // 实际支付的金额

View File

@@ -58,7 +58,7 @@ public class UserCameraAuditServiceImpl extends ServiceImpl<UserCameraAuditMappe
if(userCameraAudit != null){
vo = BeanConvertUtil.convertTo(userCameraAudit, CameraAuditVo::new);
} else {
int actionType = RandomUtil.randomInt(0, 4);
int actionType = RandomUtil.randomInt(1, 5);
vo = new CameraAuditVo();
vo.setUserId(userId);
vo.setActionType(actionType);