## 获取人员信息判断是否登陆
~~~[api]
post:/indexs.php/fangyi/Workerctr/getWorkerInfo
*openid=默认值#微信openid
*groupid#项目id
<<<
success
{
"code": 0,
"msg": "查询成功",
"data": {
"workerid": "20",
"weid": "2",
"groupid": "21",
"workertype": "3",
"name": "王五",
"phone": "13562555557",
"idcard": "410215235452021487",
"nativeplace": "河南郑州",
"istouch": "0",
"isnear": "0",
"health": "1",
"isremote": "0",
"startplace": null,
"transport": null,
"trannumber": null,
"returndate": null,
"roomid": "19",
"roomname": "302",
"reachdate": null,
"openid": "abc123",
"groupname":"春天里项目",
"createtime": "1582096283",
"isdel": "0"
}
}
---code=4002跳转至信息页,让用户补全健康信息
{
"code": 4002,
"msg": "请完善个人信息",
"data": {
"workerid": "28",
"weid": null,
"groupid": "21",
"workertype": "1",
"name": null,
"phone": "15611111111",
"idcard": null,
"nativeplace": null,
"istouch": "0",
"isnear": "0",
"health": "1",
"isremote": "0",
"startplace": null,
"transport": null,
"trannumber": null,
"returndate": null,
"roomid": null,
"roomname": null,
"reachdate": null,
"openid": "abc",
"createtime": null,
"isdel": "0"
}
}
<<<
error
{
"code": 4001,
"msg": "请登陆关联人员",
"data": []
}
~~~
---
**返回信息**
| 参数 | 参数类型 | 必须 | 说明|
| ----------- | ------------------------------ | ------------ | --- |
| workerid| string| yes |人员id|
| groupid| String| yes | 项目id|
| workertype| String| yes | 1:工人2:工作人员:3访客|
| name| String| yes | 员工姓名|
| phone| String| yes | 手机号|
| idcard| String| yes | 身份证号|
| nativeplace| String| yes | 籍贯|
| istouch| String| yes | 是否接触湖北或感染人员|
| isnear| String| yes | 是否在湖北停留过|
| health| String| yes | 1:健康2:发烧乏力干咳,3:其它|
| isremote| String| yes | 1从其他城市返回|
| startpalce| String| yes | 出发地|
| transport| String| yes | 交通工具|
| trannumber| String| yes | 车次|
| returndate| String| yes | 出发日期|
| roomid| String| yes | 房间id|
| roomname| String| yes | 房间名|
| reachdate| String| yes | 到达日期|
| openid| String| yes | 微信标识|
| createtime| String| yes | 创建时间|
|groupname|String|yes|项目名|
|department|String|yes|单位|