| | |
| | | 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(); |
| | |
| | | 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); |
| | |
| | | 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()); |
| | |
| | | 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); |
| | | } |
| | |
| | | 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); |
| | | } |
| | |
| | | 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); |
| | | } |