From 2e6ae80c0271e5e45faa399ce94cd44678cce43f Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期五, 13 八月 2021 22:58:55 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java index e4b9a51..f4ec718 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java @@ -76,16 +76,18 @@ this.baseMapper.insert(userWalletDO); } BeanUtils.copyProperties(userWalletDO,comActWalletVO); - Map<String,String> resultMap = this.baseMapper.getCommunityName(walletDetailDTO.getCommunityId()); - if(!resultMap.isEmpty()){ + Map<String,String> resultMap = this.baseMapper.getCommunityName(walletDetailDTO.getCommunityId(),5); + if(resultMap != null && !resultMap.isEmpty()){ comActWalletVO.setCommunityName(resultMap.get("name")); if(StringUtils.isEmpty(resultMap.get("content"))){ - this.baseMapper.insertSysAgreement(Constants.PROFIT_EXPLAIN,walletDetailDTO.getCommunityId()); + this.baseMapper.insertSysAgreement(Constants.PROFIT_EXPLAIN,"收益说明",walletDetailDTO.getCommunityId(),5); comActWalletVO.setAgreement(Constants.PROFIT_EXPLAIN); }else{ comActWalletVO.setAgreement(resultMap.get("content")); } - + }else{ + this.baseMapper.insertSysAgreement(Constants.PROFIT_EXPLAIN,"收益说明",walletDetailDTO.getCommunityId(),5); + comActWalletVO.setAgreement(Constants.PROFIT_EXPLAIN); } Integer easyCount = 0; -- Gitblit v1.7.1