rentaiming
2024-07-25 454cb87bf4ecfae8a54e0afac1b2d8e9c58e9f62
ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/service/impl/SlGoodsShelfServiceImpl.java
@@ -130,7 +130,7 @@
        SlGoodsShelf byId1 = this.getById(id);
        SlGoodsShelfVO slGoodsShelfVO=new SlGoodsShelfVO();
        BeanUtils.copyProperties(byId1,slGoodsShelfVO.getClass());
        slGoodsShelfVO.setGoodsShelfName(byId1.getGoodsShelfName());
        SlStoreManagement byId = SlStoreManagementService.getById(byId1.getStoreManagementId());
        slGoodsShelfVO.setStoreManagementId(byId1.getStoreManagementId());
        slGoodsShelfVO.setStoreManagementName(byId.getStoreManagementName());
@@ -161,12 +161,17 @@
    @Override
    public void fanzGoodsShelfList(GoodsShelfDTO goodsShelfDTO) {
        SlGoodsShelf slGoodsShelf = this.getById(goodsShelfDTO.getId());
        slGoodsShelf.setImgId(goodsShelfDTO.getImgId());
        slGoodsShelf.setIsStoreManagement(2);
        slGoodsShelf.setZbX(goodsShelfDTO.getZbX());
        slGoodsShelf.setZbY(goodsShelfDTO.getZbY());
        this.updateById(slGoodsShelf);
        for(GoodsShelfDTO.ShelfDTO g:goodsShelfDTO.getShelfDTOS()){
            SlGoodsShelf slGoodsShelf = this.getById(g.getId());
            slGoodsShelf.setImgId(goodsShelfDTO.getImgId());
            slGoodsShelf.setIsStoreManagement(2);
            slGoodsShelf.setZbX(g.getZbX());
            slGoodsShelf.setZbY(g.getZbY());
            slGoodsShelf.setWidth(g.getWidth());
            slGoodsShelf.setHeight(g.getHeight());
            this.updateById(slGoodsShelf);
        }
    }
    @Override