| | |
| | | } |
| | | |
| | | @Override |
| | | public ServerResponse updateUserAssets(Integer id, String amt,String type) { |
| | | public ServerResponse updateUserAssets(Integer id, String amt,String type, String accectType) { |
| | | UserAssets userAssets = userAssetsMapper.selectById(id); |
| | | UserPosition userPosition = userPositionMapper.selectOne(new LambdaQueryWrapper<UserPosition>().gt(UserPosition::getAmountToBeCovered, BigDecimal.ZERO).eq(UserPosition::getUserId,userAssets.getUserId())); |
| | | // 0 入款 1是扣钱 2 是充值 3 是提币 |
| | |
| | | } |
| | | }else{ |
| | | if(type.equals("2")){ |
| | | return userRechargeService.createOrder(userAssets.getUserId(),1,bigAmt.intValue(),"1"); |
| | | return userRechargeService.createOrder(userAssets.getUserId(),1,bigAmt.intValue(),"1", accectType); |
| | | }else{ |
| | | return ServerResponse.createBySuccess(); |
| | | } |