| | |
| | | import com.panzhihua.common.model.dtos.user.PageUserAppletsBackstageDTO; |
| | | import com.panzhihua.common.model.dtos.user.SysUserFeedbackDTO; |
| | | import com.panzhihua.common.model.vos.*; |
| | | import com.panzhihua.common.model.vos.community.ComActVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngVolunteerMngVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.ActivityManagerVO; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | |
| | | }); |
| | | loginUserInfoVO.setComMngFamilyInfoVOS(comMngFamilyInfoVOS); |
| | | } |
| | | ComActVO comActVO=userDao.selectCommunity(loginUserInfoVO.getCommunityId()); |
| | | loginUserInfoVO.setCommunityName(comActVO.getName()); |
| | | return R.ok(loginUserInfoVO); |
| | | } |
| | | |
| | |
| | | List<SysUserNoticeVO> sysUserNoticeVOList=new ArrayList<>(); |
| | | List<SysUserNoticeDO> sysUserNoticeDOS = sysUserNoticeDAO.selectList(new QueryWrapper<SysUserNoticeDO>().lambda().eq(SysUserNoticeDO::getUserId, userId).orderByDesc(SysUserNoticeDO::getCreateAt)); |
| | | if (!ObjectUtils.isEmpty(sysUserNoticeDOS)) { |
| | | List<Integer> typeList=new ArrayList<>(4); |
| | | sysUserNoticeDOS.forEach(sysUserNoticeDO -> { |
| | | SysUserNoticeVO sysUserNoticeVO=new SysUserNoticeVO(); |
| | | BeanUtils.copyProperties(sysUserNoticeDO,sysUserNoticeVO); |
| | | sysUserNoticeVOList.add(sysUserNoticeVO); |
| | | Integer type = sysUserNoticeDO.getType(); |
| | | if (!typeList.contains(type)) { |
| | | SysUserNoticeVO sysUserNoticeVO=new SysUserNoticeVO(); |
| | | BeanUtils.copyProperties(sysUserNoticeDO,sysUserNoticeVO); |
| | | sysUserNoticeVOList.add(sysUserNoticeVO); |
| | | typeList.add(type); |
| | | } |
| | | }); |
| | | } |
| | | noticeUnReadVO.setSysUserNoticeVOList(sysUserNoticeVOList); |
| | |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | String encode = new BCryptPasswordEncoder().encode("admin123456"); |
| | | String encode = new BCryptPasswordEncoder().encode("lbsq123456"); |
| | | System.out.println(encode); |
| | | |
| | | |
| | | |
| | | BCryptPasswordEncoder encoder = new BCryptPasswordEncoder(); |
| | | boolean matches = encoder.matches("admin1234567", encode); |
| | | System.out.println(matches); |
| | | // BCryptPasswordEncoder encoder = new BCryptPasswordEncoder(); |
| | | // boolean matches = encoder.matches("admin1234567", encode); |
| | | // System.out.println(matches); |
| | | } |
| | | } |