|
@@ -123,9 +123,6 @@ public class GoodsMgrController extends BaseApiController {
|
|
|
@ApiOperation(value = "新增商品信息", notes = "后台商品管理新增商品")
|
|
|
@PostMapping("/create")
|
|
|
public AjaxResult goodsCreate(@Validated @RequestBody GoodsParam goodsParam) {
|
|
|
- if (null != goodsParam.getGoodsId() || 0 != goodsParam.getGoodsId()) {
|
|
|
- return AjaxResult.error("该商品已存在");
|
|
|
- }
|
|
|
Goods goods = mapperFacade.map(goodsParam, Goods.class);
|
|
|
// 1、校验名称是否重复(商品表)
|
|
|
LambdaQueryWrapper<Goods> queryWrapper = new LambdaQueryWrapper<>();
|