public class WxCpOaServiceImpl extends Object implements WxCpOaService
| 构造器和说明 |
|---|
WxCpOaServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
apply(WxCpOaApplyEventRequest request)
提交审批申请
调试工具
企业可通过审批应用或自建应用Secret调用本接口,代应用可见范围内员工在企业微信“审批应用”内提交指定类型的审批申请。
|
WxCpApprovalDetailResult |
getApprovalDetail(@NonNull String spNo)
获取审批申请详情
企业可通过审批应用或自建应用Secret调用本接口,根据审批单号查询企业微信“审批应用”的审批申请详情。
|
WxCpApprovalInfo |
getApprovalInfo(@NonNull Date startTime,
@NonNull Date endTime)
short method
|
WxCpApprovalInfo |
getApprovalInfo(@NonNull Date startTime,
@NonNull Date endTime,
Integer cursor,
Integer size,
List<WxCpApprovalInfoQueryFilter> filters)
批量获取审批单号
审批应用及有权限的自建应用,可通过Secret调用本接口,以获取企业一段时间内企业微信“审批应用”单据的审批编号,支持按模板类型、申请人、部门、申请单审批状态等条件筛选。
|
List<WxCpCheckinData> |
getCheckinData(Integer openCheckinDataType,
@NonNull Date startTime,
@NonNull Date endTime,
List<String> userIdList)
获取打卡数据
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90262
|
List<WxCpCheckinDayData> |
getCheckinDayData(@NonNull Date startTime,
@NonNull Date endTime,
List<String> userIdList)
获取打卡日报数据
|
List<WxCpCheckinMonthData> |
getCheckinMonthData(@NonNull Date startTime,
@NonNull Date endTime,
List<String> userIdList)
获取打卡月报数据
|
List<WxCpCheckinOption> |
getCheckinOption(@NonNull Date datetime,
List<String> userIdList)
获取打卡规则
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90263
|
List<WxCpCheckinSchedule> |
getCheckinScheduleList(@NonNull Date startTime,
@NonNull Date endTime,
List<String> userIdList)
获取打卡人员排班信息
|
List<WxCpCropCheckinOption> |
getCropCheckinOption()
获取企业所有打卡规则
API doc : https://work.weixin.qq.com/api/doc/90000/90135/93384
|
List<WxCpDialRecord> |
getDialRecord(Date startTime,
Date endTime,
Integer offset,
Integer limit)
获取公费电话拨打记录
|
WxCpTemplateResult |
getTemplateDetail(@NonNull String templateId)
获取审批模板详情
|
void |
setCheckinScheduleList(WxCpSetCheckinSchedule wxCpSetCheckinSchedule)
为打卡人员排班
|
public String apply(WxCpOaApplyEventRequest request) throws WxErrorException
WxCpOaService提交审批申请 调试工具 企业可通过审批应用或自建应用Secret调用本接口,代应用可见范围内员工在企业微信“审批应用”内提交指定类型的审批申请。 请求方式:POST(HTTPS) 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/applyevent?access_token=ACCESS_TOKEN 文档地址:https://work.weixin.qq.com/api/doc/90000/90135/91853
apply 在接口中 WxCpOaServicerequest - 请求WxErrorException - .public List<WxCpCheckinData> getCheckinData(Integer openCheckinDataType, @NonNull @NonNull Date startTime, @NonNull @NonNull 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 - 需要获取打卡记录的用户列表WxErrorException - 异常public List<WxCpCheckinOption> getCheckinOption(@NonNull @NonNull Date datetime, List<String> userIdList) throws WxErrorException
WxCpOaService获取打卡规则 API doc : https://work.weixin.qq.com/api/doc#90000/90135/90263
getCheckinOption 在接口中 WxCpOaServicedatetime - 需要获取规则的当天日期userIdList - 需要获取打卡规则的用户列表WxErrorException - .public List<WxCpCropCheckinOption> getCropCheckinOption() throws WxErrorException
WxCpOaService获取企业所有打卡规则 API doc : https://work.weixin.qq.com/api/doc/90000/90135/93384
getCropCheckinOption 在接口中 WxCpOaServiceWxErrorException - the wx error exceptionpublic WxCpApprovalInfo getApprovalInfo(@NonNull @NonNull Date startTime, @NonNull @NonNull Date endTime, Integer cursor, Integer size, List<WxCpApprovalInfoQueryFilter> filters) throws WxErrorException
WxCpOaService批量获取审批单号 审批应用及有权限的自建应用,可通过Secret调用本接口,以获取企业一段时间内企业微信“审批应用”单据的审批编号,支持按模板类型、申请人、部门、申请单审批状态等条件筛选。 自建应用调用此接口,需在“管理后台-应用管理-审批-API-审批数据权限”中,授权应用允许提交审批单据。 一次拉取调用最多拉取100个审批记录,可以通过多次拉取的方式来满足需求,但调用频率不可超过600次/分。 API doc : https://work.weixin.qq.com/api/doc/90000/90135/91816
getApprovalInfo 在接口中 WxCpOaServicestartTime - 开始时间endTime - 结束时间cursor - 分页查询游标,默认为0,后续使用返回的next_cursor进行分页拉取size - 一次请求拉取审批单数量,默认值为100,上限值为100filters - 筛选条件,可对批量拉取的审批申请设置约束条件,支持设置多个条件,nullableWxErrorException - .public WxCpApprovalInfo getApprovalInfo(@NonNull @NonNull Date startTime, @NonNull @NonNull Date endTime) throws WxErrorException
WxCpOaServicegetApprovalInfo 在接口中 WxCpOaServicestartTime - 开始时间endTime - 结束时间WxErrorException - .me.chanjar.weixin.cp.api.WxCpOaService#getApprovalInfopublic WxCpApprovalDetailResult getApprovalDetail(@NonNull @NonNull String spNo) throws WxErrorException
WxCpOaService获取审批申请详情 企业可通过审批应用或自建应用Secret调用本接口,根据审批单号查询企业微信“审批应用”的审批申请详情。 API Doc : https://work.weixin.qq.com/api/doc/90000/90135/91983
getApprovalDetail 在接口中 WxCpOaServicespNo - 审批单编号。WxErrorException - .public List<WxCpDialRecord> getDialRecord(Date startTime, Date endTime, Integer offset, Integer limit) throws WxErrorException
WxCpOaServicegetDialRecord 在接口中 WxCpOaServicestartTime - 查询的起始时间戳endTime - 查询的结束时间戳offset - 分页查询的偏移量limit - 分页查询的每页大小,默认为100条,如该参数大于100则按100处理WxErrorException - .public WxCpTemplateResult getTemplateDetail(@NonNull @NonNull String templateId) throws WxErrorException
WxCpOaServicegetTemplateDetail 在接口中 WxCpOaServicetemplateId - 模板IDWxErrorException - .public List<WxCpCheckinDayData> getCheckinDayData(@NonNull @NonNull Date startTime, @NonNull @NonNull Date endTime, List<String> userIdList) throws WxErrorException
WxCpOaServicegetCheckinDayData 在接口中 WxCpOaServicestartTime - 获取日报的开始时间endTime - 获取日报的结束时间userIdList - 获取日报的userid列表WxErrorException - the wx error exceptionpublic List<WxCpCheckinMonthData> getCheckinMonthData(@NonNull @NonNull Date startTime, @NonNull @NonNull Date endTime, List<String> userIdList) throws WxErrorException
WxCpOaServicegetCheckinMonthData 在接口中 WxCpOaServicestartTime - 获取月报的开始时间endTime - 获取月报的结束时间userIdList - 获取月报的userid列表WxErrorException - the wx error exceptionpublic List<WxCpCheckinSchedule> getCheckinScheduleList(@NonNull @NonNull Date startTime, @NonNull @NonNull Date endTime, List<String> userIdList) throws WxErrorException
WxCpOaServicegetCheckinScheduleList 在接口中 WxCpOaServicestartTime - 获取排班信息的开始时间。Unix时间戳endTime - 获取排班信息的结束时间。Unix时间戳(与starttime跨度不超过一个月)userIdList - 需要获取排班信息的用户列表(不超过100个)WxErrorException - the wx error exceptionpublic void setCheckinScheduleList(WxCpSetCheckinSchedule wxCpSetCheckinSchedule) throws WxErrorException
WxCpOaServicesetCheckinScheduleList 在接口中 WxCpOaServicewxCpSetCheckinSchedule - the wx cp set checkin scheduleWxErrorException - the wx error exceptionCopyright © 2021. All rights reserved.