diff --git a/adc-da-report/src/main/java/com/adc/da/report/service/impl/ITreeLabelServiceImpl.java b/adc-da-report/src/main/java/com/adc/da/report/service/impl/ITreeLabelServiceImpl.java index 7de3c6a..7cc92dc 100644 --- a/adc-da-report/src/main/java/com/adc/da/report/service/impl/ITreeLabelServiceImpl.java +++ b/adc-da-report/src/main/java/com/adc/da/report/service/impl/ITreeLabelServiceImpl.java @@ -142,8 +142,15 @@ public class ITreeLabelServiceImpl extends ServiceImpl nodeAndChildrenIds = findNodeAndChildrenIds(getTreeLabelRoot(), id).stream().distinct().collect(Collectors.toList()); + LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); + nodeAndChildrenIds.forEach(labelLd -> { + wrapper.eq(ReportLabelEntity::getLabelId, labelLd); + reportLabelDao.delete(wrapper); + }); + int i = treeLabelDao.deleteBatchIds(nodeAndChildrenIds); return i != 0; } diff --git a/adc-da-report/src/main/java/com/adc/da/report/service/impl/ReportLabelServiceImpl.java b/adc-da-report/src/main/java/com/adc/da/report/service/impl/ReportLabelServiceImpl.java new file mode 100644 index 0000000..05752d9 --- /dev/null +++ b/adc-da-report/src/main/java/com/adc/da/report/service/impl/ReportLabelServiceImpl.java @@ -0,0 +1,22 @@ +package com.adc.da.report.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.adc.da.report.eo.ReportLabelEntity; +import com.adc.da.report.service.IReportLabelService; +import com.adc.da.report.dao.mysql.ReportLabelDao; +import org.springframework.stereotype.Service; + +/** +* @author ThinkBook +* @description 针对表【ts_report_label】的数据库操作Service实现 +* @createDate 2023-04-19 11:28:48 +*/ +@Service +public class ReportLabelServiceImpl extends ServiceImpl + implements IReportLabelService { + +} + + + +