改变
This commit is contained in:
@@ -30,6 +30,7 @@ import java.util.*;
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
@Transactional
|
||||
public class UserMakerQuotaServiceImpl extends ServiceImpl<UserMakerQuotaMapper, UserMakerQuota> implements UserMakerQuotaService {
|
||||
@Resource
|
||||
private UserMakerQuotaMapper userMakerQuotaMapper;
|
||||
@@ -118,7 +119,7 @@ public class UserMakerQuotaServiceImpl extends ServiceImpl<UserMakerQuotaMapper,
|
||||
//提现金额
|
||||
userAccountService.modFunds(userInfo.getUserId().intValue(), "LD", "增加收益", profit, "");
|
||||
//额度改变
|
||||
modMakerFunds(userInfo.getUserId().intValue(), "LD", "收款消耗", bigDecimal, "",order.getOrderNumber());
|
||||
modMakerFunds(userInfo.getUserId().intValue(), "LD", "收款消耗", bigDecimal.negate(), "",order.getOrderNumber());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -126,7 +127,7 @@ public class UserMakerQuotaServiceImpl extends ServiceImpl<UserMakerQuotaMapper,
|
||||
BigDecimal profit=userMakerQuota.getAmount().multiply(new BigDecimal("0.0038")).setScale(2, BigDecimal.ROUND_DOWN);
|
||||
|
||||
//提现金额
|
||||
userAccountService.modFunds(userInfo.getUserId().intValue(), "LD", "增加收益", profit.abs().negate(), "");
|
||||
userAccountService.modFunds(userInfo.getUserId().intValue(), "LD", "增加收益", profit.abs(), "");
|
||||
modMakerFunds(userInfo.getUserId().intValue(), "LD", "收款消耗", userMakerQuota.getAmount().abs().negate(), "",order.getOrderNumber());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,10 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountMapper, UserA
|
||||
difference=difference.abs();
|
||||
}
|
||||
|
||||
userAccountMapper.updateBanlance(userId,difference);
|
||||
|
||||
userAccount.setBalance(userAccount.getBalance().add(difference));
|
||||
userAccount.setUpdateTime(new Date());
|
||||
userAccountMapper.updateById(userAccount);
|
||||
|
||||
UserAccountFlow flow=new UserAccountFlow();
|
||||
flow.setUserId(userId);
|
||||
|
||||
Reference in New Issue
Block a user