文档
测试

保存模板

POST
http://47.114.190.170:8085/template/management/template/add

接口描述

新增之后对模板进行保存

请求头

参数名
类型
描述
必填
token
String
Token
必填

请求参数

参数名
类型
描述
必填
temId
int
当前模板id
必填
temName
String
保存的模板名称
必填
sheet
list
必填
tsName
String
当前Sheet的名称
必填
sort
int
当前Sheet的顺序
必填
tableList
list
必填
ttcContent
String
单元格内容
必填
mergeRow
int
合并行数,如没有合并请返回1
必填
mergeLine
int
合并列数,如没有合并请返回1
必填
decimalPlaces
int
保留小数点位
必填
dataType
String
内容类型 数据列类型
必填
styleJson
String
每一个单元格有自己样式JSON存入数据库直接会返回给前端
必填
tfContent
String
公式内容
必填
rule
必填
topParentLeftId
Stirng
该单元格的上父格的距左格数
必填
dataList
String
该单元格的数据集
必填
topParentTopId
Stirng
该单元格的上父格的距上格数
必填
leftParentTopId
int
该单元格的左父格的距上格数
必填
leftParentLeftId
int
该单元格的左父格的距左格数
必填
developmentDirection
int
拓展方向 默认为0,0表示不拓展,1表示横向拓展,2表示纵向拓展
必填
theDataSet
int
数据设置 1表示分组,2表示列表,3表示汇总求和,4表示汇总平均值,5表示汇总最大值,6表示汇总最小值,7表示汇总个数
必填
dataLine
String
该单元格的数据列
必填
dataLineType
int
父格是否为过滤条件0为是1为否
必填
inseriesCondition
int
串联条件:0是或1是并且
必填
filter
list
必填
tfLineName
String
过滤数据列名称
必填
boxCode
String
下拉框编码
必填
signOfOperationCode
String
条件选择编码 判断><=
必填
operationData
String
运算内容 是后面的条件
必填
tfLineType
String
数据列类型编码
必填
orgId
int
企业id
必填
ttcLeft
int
单元格的距左格数
必填
ttcTop
int
单元格的距上格数
必填
style
Integer
样式下标
必填
statementSql
String
前端需要过滤拼接sql
必填
styles
String
样式数组
必填
operateUserId
Long
当前登录请求的用户ID,请求操作者
必填

响应参数

参数名
类型
描述
必填
retMsg
String
操作成功,服务端异常
必填
retCode
String
0表示操作成功,500100服务端异常
必填