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