Browse Source

供应商模块保存和更改接口改动

mainqaq 3 years ago
parent
commit
9165a129fc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/supply_order_api_contorller.go

+ 2 - 2
controllers/supply_order_api_contorller.go View File

202
 		return
202
 		return
203
 	}
203
 	}
204
 	//supplierid, _ := this.GetInt64("id") //供应商id
204
 	//supplierid, _ := this.GetInt64("id") //供应商id
205
-	supplierid, _ := dataBody["id"].(int64)
205
+	supplierid := int64(dataBody["id"].(float64))
206
 	if supplierid == 0 {
206
 	if supplierid == 0 {
207
 		this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "供应商id不能为空")
207
 		this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "供应商id不能为空")
208
 		return
208
 		return
231
 		}
231
 		}
232
 	}
232
 	}
233
 	//supplierType, _ := this.GetInt64("suppliertype") //供应商类别
233
 	//supplierType, _ := this.GetInt64("suppliertype") //供应商类别
234
-	supplierType, _ := dataBody["suppliertype"].(int64) //供应商类别
234
+	supplierType := int64(dataBody["suppliertype"].(float64)) //供应商类别
235
 	//vatRate, _ := this.GetFloat("vatrate")           //增值税税率
235
 	//vatRate, _ := this.GetFloat("vatrate")           //增值税税率
236
 	vatRate, _ := dataBody["suppliertype"].(float64) //增值税税率
236
 	vatRate, _ := dataBody["suppliertype"].(float64) //增值税税率
237
 	//number := this.GetString("number")               //纳税人识别号
237
 	//number := this.GetString("number")               //纳税人识别号