| | |
| | | @Resource |
| | | private GoodsTotalService goodsTotalService; |
| | | |
| | | |
| | | |
| | | /** |
| | | * @description 获取推荐商品列表 |
| | | * @param page shopId |
| | |
| | | String goodsId = mgtGoodsEditDto.getGoodsId(); |
| | | Goods goodsSame = this.getOne(new LambdaQueryWrapper<Goods>().eq(Goods::getDelFlag,0).eq(Goods::getGoodsName,mgtGoodsEditDto.getGoodsName())); |
| | | // 判断是否有商品ID 没有则新建 |
| | | if (goodsId != null) { |
| | | if (StringUtils.isNotBlank(goodsId)) { |
| | | if(goodsSame!=null&&!Objects.equals(goodsSame.getGoodsId(), goodsId)){ |
| | | throw new ServiceException(AppErrorConstant.GOODS_DOUBLE); |
| | | } |