feat:删除报告时同时删除报告内容记录

This commit is contained in:
2023-05-15 10:22:48 +08:00
parent 03ba9069e6
commit a5500f66ea
@@ -350,6 +350,10 @@ public class IReportServiceImpl extends ServiceImpl<ReportDao, ReportEntity>
log.info(key + "已经删除");
nameList.add(entity.getName());
}
//删除报告内容表中的记录
LambdaQueryWrapper<ReportContentEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.in(ReportContentEntity::getReportId, idList);
iReportContentService.remove(wrapper);
return nameList;
}