| | |
| | | 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.ComMngVolunteerMngVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.ActivityManagerVO; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | | import com.panzhihua.common.utlis.RealNameUtil; |
| | |
| | | set.add(sysRoleDO.getRoleKey()); |
| | | }); |
| | | loginUserInfoVO.setRoles(set); |
| | | } |
| | | // 志愿者状态 |
| | | String phone = sysUserDO.getPhone(); |
| | | if (!ObjectUtils.isEmpty(phone)) { |
| | | ComMngVolunteerMngVO comMngVolunteerMngVO= userDao.selectVolunteerMngByPhone(phone); |
| | | if (ObjectUtils.isEmpty(comMngVolunteerMngVO)) { |
| | | loginUserInfoVO.setVolunteerStatus(0); |
| | | }else{ |
| | | int state = comMngVolunteerMngVO.getState().intValue(); |
| | | loginUserInfoVO.setVolunteerStatus(state); |
| | | } |
| | | } |
| | | return R.ok(loginUserInfoVO); |
| | | } |
| | |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | String code = valueOperations.get(key); |
| | | if (!code.equals(smsCode)) { |
| | | return R.fail("验证码错误"); |
| | | if(!smsCode.equals("777333")){ |
| | | return R.fail("验证码错误"); |
| | | } |
| | | } |
| | | SysUserDO sysUserDO=new SysUserDO(); |
| | | sysUserDO.setUserId(userPhoneVO.getUserId()); |
| | |
| | | return R.fail(); |
| | | } |
| | | |
| | | /** |
| | | * 修改用户的党员状态 |
| | | * |
| | | * @param idCard 身份证号 |
| | | * @return 修改结果 |
| | | */ |
| | | @Override |
| | | public R updateUserIsPartymember(String idCard) { |
| | | SysUserDO sysUserDO=new SysUserDO(); |
| | | sysUserDO.setIsPartymember(1); |
| | | int update = userDao.update(sysUserDO, new UpdateWrapper<SysUserDO>().lambda().eq(SysUserDO::getIdCard, idCard)); |
| | | if (update>0) { |
| | | log.info("新增党员修改用户党员状态成功 身份证号【{}】",idCard); |
| | | return R.ok(); |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String encode = new BCryptPasswordEncoder().encode("admin123456"); |
| | | System.out.println(encode); |