| | |
| | | @Transactional |
| | | public Boolean addProductStructureDto(ProductStructureDto dto) { |
| | | |
| | | Long bomId = dto.getBomId(); |
| | | Integer bomId = dto.getBomId(); |
| | | |
| | | // 将树扁平化 |
| | | List<ProductStructureDto> flatDtoList = new ArrayList<>(); |
| | |
| | | |
| | | |
| | | @Override |
| | | public List<ProductStructureDto> listBybomId(Long bomId) { |
| | | List<ProductStructureDto> list = productStructureMapper.listBybomId(bomId); |
| | | public List<ProductStructureDto> listByBomId(Integer bomId) { |
| | | List<ProductStructureDto> list = productStructureMapper.listByBomId(bomId); |
| | | |
| | | Map<Long, ProductStructureDto> map = new HashMap<>(); |
| | | for (ProductStructureDto node : list) { |