@Test public void testSelectUserRechargeCardPrize() throws Exception { }
@Override public List<Map<String, Object>> selectUserRechargeCardPrize(Long accountId, Long commodityId) { List<Map<String, Object>> mapList = new ArrayList<>(); Commodity history = commMapper.selectComIdAndUser(accountId, commodityId); CommodityTemplate template = templateMapper.selectById(history.getTempId()); Map<String, Object> map = new HashMap<>(); map.put("commodityName", template.getName()); map.put("roundTime", history.getRoundTime()); map.put("commodityId", history.getId()); map.put("endTime", history.getEndTime()); map.put("coverImgUrl", template.getCoverImgUrl()); map.put("exchangeState", history.getExchangeState()); mapList.add(map); return mapList; }
ExchangeMethodServiceImpl implements IExchangeMethodService { @Override public List<Map<String, Object>> selectUserRechargeCardPrize(Long accountId, Long commodityId) { List<Map<String, Object>> mapList = new ArrayList<>(); Commodity history = commMapper.selectComIdAndUser(accountId, commodityId); CommodityTemplate template = templateMapper.selectById(history.getTempId()); Map<String, Object> map = new HashMap<>(); map.put("commodityName", template.getName()); map.put("roundTime", history.getRoundTime()); map.put("commodityId", history.getId()); map.put("endTime", history.getEndTime()); map.put("coverImgUrl", template.getCoverImgUrl()); map.put("exchangeState", history.getExchangeState()); mapList.add(map); return mapList; } }
ExchangeMethodServiceImpl implements IExchangeMethodService { @Override public List<Map<String, Object>> selectUserRechargeCardPrize(Long accountId, Long commodityId) { List<Map<String, Object>> mapList = new ArrayList<>(); Commodity history = commMapper.selectComIdAndUser(accountId, commodityId); CommodityTemplate template = templateMapper.selectById(history.getTempId()); Map<String, Object> map = new HashMap<>(); map.put("commodityName", template.getName()); map.put("roundTime", history.getRoundTime()); map.put("commodityId", history.getId()); map.put("endTime", history.getEndTime()); map.put("coverImgUrl", template.getCoverImgUrl()); map.put("exchangeState", history.getExchangeState()); mapList.add(map); return mapList; }  }
ExchangeMethodServiceImpl implements IExchangeMethodService { @Override public List<Map<String, Object>> selectUserRechargeCardPrize(Long accountId, Long commodityId) { List<Map<String, Object>> mapList = new ArrayList<>(); Commodity history = commMapper.selectComIdAndUser(accountId, commodityId); CommodityTemplate template = templateMapper.selectById(history.getTempId()); Map<String, Object> map = new HashMap<>(); map.put("commodityName", template.getName()); map.put("roundTime", history.getRoundTime()); map.put("commodityId", history.getId()); map.put("endTime", history.getEndTime()); map.put("coverImgUrl", template.getCoverImgUrl()); map.put("exchangeState", history.getExchangeState()); mapList.add(map); return mapList; }  @Override boolean exchangeToCash(String exchangeTerraceName, String terraceAccount, Long commodityId, Long accountId); @Override List<Map<String, Object>> selectUserRechargeCardPrize(Long accountId, Long commodityId); @Override boolean orTrue(Long accountId, Long commodityId); @Override Map<String, Object> selectUserRechargeCardExchangeProcess(Long accountId, Long commodityId); Map<String, Object> demo2(Long commodityId); Map<String, Object> demo3(Long accountId, Long commodityId); @Override Map<String, Object> temp1(Long accountId, Long commodityId); @Override Map<String, Object> temp2(Long accountId, Long commodityId, Long addressId); @Override Map<String, Object> temp3(Long accountId, Long commodityId); @Override boolean temp4(Long accountId, Long commodityId); @Override Map<String, Object> temp5(Long accountId, Long commodityId); @Override String cardPassword(String card); }
ExchangeMethodServiceImpl implements IExchangeMethodService { @Override public List<Map<String, Object>> selectUserRechargeCardPrize(Long accountId, Long commodityId) { List<Map<String, Object>> mapList = new ArrayList<>(); Commodity history = commMapper.selectComIdAndUser(accountId, commodityId); CommodityTemplate template = templateMapper.selectById(history.getTempId()); Map<String, Object> map = new HashMap<>(); map.put("commodityName", template.getName()); map.put("roundTime", history.getRoundTime()); map.put("commodityId", history.getId()); map.put("endTime", history.getEndTime()); map.put("coverImgUrl", template.getCoverImgUrl()); map.put("exchangeState", history.getExchangeState()); mapList.add(map); return mapList; }  @Override boolean exchangeToCash(String exchangeTerraceName, String terraceAccount, Long commodityId, Long accountId); @Override List<Map<String, Object>> selectUserRechargeCardPrize(Long accountId, Long commodityId); @Override boolean orTrue(Long accountId, Long commodityId); @Override Map<String, Object> selectUserRechargeCardExchangeProcess(Long accountId, Long commodityId); Map<String, Object> demo2(Long commodityId); Map<String, Object> demo3(Long accountId, Long commodityId); @Override Map<String, Object> temp1(Long accountId, Long commodityId); @Override Map<String, Object> temp2(Long accountId, Long commodityId, Long addressId); @Override Map<String, Object> temp3(Long accountId, Long commodityId); @Override boolean temp4(Long accountId, Long commodityId); @Override Map<String, Object> temp5(Long accountId, Long commodityId); @Override String cardPassword(String card);  }