liujie
2025-08-12 eb26bdbcc9bf9f681e66cdea328a57e823642dc8
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());
                        BigDecimal add = shareUser.getBalance().add(order.getCommissionPrice());
                        shareUser.setBalance(add);
                        shareUser.updateById();
                        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);