| | |
| | | if (addShopFlowerGoodsVO == null) { |
| | | return R.ok("500", "数据为空!"); |
| | | } |
| | | String[] images = addShopFlowerGoodsVO.getGoodsPic().split(","); |
| | | |
| | | ComShopFlowerGoodsDO shopGoodsDO = new ComShopFlowerGoodsDO(); |
| | | BeanUtils.copyProperties(addShopFlowerGoodsVO, shopGoodsDO); |
| | | shopGoodsDO.setOriginalPrice(addShopFlowerGoodsVO.getPrice()); |
| | | if (images.length > 1) { |
| | | shopGoodsDO.setGoodsPic(images[0]); |
| | | } |
| | | shopGoodsDO.setImages(addShopFlowerGoodsVO.getGoodsPic()); |
| | | shopGoodsDO.setSale(0); |
| | | shopGoodsDO.setDetails(addShopFlowerGoodsVO.getDetails()); |
| | | int goodsId = this.baseMapper.insert(shopGoodsDO); |
| | | if (goodsId > 0) { |
| | | |