| | |
| | | |
| | | |
| | | import com.nq.dao.*; |
| | | import com.nq.enums.EStockType; |
| | | import com.nq.enums.EUserAssets; |
| | | import com.nq.pojo.*; |
| | | import com.nq.service.*; |
| | |
| | | |
| | | for (int i = 0; i <userRecharges.size() ; i++) { |
| | | SitePay s = sitePayMapper.selectById(userRecharges.get(i).getPayId()); |
| | | if(s.getAssetsType().equals("US")){ |
| | | userRecharges.get(i).setAssetsType("$"); |
| | | userRecharges.get(i).setChannelName("USD"); |
| | | }else{ |
| | | userRecharges.get(i).setAssetsType("RM"); |
| | | userRecharges.get(i).setChannelName("MYR"); |
| | | } |
| | | |
| | | userRecharges.get(i).setAssetsType(EStockType.getEStockTypeByCode(s.getAssetsType()).getSymbol1()); |
| | | userRecharges.get(i).setChannelName(EStockType.getEStockTypeByCode(s.getAssetsType()).getSymbol()); |
| | | } |
| | | |
| | | return ServerResponse.createBySuccess(pageInfo); |
| | |
| | | |
| | | |
| | | List<UserRecharge> userRecharges = this.userRechargeMapper.listByAdmin(agentId, userId, realName, state, begin_time, end_time); |
| | | for (int i = 0; i < userRecharges.size(); i++) { |
| | | UserRecharge u =userRecharges.get(i); |
| | | User user = userMapper.selectById(u.getUserId()); |
| | | if(user != null){ |
| | | u.setUserPhone(user.getPhone()); |
| | | } |
| | | |
| | | } |
| | | PageInfo pageInfo = new PageInfo(userRecharges); |
| | | |
| | | return ServerResponse.createBySuccess(pageInfo); |