|
@@ -265,22 +265,14 @@ func (this *CommonApiController) GetAllInspectionminor() {
|
265
|
265
|
|
266
|
266
|
func (this *CommonApiController) UpdateConfiguration() {
|
267
|
267
|
id, _ := this.GetInt64("id")
|
268
|
|
- //fmt.Println("id", id)
|
269
|
268
|
dataBody := make(map[string]interface{}, 0)
|
270
|
269
|
err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
|
271
|
|
- //fmt.Println("err", err)
|
272
|
270
|
inspectionmajor := int64(dataBody["inspectionMajor"].(float64))
|
273
|
|
- //fmt.Println("大项", inspectionmajor)
|
274
|
271
|
inspectionMinor := int64(dataBody["inspectionMinor"].(float64))
|
275
|
|
- //fmt.Println("小项", inspectionMinor)
|
276
|
272
|
minrange := dataBody["min_range"].(string)
|
277
|
|
- //fmt.Println("minragne", minrange)
|
278
|
273
|
largerange := dataBody["large_range"].(string)
|
279
|
|
- //fmt.Println("largerange", largerange)
|
280
|
274
|
sort := int64(dataBody["sort"].(float64))
|
281
|
|
- //fmt.Println("排序", sort)
|
282
|
275
|
rangvalue := dataBody["range_value"].(string)
|
283
|
|
- //fmt.Println("范围", rangvalue)
|
284
|
276
|
if rangvalue == "0" {
|
285
|
277
|
rangvalue = ""
|
286
|
278
|
}
|