@Controller @RequestMapping(value="wecom/oa") public class WecomOAController extends WecomContollerBase
限定符和类型 | 类和说明 |
---|---|
static class |
WecomOAController.ApprovalInfoParam |
static class |
WecomOAController.CheckinDataParam |
static class |
WecomOAController.CheckinOptionParam |
static class |
WecomOAController.CheckinParam |
static class |
WecomOAController.GetApprovalDetailParam |
static class |
WecomOAController.GetDialRecordParam |
static class |
WecomOAController.GetTemplateDetailParam |
WecomContollerBase.WecomParamBase
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) WecomService |
wecomService |
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
WecomOAController() |
saveOrgIdAgendId
commonsDownloadEx, commonsUploadEx, getUploadNewFileName, setResponseContentType, setResponseContentTypeAndStatus, setResponseHttpStatus, writeJsonToResponse
@Autowired WecomService wecomService
@ResponseBody @RequestMapping(value="getCheckinData", method=POST) public RetVo getCheckinData(@RequestBody WecomOAController.CheckinParam param) throws java.lang.Exception
param
- 参数java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="getCheckinOption", method=POST) public RetVo getCheckinOption(@RequestBody WecomOAController.CheckinOptionParam param) throws java.lang.Exception
获取打卡规则 API doc : https://work.weixin.qq.com/api/doc#90000/90135/90263
param
- 参数java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="getApprovalInfo", method=POST) public RetVo getApprovalInfo(@RequestBody WecomOAController.ApprovalInfoParam params) throws java.lang.Exception
批量获取审批单号 审批应用及有权限的自建应用,可通过Secret调用本接口,以获取企业一段时间内企业微信“审批应用”单据的审批编号,支持按模板类型、申请人、部门、申请单审批状态等条件筛选。 自建应用调用此接口,需在“管理后台-应用管理-审批-API-审批数据权限”中,授权应用允许提交审批单据。 一次拉取调用最多拉取100个审批记录,可以通过多次拉取的方式来满足需求,但调用频率不可超过600次/分。 API doc : https://work.weixin.qq.com/api/doc/90000/90135/91816
params
- 参数
如:[
{
"key": "template_id",
"value": "ZLqk8pcsAoaXZ1eY56vpAgfX28MPdYU3ayMaSPHaaa"
},
{
"key" : "creator",
"value" : "WuJunJie"
}]
key取值:
template_id - 模板类型/模板id;
creator - 申请人;
department - 审批单提单者所在部门;
sp_status - 审批状态;
record_type - 审批单类型属性,1-请假;2-打卡补卡;3-出差;4-外出;5-加班; 6- 调班;7-会议室预定;8-退款审批;9-红包报销审批java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="getApprovalDetail", method=POST) public RetVo getApprovalDetail(@RequestBody WecomOAController.GetApprovalDetailParam param) throws java.lang.Exception
获取审批申请详情 企业可通过审批应用或自建应用Secret调用本接口,根据审批单号查询企业微信“审批应用”的审批申请详情。 API Doc : https://work.weixin.qq.com/api/doc/90000/90135/91983
param
- 参数java.lang.Exception
- 出错会抛出异常 .@ResponseBody @RequestMapping(value="setCheckinScheduleList", method=POST) public RetVo setCheckinScheduleList(@RequestBody WxCpSetCheckinSchedule wxCpSetCheckinSchedule) throws java.lang.Exception
wxCpSetCheckinSchedule
- the wx cp set checkin scheduleme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionjava.lang.Exception
@ResponseBody @RequestMapping(value="getDialRecord") public RetVo getDialRecord(@RequestBody WecomOAController.GetDialRecordParam params) throws java.lang.Exception
params
- 参数java.lang.Exception
- 出错会抛出异常 .@ResponseBody @RequestMapping(value="getTemplateDetail", method=POST) public RetVo getTemplateDetail(@RequestBody WecomOAController.GetTemplateDetailParam params) throws java.lang.Exception
params
- 参数java.lang.Exception
- 出错会抛出异常 .@ResponseBody @RequestMapping(value="getCheckinDayData", method=POST) public RetVo getCheckinDayData(@RequestBody WecomOAController.CheckinDataParam params) throws java.lang.Exception
params
- 参数me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionjava.lang.Exception
@ResponseBody @RequestMapping(value="getCheckinMonthData", method=POST) public RetVo getCheckinMonthData(@RequestBody WecomOAController.CheckinDataParam params) throws java.lang.Exception
params
- 参数java.lang.Exception
- 出错会抛出异常 the wx error exception@ResponseBody @RequestMapping(value="getCheckinScheduleList", method=POST) public RetVo getCheckinScheduleList(@RequestBody WecomOAController.CheckinDataParam params) throws java.lang.Exception
params
- 参数java.lang.Exception
- 出错会抛出异常 the wx error exception