文档
测试

根据id请求员工信息和保存勤务信息

GET
https://api.riso-tech.co.jp/v1/employee/labor

接口描述

根据用户id查询用户信息(https://api.riso-tech.co.jp/v1/employee/labor/user1)下面是示例

请求参数

参数名
类型
描述
必填
userId
string
用户id
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:OK
必填
data
object
数据字典
必填
commutingFlg
int64
如果在数据库中查到当前作业年月有数据,或者上个月有数据为1,否则为0,1为app通勤打开,0为关闭。
必填

说明 / 示例

{ "code": 0, "data": { "closedDay": 10, "commutingFlg": 1, "switchingDay": 20, "userDate": { "UserId": "user1", "Password": "123", "FirstName": "桜木", "LastName": "花道", "FirstNameKana": "サクラギ", "LastNameKana": "ハナミチ", "FullName": "桜木花道", "EntryDate": "2020-12-14T15:10:28+09:00", "DateOfBirth": "2020-12-14T15:10:30+09:00", "Sex": 1, "EmploymentForms": 1, "PostCode": "3320033", "Address1": "埼玉県川口市", "Address2": "並木", "Address3": "金川ビル", "Telephone": "09080471111", "EmailAddress": "1111@qq.com", "MyNumber": "1001000", "TimeLimit": "2020-12-14T15:10:56+09:00", "Status": 1, "NumberOfDependents": 2, "EmailTemplate": 1, "ResidentPostCode": "3320033", "ResidentAddress1": "埼玉県川口市", "ResidentAddress2": "並木", "ResidentAddress3": "金川ビル", "LeaderFlag": 2, "Created": "2020-12-14T15:11:10+09:00", "Updated": "2020-12-14T15:11:13+09:00", "Deleted": "2020-12-14T15:11:18+09:00", "Department": { "DepartmentId": 2, "DepartmentName": "レベル2部門1", "ParentDepartmentId": 1 }, "Position": { "PositionId": 1, "PositionName": "职位1", "PositionDescription": "职位1" }, "Labor": [ { "Id": 1, "WorkYM": "2020-12", "LaborTime": 777, "NumberOfDays": 77, "Comment": "你好", "ApprovalDivision": 2, "ReasonForRefund": "你好", "Files": { "FilesId": "82c0de79-5048-4361-9d18-5a5809384a9d", "ObjectKey": "[\"laborFile1\",\"laborFile2\"]", "Created": "2021-01-05T23:08:53+09:00", "Updated": "2021-01-05T23:08:53+09:00", "Deleted": "0001-01-01T00:00:00Z" }, "Created": "2020-12-14T15:09:26+09:00", "Updated": "2021-01-12T22:53:30+09:00", "Deleted": "2020-12-14T15:09:32+09:00" } ], "Commuting": [ { "Id": 1, "WorkYM": "2020-12", "StartStation": "你好", "EndStation": "你好", "ViaStation": "你好", "Periodical": 777, "CommutingMeans": 1, "Files": { "FilesId": "b44239ea-98fc-43dd-b764-af8eedde09d3", "ObjectKey": "[\"commutingFile1\",\"commutingFile2\"]", "Created": "2021-01-05T23:08:54+09:00", "Updated": "2021-01-05T23:08:54+09:00", "Deleted": "0001-01-01T00:00:00Z" }, "Created": "2020-12-14T15:11:54+09:00", "Updated": "2021-01-08T16:14:54+09:00", "Deleted": "2020-12-14T15:12:00+09:00" } ], "Application": null, "FundRecord": null, "WorkSchedule": null }, "workDayCount": 23, "workYM": "2020-12" }, "msg": "OK" }