From cd7dcfe32b0eddc70a3c33532bd6fdcbe52e4dc6 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期五, 21 十月 2022 16:23:21 +0800 Subject: [PATCH] #feat 修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java index 23c092e..5860371 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java @@ -1,12 +1,12 @@ package com.panzhihua.service_community.service.impl; import java.util.ArrayList; -import java.util.Comparator; import java.util.List; -import java.util.stream.Collectors; import javax.annotation.Resource; +import com.panzhihua.common.model.vos.community.ComActPasswordVo; +import com.panzhihua.service_community.util.MyAESUtil; import org.springframework.beans.BeanUtils; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Service; @@ -223,8 +223,8 @@ * @return 社区列表 */ @Override - public R getCommunityLists() { - return R.ok(this.comActDAO.getCommunityLists()); + public R getCommunityLists(String appId) { + return R.ok(this.comActDAO.getCommunityLists(appId)); } @Override @@ -281,7 +281,16 @@ @Override public R getCommunityPassword(Long communityId){ - return R.ok(comActDAO.getCommunityPassword(communityId)); + ComActPasswordVo comActPasswordVo=comActDAO.getCommunityPassword(communityId); + try { + comActPasswordVo.setPassword(MyAESUtil.Decrypt(comActPasswordVo.getPassword(),"Ryo7M3n8loC5Abcd")); + } catch (Exception e) { + e.printStackTrace(); + } + return R.ok(comActPasswordVo); } + public R selectIds(Long id){ + return R.ok(this.comActDAO.selectIds(id)); + } } -- Gitblit v1.7.1