文档
测试

新增计件规则配置

POST
http://localhost:9090/grid-coloration-test/salary/piece/add

请求头

参数名
类型
描述
必填
Authorization
string
示例:Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjMwMC03MTI2ODkzNi0zNTAwLTQ2YmYtODUxNy02NjYyZTUyMWFhNmIifQ.ayHf87_luXlBzY2YwldCzgFgCTQDmjKWMrKf6QzL0ZwbB_0-IHNcIsOXstgPy9QFfPTkXDrz8xN6Rvq70jXVgA
必填

请求参数

参数名
类型
描述
必填
pieceName
string
规则名称:规则A
必填
meterType
string
表具类型/crm_meter_type
必填
meterLocationType
string
安装位置类型/crm_meter_location_type
必填
readPrice
float
抄表单价(元)
必填
recoverPrice
float
水费回收单价(元)
必填
remark
string
示例:备注111
必填
readRule
array
数据列表
必填
lowLimit
int
率值下限
必填
highLimit
int
率值上限
必填
businessType
int
增减比例类型:1-增加比例;2-核减比例
必填
proportion
int
增减比例值百分比
必填
accuracyRule
array
数据列表
必填
lowLimit
int
率值下限
必填
highLimit
int
率值上限
必填
businessType
int
增减比例类型:1-增加比例;2-核减比例
必填
proportion
int
增减比例值百分比
必填
recoverRule
array
数据列表
必填
lowLimit
int
率值下限
必填
highLimit
int
率值上限
必填
businessType
int
增减比例类型:1-增加比例;2-核减比例
必填
proportion
int
增减比例值百分比
必填

响应参数

参数名
类型
描述
必填
code
string
示例:10000
必填
message
string
示例:SUCCESS
必填
success
boolean
示例:true
必填
traceId
string
示例:0A6694D816795756492061001
必填

说明 / 示例

{ "pieceName": "规则A", "meterType": "1", "meterLocationType": "0", "readPrice": 1.5, "recoverPrice": 5.2, "remark": "备注111", "readRule": [ { "lowLimit": 0, "highLimit": 60, "businessType": 2, "proportion": 10 }, { "lowLimit": 60, "highLimit": 80, "businessType": 1, "proportion": 10 }, { "lowLimit": 80, "highLimit": 100, "businessType": 1, "proportion": 20 } ], "accuracyRule": [ { "lowLimit": 0, "highLimit": 60, "businessType": 2, "proportion": 10 }, { "lowLimit": 60, "highLimit": 80, "businessType": 1, "proportion": 5 }, { "lowLimit": 80, "highLimit": 100, "businessType": 1, "proportion": 10 } ], "recoverRule": [ { "lowLimit": 0, "highLimit": 20, "businessType": 1, "proportion": 5 }, { "lowLimit": 20, "highLimit": 80, "businessType": 1, "proportion": 15 }, { "lowLimit": 80, "highLimit": 100, "businessType": 1, "proportion": 30 } ] }