|
@@ -256,7 +256,7 @@ func (this *SupplyOrderApiController) UpdateSupply() {
|
256
|
256
|
}
|
257
|
257
|
if supplierCode != supply.SupplierCode {
|
258
|
258
|
//判断供应商编号是否有重复的
|
259
|
|
- codebool, _ := service.FindSupplierCode(supplierCode)
|
|
259
|
+ codebool, _ := service.FindSupplierCode(supplierCode, supplierid)
|
260
|
260
|
if codebool {
|
261
|
261
|
this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "供应商编号重复")
|
262
|
262
|
return
|
|
@@ -503,7 +503,7 @@ func (this *SupplyOrderApiController) SaveSupply() {
|
503
|
503
|
return
|
504
|
504
|
}
|
505
|
505
|
//判断供应商编号是否有重复的
|
506
|
|
- codebool, _ := service.FindSupplierCode(supplierCode)
|
|
506
|
+ codebool, _ := service.FindSupplierCodes(supplierCode)
|
507
|
507
|
if codebool {
|
508
|
508
|
this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "供应商编号重复")
|
509
|
509
|
return
|