文档
测试

OA数据通用更新接口

POST
http://172.18.1.93:8788/common/oa/updateOaData

接口描述

更新OA表字段值

请求头

参数名
类型
描述
必填
contentType
string
text/plain;charset=UTF-8
必填

请求参数

参数名
类型
描述
必填
tableName
string
示例:更新目标表名
必填
requestid
string
示例:OA流程请求id
必填
updateFiled
string
示例:更新字段
必填
updateValue
int
示例:更新值
必填
filterSql
string
示例:更新条件 assert_code=100 and nowPrice is null
必填

响应参数

参数名
类型
描述
必填
code
string
200成功 500失败
必填
data
string
执行语句
必填
msg
string
返回消息
必填

说明 / 示例

请求demo { "tableName":"table1", "requestid": "123", "updateFiled":"nowPrice", "updateValue": 111, "filterSql": " assert_code=100 and nowPrice is null " } 响应结果 { "msg": "更新成功,", "code": 200, "data": "语句:UPDATE table1 SET nowPrice =111 where requestid =123 and assert_code=100 and nowPrice is null " }