rentaiming
2024-07-29 24f7e4c21f6b6375f791b5132d25373255c1d464
ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/SlGoodsShelfController.java
@@ -57,16 +57,28 @@
    @DeleteMapping("/{id}")
    public R<?> delStoreManagement(
            @ApiParam(name = "id", value = "货架管理id", required = true) @PathVariable("id") Long id) {
        slGoodsShelfService.removeById(id);
        SlGoodsShelf byId = slGoodsShelfService.getById(id);
        byId.setDelFlag("1");
        slGoodsShelfService.updateById(byId);
        return R.ok();
    }
    @PostMapping("/wfanzGoodsShelfList")
    @ApiOperation(value = "货架获取未放置")
    @ApiOperation(value = "货架获放置")
    public R<List<SlGoodsShelf>> wfanzGoodsShelfList(@RequestBody GoodsShelfQuery goodsShelfQuery) {
        return R.ok(slGoodsShelfService.wfanzGoodsShelfList(goodsShelfQuery));
    }
    @PostMapping("/wfanzGoodsShelfListDel/{id}")
    @ApiOperation(value = "货架获放置删除")
    public R wfanzGoodsShelfListDel(
            @ApiParam(name = "id", value = "货架管理id", required = true) @PathVariable("id") Long id){
        SlGoodsShelf byId = slGoodsShelfService.getById(id);
        byId.setIsStoreManagement(1);
        slGoodsShelfService.updateById(byId);
        return R.ok();
    }
    @PostMapping("/fanzGoodsShelfList")
    @ApiOperation(value = "货架放置到图片")
    public R fanzGoodsShelfList(@RequestBody GoodsShelfDTO goodsShelfDTO) {