feat: get all marks
This commit is contained in:
parent
3b9fc31585
commit
05977740de
@ -57,7 +57,9 @@ public class ApplicationStartExec implements ApplicationListener<ApplicationStar
|
|||||||
File image = ResourceUtils.getFile("classpath:file/bafybeigrxcfikrzuksedvman4cebmao2jhre436vjxfukascqwxv2px5fa.png");
|
File image = ResourceUtils.getFile("classpath:file/bafybeigrxcfikrzuksedvman4cebmao2jhre436vjxfukascqwxv2px5fa.png");
|
||||||
Date date = new Date();
|
Date date = new Date();
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
XWPFTemplate allTemplate = XWPFTemplate.compile(wordFile.getAbsolutePath());
|
Configure config = Configure.builder()
|
||||||
|
.addPlugin('&', new LoopRowTableRenderPolicy()).build();
|
||||||
|
XWPFTemplate allTemplate = XWPFTemplate.compile(wordFile.getAbsolutePath(), config);
|
||||||
List<MetaTemplate> list = allTemplate.getElementTemplates();
|
List<MetaTemplate> list = allTemplate.getElementTemplates();
|
||||||
boolean onSameLine = false;
|
boolean onSameLine = false;
|
||||||
|
|
||||||
@ -67,7 +69,8 @@ public class ApplicationStartExec implements ApplicationListener<ApplicationStar
|
|||||||
for (MetaTemplate metaTemplate : list) {
|
for (MetaTemplate metaTemplate : list) {
|
||||||
if (metaTemplate instanceof ElementTemplate ele) {
|
if (metaTemplate instanceof ElementTemplate ele) {
|
||||||
log.info(ele.getTagName());
|
log.info(ele.getTagName());
|
||||||
if (!"table".equals(ele.getTagName())) {
|
String source = ele.getSource();
|
||||||
|
if (!source.contains("&")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -91,8 +94,6 @@ public class ApplicationStartExec implements ApplicationListener<ApplicationStar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.info("=====all tag=====END");
|
log.info("=====all tag=====END");
|
||||||
Configure config = Configure.builder()
|
|
||||||
.addPlugin('&', new LoopRowTableRenderPolicy()).build();
|
|
||||||
|
|
||||||
List<TableData> tableDate = new ArrayList<>();
|
List<TableData> tableDate = new ArrayList<>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user