查询

  • 接口:/costtracking/item/getCostTrackingItem?costTrackingName={costTrackingName}&start={start}&end={end}&active={active}&offset={offset}&limit={limit}
  • Method:GET
  • 数据格式:JSON
接口参数
参数 类型 必须 默认值 主键 描述
costTrackingName string N 辅助核算名称,精确查找,不填搜索全公司
start date N 更新时间区间的开始时间 格式必须为yyyy-MM-dd
end date N 更新时间区间的结束时间 格式同上
active boolean N false 启用状态,不传这个参数代表传了false
offset int N 0 分页起始,不传初始为0
limit int N 500 分页条数,不传初始500,支持最大条数500
返回数据
字段 类型 描述
costTrackingName string 辅助核算名称
costTrackingBizCode string 辅助核算编码
costTrackingItemBizCode string 辅助核算选项编码
costTrackingItemName string 辅助核算选项名称
createdAt date 创建时间
updatedAt date 最近的更新时间
active boolean 启用状态
downOption boolean 是否可选择
subsidiaryCodes List<String> 适用的业务实体编码
visibleDepartmentCodes List<String> 适用的部门编码
visibleCoverDepartmentCodes List<String> 适用的承担部门编码
visibleEmployeeIds List<String> 适用的员工工号
containsSub boolean 是否包含下级承担部门
备注

/costtracking/item/getCostTrackingItem?costTrackingName=170625&start=2017-01-01&end=2019-03-03 这个相当于/costtracking/item/getCostTrackingItem?costTrackingName=170625&start=2017-01-01&end=2019-03-03&active=false&offset=0&limit=500

示例

请求数据

/costtracking/item/getCostTrackingItemcostTrackingName=170625&start=2017-01-01&end=2019-03-03&active=true&offset=0&limit=20

返回数据(成功)

{
  "code": "ACK",
  "message": "",
  "data": [
    {
      "costTrackingName": "ESTest",
      "costTrackingItemBizCode": "CTI2204131O7X08LC",
      "costTrackingItemName": "E2",
      "createdAt": 1649890006000,
      "updatedAt": 1649951363000,
      "active": true,
      "downOption": true,
      "subsidiaryCodes": null,
      "visibleDepartmentCodes": null,
      "visibleEmployeeIds": null,
      "visibleCoverDepartmentCodes": [
        "DI2202141AZVJE0H",
        "DI2203181SDVTIYY",
        "DI2202111C5V79U1"
      ],
      "containsSub": true
    },
    {
      "costTrackingName": "ESTest",
      "costTrackingItemBizCode": "CTI22041410SWV4E8",
      "costTrackingItemName": "E3",
      "createdAt": 1649951517000,
      "updatedAt": 1649951550000,
      "active": true,
      "downOption": true,
      "subsidiaryCodes": null,
      "visibleDepartmentCodes": null,
      "visibleEmployeeIds": null,
      "visibleCoverDepartmentCodes": [
        "DI2203181SDVTIYY"
      ],
      "containsSub": false
    }
  ],
  "args": null,
  "linkDetail": false,
  "last": true,
  "nonBizError": false
}

results matching ""

    No results matching ""