public class WxCpOAServiceImpl extends Object implements WxCpOAService
| 构造器和说明 |
|---|
WxCpOAServiceImpl(WxCpService mainService) |
| 限定符和类型 | 方法和说明 |
|---|---|
WxCpApprovalDataResult |
getApprovalData(Date starttime,
Date endtime,
Long nextSpnum)
获取审批数据
通过本接口来获取公司一段时间内的审批记录。
|
List<WxCpCheckinData> |
getCheckinData(Integer openCheckinDataType,
Date starttime,
Date endtime,
List<String> userIdList)
获取打卡数据
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90262
|
List<WxCpCheckinOption> |
getCheckinOption(Date datetime,
List<String> userIdList)
获取打卡规则
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90263
|
List<WxCpDialRecord> |
getDialRecord(Date starttime,
Date endtime,
Integer offset,
Integer limit) |
public WxCpOAServiceImpl(WxCpService mainService)
public List<WxCpCheckinData> getCheckinData(Integer openCheckinDataType, Date starttime, Date endtime, List<String> userIdList) throws WxErrorException
WxCpOAService
获取打卡数据
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90262
getCheckinData 在接口中 WxCpOAServiceopenCheckinDataType - 打卡类型。1:上下班打卡;2:外出打卡;3:全部打卡starttime - 获取打卡记录的开始时间endtime - 获取打卡记录的结束时间userIdList - 需要获取打卡记录的用户列表WxErrorExceptionpublic List<WxCpCheckinOption> getCheckinOption(Date datetime, List<String> userIdList) throws WxErrorException
WxCpOAService
获取打卡规则
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90263
getCheckinOption 在接口中 WxCpOAServicedatetime - 需要获取规则的当天日期userIdList - 需要获取打卡规则的用户列表WxErrorExceptionpublic WxCpApprovalDataResult getApprovalData(Date starttime, Date endtime, Long nextSpnum) throws WxErrorException
WxCpOAService
获取审批数据
通过本接口来获取公司一段时间内的审批记录。一次拉取调用最多拉取10000个审批记录,可以通过多次拉取的方式来满足需求,但调用频率不可超过600次/分。
API doc : https://work.weixin.qq.com/api/doc#90000/90135/91530
getApprovalData 在接口中 WxCpOAServicestarttime - 获取审批记录的开始时间endtime - 获取审批记录的结束时间nextSpnum - 第一个拉取的审批单号,不填从该时间段的第一个审批单拉取WxErrorExceptionpublic List<WxCpDialRecord> getDialRecord(Date starttime, Date endtime, Integer offset, Integer limit) throws WxErrorException
getDialRecord 在接口中 WxCpOAServiceWxErrorExceptionCopyright © 2019. All rights reserved.