| | |
| | | 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); |