| | |
| | | |
| | | for (int i = 0; i <userRecharges.size() ; i++) { |
| | | //SitePay s = sitePayMapper.selectById(userRecharges.get(i).getPayId()); |
| | | userRecharges.get(i).setAssetsType(EStockType.getDefault().getSymbol1()); |
| | | userRecharges.get(i).setChannelName(EStockType.getDefault().getSymbol()); |
| | | if (StringUtils.isNotBlank(userRecharges.get(i).getAssetsType())) { |
| | | EStockType eStockType = EStockType.getEStockTypeByCode(userRecharges.get(i).getAssetsType()); |
| | | userRecharges.get(i).setAssetsType(eStockType.getSymbol1()); |
| | | userRecharges.get(i).setChannelName(eStockType.getSymbol()); |
| | | } else { |
| | | userRecharges.get(i).setAssetsType(EStockType.getDefault().getSymbol1()); |
| | | userRecharges.get(i).setChannelName(EStockType.getDefault().getSymbol()); |
| | | } |
| | | |
| | | } |
| | | |
| | | return ServerResponse.createBySuccess(pageInfo); |
| | |
| | | userRecharge.setPayTime(new Date()); |
| | | userRecharge.setOrderStatus(Integer.valueOf(1)); |
| | | userRecharge.setPayId(1); |
| | | userRecharge.setAssetsType(accectType); |
| | | userAssetsServices.availablebalanceChange(accectType, |
| | | userId,EUserAssets.TOP_UP,new BigDecimal(amt),"",""); |
| | | int insertCount = this.userRechargeMapper.insert(userRecharge); |
| | |
| | | |
| | | return userRecharges; |
| | | } |
| | | |
| | | @Override |
| | | public int countPendingRecharge() { |
| | | com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<UserRecharge> queryWrapper = new com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<>(); |
| | | queryWrapper.eq("order_status", 0); |
| | | return this.userRechargeMapper.selectCount(queryWrapper).intValue(); |
| | | } |
| | | } |