@Test public void testExchangeToCash() throws Exception { }
@Override public boolean exchangeToCash(String exchangeTerraceName, String terraceAccount, Long commodityId, Long accountId) { Commoditys com = comMapper.selectByKey(commodityId); CommodityTemplate template = templateMapper.selectByPrimaryKey(com.getTempId()); Integer money = template.getWithdrawalsMoney(); User user = userMapper.selectByPrimaryKey(accountId); String realName = user.getRealName(); ExchangeCashMessage exCash = new ExchangeCashMessage(); exCash.setUserAccountId(accountId); exCash.setExchangeAmount(money); exCash.setExchangeTerraceName(exchangeTerraceName); exCash.setState(0); exCash.setTerraceAccount(terraceAccount); exCash.setUserRealName(realName); return cashMapper.insert(exCash) > 0; }
ExchangeMethodServiceImpl implements IExchangeMethodService { @Override public boolean exchangeToCash(String exchangeTerraceName, String terraceAccount, Long commodityId, Long accountId) { Commoditys com = comMapper.selectByKey(commodityId); CommodityTemplate template = templateMapper.selectByPrimaryKey(com.getTempId()); Integer money = template.getWithdrawalsMoney(); User user = userMapper.selectByPrimaryKey(accountId); String realName = user.getRealName(); ExchangeCashMessage exCash = new ExchangeCashMessage(); exCash.setUserAccountId(accountId); exCash.setExchangeAmount(money); exCash.setExchangeTerraceName(exchangeTerraceName); exCash.setState(0); exCash.setTerraceAccount(terraceAccount); exCash.setUserRealName(realName); return cashMapper.insert(exCash) > 0; } }
ExchangeMethodServiceImpl implements IExchangeMethodService { @Override public boolean exchangeToCash(String exchangeTerraceName, String terraceAccount, Long commodityId, Long accountId) { Commoditys com = comMapper.selectByKey(commodityId); CommodityTemplate template = templateMapper.selectByPrimaryKey(com.getTempId()); Integer money = template.getWithdrawalsMoney(); User user = userMapper.selectByPrimaryKey(accountId); String realName = user.getRealName(); ExchangeCashMessage exCash = new ExchangeCashMessage(); exCash.setUserAccountId(accountId); exCash.setExchangeAmount(money); exCash.setExchangeTerraceName(exchangeTerraceName); exCash.setState(0); exCash.setTerraceAccount(terraceAccount); exCash.setUserRealName(realName); return cashMapper.insert(exCash) > 0; }  }
ExchangeMethodServiceImpl implements IExchangeMethodService { @Override public boolean exchangeToCash(String exchangeTerraceName, String terraceAccount, Long commodityId, Long accountId) { Commoditys com = comMapper.selectByKey(commodityId); CommodityTemplate template = templateMapper.selectByPrimaryKey(com.getTempId()); Integer money = template.getWithdrawalsMoney(); User user = userMapper.selectByPrimaryKey(accountId); String realName = user.getRealName(); ExchangeCashMessage exCash = new ExchangeCashMessage(); exCash.setUserAccountId(accountId); exCash.setExchangeAmount(money); exCash.setExchangeTerraceName(exchangeTerraceName); exCash.setState(0); exCash.setTerraceAccount(terraceAccount); exCash.setUserRealName(realName); return cashMapper.insert(exCash) > 0; }  @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 boolean exchangeToCash(String exchangeTerraceName, String terraceAccount, Long commodityId, Long accountId) { Commoditys com = comMapper.selectByKey(commodityId); CommodityTemplate template = templateMapper.selectByPrimaryKey(com.getTempId()); Integer money = template.getWithdrawalsMoney(); User user = userMapper.selectByPrimaryKey(accountId); String realName = user.getRealName(); ExchangeCashMessage exCash = new ExchangeCashMessage(); exCash.setUserAccountId(accountId); exCash.setExchangeAmount(money); exCash.setExchangeTerraceName(exchangeTerraceName); exCash.setState(0); exCash.setTerraceAccount(terraceAccount); exCash.setUserRealName(realName); return cashMapper.insert(exCash) > 0; }  @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);  }