ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TbOrderServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TbOrderServiceImpl.java
@@ -143,10 +143,11 @@ order.setCommissionPrice(userCommissionMoney); if(userCommissionMoney.doubleValue()>0){ TbUser shareUser = userService.getById(user.getInviteId()); if(shareUser!=null){ BigDecimal add = shareUser.getBalance().add(order.getCommissionPrice()); shareUser.setBalance(add); shareUser.updateById(); } TbAccountDetail accountDetail = new TbAccountDetail(); accountDetail.setUserId(user.getInviteId()); accountDetail.setType(1);