|  | @@ -86,6 +86,12 @@ public class TGoodsController extends BaseController {
 | 
											
												
													
														|  |      @Log(title = "商品详情", businessType = BusinessType.UPDATE)
 |  |      @Log(title = "商品详情", businessType = BusinessType.UPDATE)
 | 
											
												
													
														|  |      @PutMapping
 |  |      @PutMapping
 | 
											
												
													
														|  |      public AjaxResult edit(@RequestBody TGoods tGoods) {
 |  |      public AjaxResult edit(@RequestBody TGoods tGoods) {
 | 
											
												
													
														|  | 
 |  | +        // 检验编号、名称、地址 唯一
 | 
											
												
													
														|  | 
 |  | +        if (UserConstants.NOT_UNIQUE.equals(tGoodsService.checkUFNoUnique(tGoods))) {
 | 
											
												
													
														|  | 
 |  | +            return AjaxResult.error("新增商品'" + tGoods.getfNo() + "'失败,编号已存在");
 | 
											
												
													
														|  | 
 |  | +        } else if (UserConstants.NOT_UNIQUE.equals(tGoodsService.checkUFNnameUnique(tGoods))) {
 | 
											
												
													
														|  | 
 |  | +            return AjaxResult.error("新增商品'" + tGoods.getfName() + "'失败,名称已存在");
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          return tGoodsService.updateTGoods(tGoods);
 |  |          return tGoodsService.updateTGoods(tGoods);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 |