| | |
| | | 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); |
| | |
| | | } 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 |