瀏覽代碼

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

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

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

@@ -190,9 +190,11 @@ func (this *SupplyOrderApiController) UpdateSupply() {
190 190
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
191 191
 		return
192 192
 	}
193
+	tmp := this.GetString("tmp")
193 194
 	supplierName := dataBody["suppliername"].(string)
194 195
 	if supplierName == "" {
195 196
 		this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "供应商名称不能为空")
197
+		this.ServeFailJsonSend(enums.ErrorCodeParamWrong, tmp)
196 198
 		return
197 199
 	}
198 200
 	//upplierCode := this.GetString("suppliercode") //供应商编码