- j8
- j4
- 数据管理
- 组织管理
- c2
- j2
- j6
- j7
- c4
- c5
- j1
- c6
- c1
- j3
- 缓存管理
- 报表配置
- 系统管理
- 商户管理
- c7
- j5
- c3
- 未命名接口GET
添加报表组件
POST
/j3-report/report-component/add
报表组件
请求参数
Body 参数application/json
componentGroup
string
组件组
示例值:
组件组 C是普通组件 Q 查询条件组件
componentSql
string
执行sql
示例值:
SELECT * FROM house_report WHERE status = 'occupied'
componentType
string
组件类型
示例值:
组件类型,组件组 为C时 1001 表格,2002 饼状图 等等 组件组为Q 3003 input 4004 select 5005 日期 等等
createTime
string <date-time>
可选
javaScript
string
执行java
示例值:
HouseReportService.generateOccupancyReport()
name
string
组件名称
示例值:
房屋入驻报表
queryModel
string
查询方式
示例值:
1 sql2 java
remark
string
描述
示例值:
无
statusCd
string
数据状态
示例值:
数据状态,详细参考c_status表,S 保存,0, 在用 1失效
示例
{
"componentGroup": "组件组 C是普通组件 Q 查询条件组件",
"componentSql": "SELECT * FROM house_report WHERE status = 'occupied'",
"componentType": "组件类型,组件组 为C时 1001 表格,2002 饼状图 等等 组件组为Q 3003 input 4004 select 5005 日期 等等",
"createTime": "2019-08-24T14:15:22Z",
"javaScript": "HouseReportService.generateOccupancyReport()",
"name": "房屋入驻报表",
"queryModel": "1 sql2 java",
"remark": "无",
"statusCd": "数据状态,详细参考c_status表,S 保存,0, 在用 1失效"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/j3-report/report-component/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"componentGroup": "组件组 C是普通组件 Q 查询条件组件",
"componentSql": "SELECT * FROM house_report WHERE status = '\''occupied'\''",
"componentType": "组件类型,组件组 为C时 1001 表格,2002 饼状图 等等 组件组为Q 3003 input 4004 select 5005 日期 等等",
"createTime": "2019-08-24T14:15:22Z",
"javaScript": "HouseReportService.generateOccupancyReport()",
"name": "房屋入驻报表",
"queryModel": "1 sql2 java",
"remark": "无",
"statusCd": "数据状态,详细参考c_status表,S 保存,0, 在用 1失效"
}'
返回响应
🟢200成功
*/*
Body
code
integer <int32>
状态码
示例值:
10000
data
string
数据对象
message
string
提示消息
示例值:
提示消息内容
示例
{
"code": 10000,
"data": "string",
"message": "提示消息内容"
}
🟢201成功
🟠401没有权限
🟠403禁止访问
🟠404记录不存在
修改于 2025-06-12 11:15:28