瀏覽代碼

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

mainqaq 3 年之前
父節點
當前提交
9165a129fc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/supply_order_api_contorller.go

+ 2 - 2
controllers/supply_order_api_contorller.go 查看文件

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