|
@@ -31,13 +31,21 @@ public class BeiLunDifficultCaseDiscussHtmlAnalysis implements BeiLunHtmlAnalysi
|
|
String recTitle = args[1];
|
|
String recTitle = args[1];
|
|
String recTypeId = args[2];
|
|
String recTypeId = args[2];
|
|
Document doc = Jsoup.parse(html);
|
|
Document doc = Jsoup.parse(html);
|
|
- String htmlContent = BeiLunHtmlAnalysisUtil.blockDivToStr(doc.selectFirst("body").child(0), false);
|
|
|
|
|
|
+ String htmlContent = BeiLunHtmlAnalysisUtil.blockDivToStr(doc.selectFirst("body").child(0), true);
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
htmlContent = htmlContent.replaceAll("[ ]", " ");
|
|
htmlContent = htmlContent.replaceAll("[ ]", " ");
|
|
CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
}
|
|
}
|
|
CommonAnalysisUtil.extractDateByTitle(structureMap, "告知时间");
|
|
CommonAnalysisUtil.extractDateByTitle(structureMap, "告知时间");
|
|
removeLast(structureMap);
|
|
removeLast(structureMap);
|
|
|
|
+ if (structureMap.containsKey("住院号")) {
|
|
|
|
+ String date = CommonAnalysisUtil.extractDate(structureMap.get("住院号"));
|
|
|
|
+ if (StringUtil.isNotBlank(date)) {
|
|
|
|
+ structureMap.put("时间", date);
|
|
|
|
+ structureMap.put("住院号", structureMap.get("住院号").replace(date, "").replace("\n", ""));
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
BeiLunHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, structureMap);
|
|
BeiLunHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, structureMap);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(e.getMessage(), e);
|
|
log.error(e.getMessage(), e);
|