From b47f8a03db79bb1f6356479cd8a5cf190d7d9694 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 23 六月 2021 11:10:36 +0800 Subject: [PATCH] 礼金功能完善 --- service-lijin/src/main/java/com/ks/lijin/service/manager/LiJinProviderTaoKeAccountManager.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/service-lijin/src/main/java/com/ks/lijin/service/manager/LiJinProviderTaoKeAccountManager.java b/service-lijin/src/main/java/com/ks/lijin/service/manager/LiJinProviderTaoKeAccountManager.java index 70bdde7..a00bcc2 100644 --- a/service-lijin/src/main/java/com/ks/lijin/service/manager/LiJinProviderTaoKeAccountManager.java +++ b/service-lijin/src/main/java/com/ks/lijin/service/manager/LiJinProviderTaoKeAccountManager.java @@ -48,6 +48,7 @@ LiJinProviderTaoKeAccount account = liJinProviderAccountMapper.selectByPrimaryKeyForUpdate(accountId); if (account != null) { LiJinProviderTaoKeAccount update = new LiJinProviderTaoKeAccount(); + update.setId(account.getId()); update.setTodayConsumeMoney(new BigDecimal(todayMoney).divide(new BigDecimal(100), 2, RoundingMode.FLOOR)); update.setTodayConsumeNumber((int) goodsNum); update.setUpdateTime(new Date()); @@ -70,7 +71,7 @@ public void deleteInfoInRedis(Date date) { String day = TimeUtil.getGernalTime(date.getTime(), "yyyyMMdd"); String goodsKey = String.format("lijingoodsnum-%s-*", day); - String accountMoneyKey = String.format("lijinaccountmoney-%s-%s", day); + String accountMoneyKey = String.format("lijinaccountmoney-%s-*", day); redisTemplate.delete(goodsKey); redisTemplate.delete(accountMoneyKey); } -- Gitblit v1.8.0