Commit 0480a9438c89805387c133f1842496b91d4a179e
1 parent
478f550d88
Exists in
master
and in
6 other branches
SmsConfigModel 过滤掉不同步
Showing 1 changed file with 22 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ViewController.java
View file @
0480a94
... | ... | @@ -156,6 +156,28 @@ |
156 | 156 | // doc = new Document("D:\\经济开发区乡镇涉及妇幼公卫表格(外联部)_复诊.dotx"); |
157 | 157 | doc = new Document(ViewController.class.getClassLoader().getResourceAsStream("产后42天健康检查记录表.docx")); |
158 | 158 | // specialData(doc, map);//特殊数据 |
159 | + | |
160 | + DocumentBuilder builder = new DocumentBuilder(doc); | |
161 | + if (map.containsKey("breast")) { | |
162 | + builder.moveToBookmark("breast"); | |
163 | + markFrameText(builder, (String) map.get("breast")); | |
164 | + map.remove("breast"); | |
165 | + } | |
166 | + if (map.containsKey("lochia")) { | |
167 | + builder.moveToBookmark("lochia"); | |
168 | + markFrameText(builder, (String) map.get("lochia")); | |
169 | + map.remove("lochia"); | |
170 | + } | |
171 | + if (map.containsKey("matrix")) { | |
172 | + builder.moveToBookmark("matrix"); | |
173 | + markFrameText(builder, (String) map.get("matrix")); | |
174 | + map.remove("matrix"); | |
175 | + } | |
176 | + if (map.containsKey("wound")) { | |
177 | + builder.moveToBookmark("wound"); | |
178 | + markFrameText(builder, (String) map.get("wound")); | |
179 | + map.remove("wound"); | |
180 | + } | |
159 | 181 | markData(doc, map);//普通数据 |
160 | 182 | sendToBrowser(doc, "导出", "doc", true, response); |
161 | 183 | } catch (Exception e) { |