|
|
@ -124,6 +124,14 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
@ApiOperation(value="商品表-添加", notes="商品表-添加") |
|
|
|
@ApiOperation(value="商品表-添加", notes="商品表-添加") |
|
|
|
@PostMapping(value = "/add") |
|
|
|
@PostMapping(value = "/add") |
|
|
|
public Result<?> add(@RequestBody ZyGoods zyGoods,HttpServletRequest req) { |
|
|
|
public Result<?> add(@RequestBody ZyGoods zyGoods,HttpServletRequest req) { |
|
|
|
|
|
|
|
ZyClothsStyle zyClothsStyle = zyClothsStyleService.getById(zyGoods.getStyleId()); |
|
|
|
|
|
|
|
zyGoods.setSpecification(zyClothsStyle.getSpecification()); |
|
|
|
|
|
|
|
zyGoods.setProductOverview(zyClothsStyle.getProductOverview()); |
|
|
|
|
|
|
|
zyGoods.setStructure(zyClothsStyle.getStructure()); |
|
|
|
|
|
|
|
zyGoods.setCharacteristic(zyClothsStyle.getCharacteristic()); |
|
|
|
|
|
|
|
zyGoods.setFoldingPackaging(zyClothsStyle.getFoldingPackaging()); |
|
|
|
|
|
|
|
zyGoods.setAccLogos(zyClothsStyle.getAccLogos()); |
|
|
|
|
|
|
|
zyGoods.setSewingForm(zyClothsStyle.getSewingForm()); |
|
|
|
zyGoodsService.save(zyGoods); |
|
|
|
zyGoodsService.save(zyGoods); |
|
|
|
ZyStyleModule zyStyleModule = new ZyStyleModule(); |
|
|
|
ZyStyleModule zyStyleModule = new ZyStyleModule(); |
|
|
|
QueryWrapper<ZyStyleModule> queryWrapperzsm = QueryGenerator.initQueryWrapper(zyStyleModule, req.getParameterMap()); |
|
|
|
QueryWrapper<ZyStyleModule> queryWrapperzsm = QueryGenerator.initQueryWrapper(zyStyleModule, req.getParameterMap()); |
|
|
@ -172,6 +180,14 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
@ApiOperation(value="商品表-编辑", notes="商品表-编辑") |
|
|
|
@ApiOperation(value="商品表-编辑", notes="商品表-编辑") |
|
|
|
@PutMapping(value = "/edit") |
|
|
|
@PutMapping(value = "/edit") |
|
|
|
public Result<?> edit(@RequestBody ZyGoods zyGoods,HttpServletRequest req) { |
|
|
|
public Result<?> edit(@RequestBody ZyGoods zyGoods,HttpServletRequest req) { |
|
|
|
|
|
|
|
ZyClothsStyle zyClothsStyle = zyClothsStyleService.getById(zyGoods.getStyleId()); |
|
|
|
|
|
|
|
zyGoods.setSpecification(zyClothsStyle.getSpecification()); |
|
|
|
|
|
|
|
zyGoods.setProductOverview(zyClothsStyle.getProductOverview()); |
|
|
|
|
|
|
|
zyGoods.setStructure(zyClothsStyle.getStructure()); |
|
|
|
|
|
|
|
zyGoods.setCharacteristic(zyClothsStyle.getCharacteristic()); |
|
|
|
|
|
|
|
zyGoods.setFoldingPackaging(zyClothsStyle.getFoldingPackaging()); |
|
|
|
|
|
|
|
zyGoods.setAccLogos(zyClothsStyle.getAccLogos()); |
|
|
|
|
|
|
|
zyGoods.setSewingForm(zyClothsStyle.getSewingForm()); |
|
|
|
zyGoodsService.updateById(zyGoods); |
|
|
|
zyGoodsService.updateById(zyGoods); |
|
|
|
GoodsModule goodsModule = new GoodsModule(); |
|
|
|
GoodsModule goodsModule = new GoodsModule(); |
|
|
|
QueryWrapper<GoodsModule> queryWrappergm = QueryGenerator.initQueryWrapper(goodsModule, req.getParameterMap()); |
|
|
|
QueryWrapper<GoodsModule> queryWrappergm = QueryGenerator.initQueryWrapper(goodsModule, req.getParameterMap()); |
|
|
|