= 考勤分析 [width="100%",options="header"] [stripes=even] |==================== |Version | Update Time | Status | Author | Description |0.0.1|2022-09-20 09:50:00|创建文档|binguo|初始化接口文档 |==================== == == === 读取钉钉考勤excel原始数据,添加至数据库 *URL:* http://192.168.161.34:8087/attendance/month/importMonth *Type:* POST *Content-Type:* multipart/form-data *Query-parameters:* [width="100%",options="header"] [stripes=even] |==================== |Parameter | Type|Description|Required|Since |file|file|No comments found.|true|- |==================== *Request-example:* ---- curl -X POST -H 'Content-Type: multipart/form-data' -i http://192.168.161.34:8087/attendance/month/importMonth ---- *Response-fields:* [width="100%",options="header"] [stripes=even] |==================== |Field | Type|Description|Since |success|boolean|接口调用结果标识|- |message|string|接口调用结果信息|- |code|string|接口调用业务码|- |data|object|接口调用返回数据|- |==================== *Response-example:* ---- { "success": true, "message": "success", "code": "4224", "data": { "waring": "You may have used non-display generics." } } ---- == === 读取钉钉考勤excel原始数据,添加至数据库 *URL:* http://192.168.161.34:8087/attendance/original/importOriginal *Type:* POST *Content-Type:* multipart/form-data *Query-parameters:* [width="100%",options="header"] [stripes=even] |==================== |Parameter | Type|Description|Required|Since |file|file|No comments found.|true|- |==================== *Request-example:* ---- curl -X POST -H 'Content-Type: multipart/form-data' -i http://192.168.161.34:8087/attendance/original/importOriginal ---- *Response-fields:* [width="100%",options="header"] [stripes=even] |==================== |Field | Type|Description|Since |success|boolean|接口调用结果标识|- |message|string|接口调用结果信息|- |code|string|接口调用业务码|- |data|object|接口调用返回数据|- |==================== *Response-example:* ---- { "success": true, "message": "success", "code": "4224", "data": { "waring": "You may have used non-display generics." } } ---- == === *URL:* http://192.168.161.34:8087/attendance/test/export *Type:* GET *Content-Type:* application/x-www-form-urlencoded;charset=utf-8 *Request-example:* ---- curl -X GET -i http://192.168.161.34:8087/attendance/test/export ---- *Response-example:* ---- Doesn't return a value. ---- === 解析上传的.xls文件 *URL:* http://192.168.161.34:8087/attendance/test/import *Type:* GET *Content-Type:* multipart/form-data *Query-parameters:* [width="100%",options="header"] [stripes=even] |==================== |Parameter | Type|Description|Required|Since |file|file|No comments found.|true|- |==================== *Request-example:* ---- curl -X GET -H 'Content-Type: multipart/form-data' -i http://192.168.161.34:8087/attendance/test/import ---- *Response-example:* ---- Doesn't return a value. ---- == === 读取钉钉考勤excel原始数据,添加至数据库 *URL:* http://192.168.161.34:8087/attendance/work/importWork *Type:* POST *Content-Type:* multipart/form-data *Query-parameters:* [width="100%",options="header"] [stripes=even] |==================== |Parameter | Type|Description|Required|Since |file|file|No comments found.|true|- |==================== *Request-example:* ---- curl -X POST -H 'Content-Type: multipart/form-data' -i http://192.168.161.34:8087/attendance/work/importWork ---- *Response-fields:* [width="100%",options="header"] [stripes=even] |==================== |Field | Type|Description|Since |success|boolean|接口调用结果标识|- |message|string|接口调用结果信息|- |code|string|接口调用业务码|- |data|object|接口调用返回数据|- |==================== *Response-example:* ---- { "success": true, "message": "success", "code": "4224", "data": { "waring": "You may have used non-display generics." } } ---- == 错误码列表 [width="100%",options="header"] [stripes=even] |==================== |Error code |Description |10000|系统未知异常 |10001|参数格式校验失败 |10002|body为空 |10003|请求方法不支持 |10004|数据已存在 |10005|数据不存在 |10006|无效的token |10007|参数异常 |10008|没有操作权限 |10009|管理员登录失败 |10012|缺少必要的请求头 |10013|缴费信息不存在 |10014|订单不存在 |10015|获取微信jsapi支付参数失败 |10016|建行订单状态查询失败 |10017|非建行支付订单 |10018|农商行订单状态查询失败 |10019|缴费年级不存在 |10020|文件导入失败 |10100|批量操作数据库失败 |10021|付款金额错误 |10022|缴费项目已存在 |10025|缴费项目不存在 |10023|id为空 |10024|该缴费项目不支持导出TXT |10025|该缴费宿舍已缴费 |10026|内容超长 |10027|AES加密失败 |10028|宿舍已缴费 |10029|该订单的部分项目已支付,请前往首页重新支付 |====================