| | |
| | | import com.panzhihua.common.model.vos.partybuilding.*; |
| | | import com.panzhihua.common.model.vos.user.SysUserVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.utlis.RichTextUtil; |
| | | import com.panzhihua.common.utlis.SensitiveUtil; |
| | | import com.panzhihua.service_dangjian.dao.*; |
| | |
| | | private ComPbDynDAO comPbDynDAO; |
| | | @Resource |
| | | private ComPbDynUserDAO comPbDynUserDAO; |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | private final String REDIS_ORG_ALL="ogrlist"; |
| | | |
| | |
| | | */ |
| | | @Override |
| | | public R deletePartyCommittee(PartyCommitteeVO partyCommitteeVO) { |
| | | ComPbMemberRoleDO comPbMemberRoleDO = comPbMemberRoleDAO.selectById(partyCommitteeVO.getId()); |
| | | if(comPbMemberRoleDO==null){ |
| | | return R.fail("记录不存在"); |
| | | } |
| | | int delete = comPbMemberRoleDAO.deleteById(partyCommitteeVO.getId()); |
| | | if (delete>0) { |
| | | return R.ok(); |
| | | SysUserVO sysUserVO = comPbMemberRoleDAO.getSysUserByPhone(comPbMemberRoleDO.getPhone()); |
| | | //删除用户信息缓存 |
| | | if(sysUserVO!=null) { |
| | | Long userId = sysUserVO.getUserId(); |
| | | String userKey = UserConstants.LOGIN_USER_INFO + userId; |
| | | stringRedisTemplate.delete(userKey); |
| | | return R.ok(); |
| | | } |
| | | } |
| | | return R.fail(); |
| | | } |