Pārlūkot izejas kodu

供应商模块保存和更改接口改动(加了一些限制)

mainqaq 3 gadus atpakaļ
vecāks
revīzija
215d763370
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      controllers/supply_order_api_contorller.go

+ 1 - 1
controllers/supply_order_api_contorller.go Parādīt failu

234
 		}
234
 		}
235
 	}
235
 	}
236
 	//supplierType, _ := this.GetInt64("suppliertype") //供应商类别
236
 	//supplierType, _ := this.GetInt64("suppliertype") //供应商类别
237
-	if dataBody["suppliertype"] == "" {
237
+	if dataBody["suppliertype"] == "" || dataBody["suppliertype"] == 0 {
238
 		var tmp int64 = 0
238
 		var tmp int64 = 0
239
 		dataBody["suppliertype"] = tmp
239
 		dataBody["suppliertype"] = tmp
240
 	}
240
 	}