# 自由打卡接口

# 自由打卡记录查询

请求方式: POST(HTTPS
请求地址: https://openapi.waiqin365.com/api/std_attendance_bas/v1/queryAttendanceRecords/{ openid }/{ timestamp }/{ digest }/{ msg_id } 在线调试
请求示例:

{
	"start_date": "2020-01-01",
	"end_date": "2020-06-30"
}
说明: 本示例仅供参考,具体以参数说明为准。

参数说明:

参数 类型 必填 说明
start_date VARCHAR(32) 开始日期。格式:yyyy-MM-dd
end_date VARCHAR(32) 结束日期。格式:yyyy-MM-dd
emp_id VARCHAR(32) 员工id
emp_code VARCHAR(32) 员工code
job_name VARCHAR(32) 岗位名称
position_name VARCHAR(32) 职务名称
emp_mobile VARCHAR(32) 员工手机号
dept_id VARCHAR(32) 部门id
att_type_name VARCHAR(32) 考勤类型名称
att_status VARCHAR(32) 考勤状态。0:正常,1:脱岗
page_size VARCHAR(32) 页面数据条数,默认100
page_num VARCHAR(32) 第几页,默认0

响应示例:

[
	{
		"attInfo": [
			{
				"attLocationText": "江苏省南京市建邺区沙洲街道康文路康缘智汇港附近",
				"attOffset": "",
				"attPhoto": "",
				"attPosition": "",
				"attRemarks": "",
				"attStatus": "0",
				"attTime": "2020-05-11 10:11:04",
				"attTypeName": "上班打卡"
			},
			{
				"attLocationText": "江苏省南京市建邺区沙洲街道康文路康缘智汇港附近",
				"attOffset": "",
				"attPhoto": "[http://image-test.waiqin365.com/5573910734985033605/std_attendance/202005/20200511135623367_42354672_CAMERA_21001002273.jpg, http://image-test.waiqin365.com/5573910734985033605/std_attendance/202005/20200511135630225_42354672_CAMERA_21002003251.jpg]",
				"attPosition": "",
				"attRemarks": "",
				"attStatus": "0",
				"attTime": "2020-05-11 13:56:14",
				"attTypeName": "下班打卡"
			}
		],
		"deptName": "开发一部",
		"empCode": "ly",
		"empId": 9076947528767875436,
		"empJob": "销售主管",
		"empMobile": "15231256332",
		"empName": "ly",
		"empPosition": "cs"
	},
	{
		"attInfo": [
			{
				"attLocationText": "江苏省南京市建邺区沙洲街道康文路康缘智汇港附近",
				"attOffset": "",
				"attPhoto": "[http://image-test.waiqin365.com/5573910734985033605/std_attendance/202005/20200507171033464_42354672_CAMERA_21001009283.jpg]",
				"attPosition": "",
				"attRemarks": "文字测试",
				"attStatus": "0",
				"attTime": "2020-05-07 17:10:56",
				"attTypeName": "上班打卡"
			},
			{
				"attLocationText": "江苏省南京市建邺区沙洲街道康文路康缘智汇港附近",
				"attOffset": "",
				"attPhoto": "",
				"attPosition": "",
				"attRemarks": "",
				"attStatus": "0",
				"attTime": "2020-05-09 13:29:02",
				"attTypeName": "上班打卡"
			},
			{
				"attLocationText": "江苏省南京市建邺区沙洲街道康文路康缘智汇港附近",
				"attOffset": "",
				"attPhoto": "[http://image-test.waiqin365.com/5573910734985033605/std_attendance/202005/20200509132914059_42354672_CAMERA_21001002271.jpg]",
				"attPosition": "",
				"attRemarks": "文字测试",
				"attStatus": "0",
				"attTime": "2020-05-09 13:29:09",
				"attTypeName": "外出途中打卡"
			}
		],
		"deptName": "钱志强测试勿删1",
		"empCode": "szx",
		"empId": 9091439356592200173,
		"empJob": "",
		"empMobile": "15251429556",
		"empName": "szx",
		"empPosition": ""
	}
]

参数说明:

参数 类型 必填 说明
empId VARCHAR(32) 员工id
empName VARCHAR(32) 员工姓名
empCode VARCHAR(1000) 员工code
empMobile VARCHAR(32) 员工手机号
deptName VARCHAR(100) 员工所属部门
empPosition VARCHAR(100) 员工职务名称
empJob VARCHAR(100) 员工岗位名称
attInfo.attTypeName VARCHAR(100) 打卡类型
attInfo.attTime VARCHAR(32) 打卡时间。格式:yyyy-MM-dd HH:mm:ss
attInfo.attStatus VARCHAR(1) 考勤状态。0:正常,1:脱岗
attInfo.attLocationText VARCHAR(100) 地标信息
attInfo.attPosition VARCHAR(100) 考勤点位置
attInfo.attOffset VARCHAR(100) 考勤点偏差
attInfo.attRemarks VARCHAR(4000) 文字说明
attInfo.attPhoto VARCHAR(100) 打卡照片