文档中心 > API类目 > MMC物流域项目

alibaba.mmc.logistics.gethumanattendance (MMC物流域劳动力项目-获取人员考勤信息)

MMC物流域劳动力项目-获取人员考勤信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 HumanAttendanceQuery 可选 总入参
  • └ out_trace_id
  • String
  • 可选
  • xx
  • 外部traceId
  • └ merchant_code
  • String
  • 可选
  • MMC
  • 商家编码
  • └ node_code
  • String
  • 可选
  • xxx
  • 仓编码
  • └ labor_id_list
  • Number []
  • 可选
  • 工号列表
  • └ page_size
  • Number
  • 可选
  • 20
  • 页面大小
  • └ page
  • Number
  • 可选
  • 1
  • 页数
  • └ source
  • String
  • 可选
  • xxx
  • 调用来源
  • └ work_day
  • String
  • 可选
  • 2022-01-01 00:00:00
  • 工作日

响应参数

名称 类型 示例值 描述
result ResultDTO 总返回
  • content
  • HumanAttendanceVO []
  • 返回内容
  • └ node_name
  • String
  • xx
  • RDC名称
  • └ node_code
  • String
  • xx
  • RDC编码
  • └ name
  • String
  • xx
  • 名称
  • └ labor_id
  • Number
  • 1234
  • 工号
  • └ mobile
  • String
  • xx
  • 手机号
  • └ dept_name
  • String
  • xx
  • 部门名称
  • └ emp_type
  • String
  • xx
  • 员工类型
  • └ place_post
  • String
  • xx
  • 岗位
  • └ shift_group_name
  • String
  • xx
  • 考勤组
  • └ work_day
  • Date
  • 2022-01-01 00:00:00
  • 工作日
  • └ is_schedule
  • String
  • 是否排班
  • └ shift_time
  • String
  • 06:00-20:00
  • 固定打卡时间
  • └ check_in_time
  • Date
  • 2022-01-01 00:00:00
  • 上班打卡时间
  • └ check_out_time
  • Date
  • 2022-01-01 00:00:00
  • 下班打卡时间
  • └ attendance_work_time
  • String
  • xx
  • 上班时长
  • └ rest_time
  • String
  • xx
  • 休息时长
  • └ common_time
  • String
  • xx
  • 正常工时
  • └ over_time
  • String
  • xx
  • 加班工时
  • └ abnormal_work_time
  • String
  • xx
  • 异常工时
  • └ ext_info
  • String
  • {}
  • 拓展字段
  • └ error_code
  • String
  • xx
  • 错误码
  • └ error_message
  • String
  • xx
  • 错误信息
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMmcLogisticsGethumanattendanceRequest req = new AlibabaMmcLogisticsGethumanattendanceRequest();
AlibabaMmcLogisticsGethumanattendanceRequest.HumanAttendanceQuery obj1 = new AlibabaMmcLogisticsGethumanattendanceRequest.HumanAttendanceQuery();
obj1.setOutTraceId("xx");
obj1.setMerchantCode("MMC");
obj1.setNodeCode("xxx");
obj1.setLaborIdList(new Long[] {  };
);
obj1.setPageSize(20L);
obj1.setPage(1L);
obj1.setSource("xxx");
obj1.setWorkDay("2022-01-01 00:00:00");
req.setParam0(obj1);
AlibabaMmcLogisticsGethumanattendanceResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mmc_logistics_gethumanattendance_response>
    <result>
        <content>
            <human_attendance_v_o>
                <node_name>xx</node_name>
                <node_code>xx</node_code>
                <name>xx</name>
                <labor_id>1234</labor_id>
                <mobile>xx</mobile>
                <dept_name>xx</dept_name>
                <emp_type>xx</emp_type>
                <place_post>xx</place_post>
                <shift_group_name>xx</shift_group_name>
                <work_day>2022-01-01 00:00:00</work_day>
                <is_schedule>是</is_schedule>
                <shift_time>06:00-20:00</shift_time>
                <check_in_time>2022-01-01 00:00:00</check_in_time>
                <check_out_time>2022-01-01 00:00:00</check_out_time>
                <attendance_work_time>xx</attendance_work_time>
                <rest_time>xx</rest_time>
                <common_time>xx</common_time>
                <over_time>xx</over_time>
                <abnormal_work_time>xx</abnormal_work_time>
                <ext_info>{}</ext_info>
            </human_attendance_v_o>
        </content>
        <error_code>xx</error_code>
        <error_message>xx</error_message>
        <success>true</success>
    </result>
</alibaba_mmc_logistics_gethumanattendance_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部