| | |
| | | if(count>0){ |
| | | loginUserInfoVO.setIsCheckUnitAdmin(1); |
| | | } |
| | | else { |
| | | loginUserInfoVO.setIsCheckUnitAdmin(0); |
| | | } |
| | | Long checkUnitId=userDao.selectCheckUnitId(phone); |
| | | Long AdminUnitId=userDao.selectOrgAdminId(phone); |
| | | if(checkUnitId!=null){ |
| | | loginUserInfoVO.setCheckUnitId(checkUnitId); |
| | | } |
| | | |
| | | else { |
| | | loginUserInfoVO.setIsCheckUnitAdmin(0); |
| | | if (AdminUnitId!=null){ |
| | | loginUserInfoVO.setBindingCheckUnitId(AdminUnitId); |
| | | } |
| | | //是否网格员 |
| | | int easyPhotoMember = userDao.countEasyPhotoMember(phone, userCommunityId); |
| | |
| | | */ |
| | | @Override |
| | | public CommunityUserInfoVO detailUserComunity(Long userId) { |
| | | CommunityUserInfoVO communityUserInfoVO = new CommunityUserInfoVO(); |
| | | CommunityUserInfoVO communityUserInfoVO = null; |
| | | SysUserDO sysUserDO = userDao.selectById(userId); |
| | | if (!ObjectUtils.isEmpty(sysUserDO)) { |
| | | communityUserInfoVO = new CommunityUserInfoVO(); |
| | | String idCard = sysUserDO.getIdCard(); |
| | | if (!ObjectUtils.isEmpty(idCard)) { |
| | | communityUserInfoVO.setAge(IdCard.IdNOToAge(idCard)); |
| | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | // JSONObject result = JSON.parseObject(resultJson); |
| | | // if (result.get("status").equals(1)) { |
| | | // return R.ok(result.get("data")+" "+resultJson); |
| | | // } |
| | | return R.fail("信息错误"+" "+resultJson); |
| | | JSONObject result = JSON.parseObject(resultJson); |
| | | if (result.get("status").equals(1)) { |
| | | return R.ok(result.get("data")); |
| | | } |
| | | return R.fail(resultJson,"信息错误"); |
| | | } |
| | | |
| | | @Override |