WeChat.Work.OA.Journal (wechat v0.10.0) View Source

汇报

目前,企业微信汇报应用对企业内部提供了以下接口和能力:

  • 1、获取汇报记录详情。 即获取一段时间内,员工填写的详细汇报内容。

  • 2、获取汇报统计详情。 即获取一段时间内,某个汇报的统计情况,即已汇报成员统计、未汇报成员统计等。

Link to this section Summary

Types

游标首次请求传0,非首次请求携带上一次请求返回的next_cursor

筛选类型

筛选值

过滤条件

汇报记录ID

拉取条数

汇报表单id

Link to this section Types

Specs

cursor() :: integer()

游标首次请求传0,非首次请求携带上一次请求返回的next_cursor

Specs

filter_key() :: String.t()

筛选类型

不多于256字节

  • creator: 指定汇报记录提单人
  • department: 指定提单人所在部门
  • template_id: 指定模板

Specs

filter_value() :: String.t()

筛选值

Specs

filters() :: [{filter_key(), filter_value()}]

过滤条件

Specs

journal_uuid() :: String.t()

汇报记录ID

Specs

limit() :: integer()

拉取条数

Specs

template_id() :: String.t()

汇报表单id

Specs

timestamp() :: integer()

Link to this section Functions

Link to this function

get_record_detail(client, agent, journal_uuid)

View Source

Specs

获取汇报记录详情

Link to this function

list_records(client, agent, start_time, end_time, cursor, limit, filters \\ nil)

View Source

Specs

list_records(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  start_time :: timestamp(),
  end_time :: timestamp(),
  cursor(),
  limit(),
  filters()
) :: WeChat.response()

批量获取汇报记录单号

Link to this function

list_stats(client, agent, template_id, start_time, end_time)

View Source

Specs

list_stats(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  template_id(),
  start_time :: timestamp(),
  end_time :: timestamp()
) :: WeChat.response()

获取汇报统计数据