From 8f0627589f6f58403f70fce4bf54b735d4640064 Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期五, 25 十二月 2020 17:36:33 +0800 Subject: [PATCH] 社区管理后台系统管理模块完成 --- springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java index dce4d03..81606d9 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java @@ -822,6 +822,27 @@ return R.ok(); } + /** + * 用户标签 + * + * @param communityId 社区id + * @return 标签集合 + */ + @Override + public R listComMngUserTag(Long communityId) { + List<ComMngUserTagDO> comMngUserTagDOS = comMngUserTagDAO.selectList(new QueryWrapper<ComMngUserTagDO>().lambda().eq(ComMngUserTagDO::getCommunityId, communityId)); + if (ObjectUtils.isEmpty(comMngUserTagDOS)) { + return R.fail(); + } + List<ComMngUserTagVO> comMngUserTagVOList=new ArrayList<>(); + comMngUserTagDOS.forEach(comMngUserTagDO -> { + ComMngUserTagVO comMngUserTagVO=new ComMngUserTagVO(); + BeanUtils.copyProperties(comMngUserTagDO,comMngUserTagVO); + comMngUserTagVOList.add(comMngUserTagVO); + }); + return R.ok(comMngUserTagVOList); + } + public static void main(String[] args) { String encode = new BCryptPasswordEncoder().encode("123456"); System.out.println(encode); -- Gitblit v1.7.1