jiangqs
2023-06-06 92da9546e1b37b06f78671b34389b1dec9dfadfc
ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/goods/GoodsServiceImpl.java
@@ -208,7 +208,7 @@
        if(shopGoods!=null){
            shopGoods.setSalesPrice(merShopGoodsEditDto.getSalePrice());
            shopGoods.setServiceNum(merShopGoodsEditDto.getServiceNum());
            shopGoods.setUpdateTime(DateUtils.getNowDate());
            shopGoods.setUpdateTime(new Date());
            shopGoods.setUpdateUserId(merShopGoodsEditDto.getUserId());
        }else{
            shopGoods = new ShopGoods();
@@ -217,7 +217,7 @@
            shopGoods.setGoodsId(merShopGoodsEditDto.getGoodsId());
            shopGoods.setSalesPrice(merShopGoodsEditDto.getSalePrice());
            shopGoods.setServiceNum(merShopGoodsEditDto.getServiceNum());
            shopGoods.setUpdateTime(DateUtils.getNowDate());
            shopGoods.setUpdateTime(new Date());
            shopGoods.setUpdateUserId(merShopGoodsEditDto.getUserId());
        }
        shopGoodsService.saveOrUpdate(shopGoods);
@@ -288,11 +288,11 @@
            goodsId = IdUtils.simpleUUID();
            goods.setGoodsId(goodsId);
            goods.setDelFlag(0);
            goods.setCreateTime(DateUtils.getNowDate());
            goods.setCreateTime(new Date());
            goods.setCreateUserId(mgtGoodsEditDto.getUserId());
            newGoods = true;
        }
        goods.setUpdateTime(DateUtils.getNowDate());
        goods.setUpdateTime(new Date());
        goods.setUpdateUserId(mgtGoodsEditDto.getUserId());
        goods.setGoodsStatus(mgtGoodsEditDto.getGoodsStatus());
        goods.setGoodsType(mgtGoodsEditDto.getGoodsType());
@@ -368,7 +368,7 @@
            throw new ServiceException(AppErrorConstant.GOODS_DELETED);
        }
        goods.setGoodsStatus(mgtGoodsUpDownDto.getGoodsStatus());
        goods.setUpdateTime(DateUtils.getNowDate());
        goods.setUpdateTime(new Date());
        goods.setUpdateUserId(mgtGoodsUpDownDto.getUserId());
        this.saveOrUpdate(goods);
    }
@@ -387,7 +387,7 @@
            throw new ServiceException(AppErrorConstant.GOODS_DELETED);
        }
        goods.setRecommendFlag(mgtGoodsRecommendDto.getRecommendFlag());
        goods.setUpdateTime(DateUtils.getNowDate());
        goods.setUpdateTime(new Date());
        goods.setUpdateUserId(mgtGoodsRecommendDto.getUserId());
        this.saveOrUpdate(goods);
    }
@@ -404,7 +404,7 @@
        Goods goods = this.getById(goodsId);
        goods.setDelFlag(1);
        goods.setGoodsStatus(-1);
        goods.setUpdateTime(DateUtils.getNowDate());
        goods.setUpdateTime(new Date());
        goods.setUpdateUserId(userId);
        this.saveOrUpdate(goods);
    }