liyong
6 天以前 1125327095d325c9b248b3b72be7bc167e0b31d0
src/main/java/com/ruoyi/production/service/impl/ProductStructureServiceImpl.java
@@ -28,7 +28,10 @@
    @Override
    public Boolean addProductStructureDto(ProductStructureDto productStructureDto) {
        this.remove(new QueryWrapper<ProductStructure>().lambda().eq(ProductStructure::getProductModelId, productStructureDto.getProductModelId()));
        this.remove(new QueryWrapper<ProductStructure>().lambda().eq(ProductStructure::getParentId, productStructureDto.getParentId()));
        productStructureDto.getProductStructureList().forEach(productStructure -> {
            productStructure.setParentId(productStructureDto.getParentId());
        });
        return this.saveBatch(productStructureDto.getProductStructureList());
    }
}