| | |
| | | * @param money |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void createLijinSuccess(Long accountId, Long auctionId, BigDecimal money, Date createTime) { |
| | | public void createLijinSuccess(Long accountId, String auctionId, BigDecimal money, Date createTime) { |
| | | String day = TimeUtil.getGernalTime(createTime.getTime(), "yyyyMMdd"); |
| | | String goodsKey = String.format("lijingoodsnum-%s-%s", day, accountId); |
| | | String accountMoneyKey = String.format("lijinaccountmoney-%s-%s", day, accountId); |
| | |
| | | Jedis jedis = jedisPool.getResource(); |
| | | try { |
| | | todayMoney = Long.parseLong(jedis.get(accountMoneyKey) + ""); |
| | | } catch (NumberFormatException e) { |
| | | jedis.set(accountMoneyKey, money.multiply(new BigDecimal(100)).intValue() + ""); |
| | | } finally { |
| | | jedis.close(); |
| | | } |
| | |
| | | * @param accountId |
| | | */ |
| | | public void initTodayData(Long accountId) { |
| | | createLijinSuccess(accountId, 1L, new BigDecimal(0), new Date()); |
| | | createLijinSuccess(accountId, 1L+"", new BigDecimal(0), new Date()); |
| | | } |
| | | |
| | | |