From dc2de791aff3698c3efbe33a1958c27283ec6b54 Mon Sep 17 00:00:00 2001 From: zainali5120 <512061637@qq.com> Date: Sat, 10 Oct 2020 17:08:40 +0800 Subject: [PATCH] roc成交记录 --- src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java b/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java index d25b53d..f11773c 100644 --- a/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java +++ b/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java @@ -9,6 +9,8 @@ import javax.validation.Valid; import javax.validation.constraints.NotNull; +import com.alibaba.fastjson.JSONObject; +import com.xcong.excoin.common.utils.RedisUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -45,6 +47,8 @@ private final MemberMapper memberMapper; private final FollowTraderProfitInfoMapper followTraderProfitInfoMapper; + + private final RedisUtils redisUtils; @Override public IPage<FollowTraderInfoEntity> findTraderListInPage(FollowTraderInfoEntity followTraderInfoEntity, @@ -143,6 +147,9 @@ followTraderProfitInfoEntity.setTotalFollowerCnt(BigDecimal.ZERO); followTraderProfitInfoEntity.setTotalOrderCnt(BigDecimal.ZERO); followTraderProfitInfoMapper.insert(followTraderProfitInfoEntity); + + String token = redisUtils.getString("app_" + memberEntity.getId()); + redisUtils.set("app_" + token, JSONObject.toJSONString(memberEntity), 36000); }else { //更新【交易员信息表】数据 selectById.setVerifyStatus(FollowTraderInfoEntity.VERIFYSTATUS_N); -- Gitblit v1.9.1