import { httpPOST, httpGET } from './common/httpFetch' /** * @description 查询多人某月考勤记录(考勤报表) * @param { string } mouthDate 年-月 * @param { string } gradeValue 年级 * @param { string } classValue 班级 */ export const getMorePersonMouthData = body => { return httpPOST('data/api-a/att/morequery', { body }) } /** * @description 查询单人某月考勤记录 * @param { string } mouthDate 年-月 * @param { string } personId 查询人id */ export const getPersonMouthData = body => { return httpPOST('data/api-a/att/queryperson', { body, header: { 'Content-Type': 'application/x-www-form-urlencoded' } }) } /** * @description 查询单人某月考勤记录 * @param { int } id 人员id * @param { string } mouthDate 年-月 * @param { string } personId 查询人id */ export const getPersonById = body => { return httpPOST('data/api-a/att/queryPersonById', { body, header: { 'Content-Type': 'application/x-www-form-urlencoded' } }) } /** * @description 修改某人某天考勤记录 * @param { string } recordId 考勤记录Id * @param { string } mouthDay 年-月-日 * @param { string } leaveOrRepair leave 请假 repair 补签 */ export const getEditAttend = body => { return httpPOST('data/api-a/att/updateRecord', { body, header: { 'Content-Type': 'application/x-www-form-urlencoded' } }) } /** * @description 流水记录查询接口 * @param { string } contentValue 姓名/身份证号/学号/位置 * @param { string } identity 身份 学生:student,老师:teacher * @param { string } gradeValue 年级 * @param { string } classValue 班级 * @param { string } startTime 起始时间 2018/10/30 * @param { string } endTime 结束时间 2018/11/20 * @param { string } page 页数 * @param { string } size 每页条数 */ export const getAttendList = body => { return httpPOST('data/api-a/att/queryEsRecord', { body, header: { 'Content-Type': 'application/x-www-form-urlencoded' } }) } /** * 首页导出搜索记录 * @param {} body */ export const searchExcel = body => { return httpGET('data/api-a/att/searchExcel', { body, header: { 'Content-Type': 'application/x-www-form-urlencoded' } }) } /** * 导出某人单月记录 * @param {*} body */ export const exportMouthExcel = body => { return httpGET('data/api-a/att/poiPersonMouuthDataExcel', { body, header: { 'Content-Type': 'application/x-www-form-urlencoded' } }) }