Commit efa5644d22496123f3ce9db94df1479573bc8bd2
1 parent
596dc37600
Exists in
master
and in
7 other branches
自定义查询
Showing 3 changed files with 88 additions and 12 deletions
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/ChildbirthManagerRequest.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/ChildbirthManagerQueryModel.java
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java
View file @
efa5644
| ... | ... | @@ -157,17 +157,13 @@ |
| 157 | 157 | list.add(map); |
| 158 | 158 | } |
| 159 | 159 | Map<String, String> header = new LinkedHashMap<>(); |
| 160 | - header.put("dueDate", "分娩日期"); | |
| 161 | - header.put("name", "姓名"); | |
| 162 | - header.put("age", "年龄"); | |
| 163 | - header.put("cardNo", "证件号"); | |
| 164 | - header.put("dueWeek", "分娩孕周"); | |
| 165 | - header.put("deliveryMode", "分娩方式"); | |
| 166 | - header.put("maternalInfo", "产妇情况"); | |
| 167 | - header.put("tireNumber", "胎数"); | |
| 168 | - header.put("livingNumber", "活产数"); | |
| 169 | - header.put("deliverDoctor", "接生医生"); | |
| 170 | - header.put("phone", "联系方式"); | |
| 160 | + Map<String, String> temp = childbirthManagerRequest.getInitQueryMap(); | |
| 161 | + String initQuery = childbirthManagerRequest.getInitQuery(); | |
| 162 | + for (String key : temp.keySet()) { | |
| 163 | + if (initQuery.contains(key)) { | |
| 164 | + header.put(key, temp.get(key)); | |
| 165 | + } | |
| 166 | + } | |
| 171 | 167 | httpServletResponse.setContentType("application/force-download"); |
| 172 | 168 | httpServletResponse.setHeader("Content-Disposition", "attachment;filename=" + new String(("分娩管理.xls").getBytes("UTF-8"), "ISO-8859-1")); |
| 173 | 169 | ExcelUtil.toExcel(httpServletResponse.getOutputStream(), list, header); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/ChildbirthManagerRequest.java
View file @
efa5644
| 1 | 1 | package com.lyms.platform.operate.web.request; |
| 2 | 2 | |
| 3 | +import java.util.LinkedHashMap; | |
| 4 | +import java.util.Map; | |
| 5 | + | |
| 3 | 6 | /** |
| 4 | 7 | * @auther HuJiaqi |
| 5 | 8 | * @createTime 2016年12月07日 14时07分 |
| 6 | 9 | |
| ... | ... | @@ -147,10 +150,20 @@ |
| 147 | 150 | */ |
| 148 | 151 | private String initQuery; |
| 149 | 152 | |
| 153 | + private Map<String, String> initQueryMap; | |
| 154 | + | |
| 150 | 155 | private boolean isExcel; |
| 151 | 156 | |
| 152 | 157 | private Integer operatorId; |
| 153 | 158 | |
| 159 | + public Map<String, String> getInitQueryMap() { | |
| 160 | + return initQueryMap; | |
| 161 | + } | |
| 162 | + | |
| 163 | + public void setInitQueryMap(Map<String, String> initQueryMap) { | |
| 164 | + this.initQueryMap = initQueryMap; | |
| 165 | + } | |
| 166 | + | |
| 154 | 167 | public boolean isExcel() { |
| 155 | 168 | return isExcel; |
| 156 | 169 | } |
| ... | ... | @@ -325,6 +338,64 @@ |
| 325 | 338 | |
| 326 | 339 | public void setOperatorId(Integer operatorId) { |
| 327 | 340 | this.operatorId = operatorId; |
| 341 | + } | |
| 342 | + | |
| 343 | + public ChildbirthManagerRequest() { | |
| 344 | + Map<String, String> initQueryMap = new LinkedHashMap<>(); | |
| 345 | + initQueryMap.put("dueDate", "分娩日期"); | |
| 346 | + initQueryMap.put("name", "姓名"); | |
| 347 | + initQueryMap.put("age", "年龄"); | |
| 348 | + initQueryMap.put("cardNo", "证件号"); | |
| 349 | + initQueryMap.put("dueWeek", "分娩孕周"); | |
| 350 | + initQueryMap.put("deliveryMode", "分娩方式"); | |
| 351 | + initQueryMap.put("maternalInfo", "产妇情况"); | |
| 352 | + initQueryMap.put("tireNumber", "胎数"); | |
| 353 | + initQueryMap.put("livingNumber", "活产数"); | |
| 354 | + initQueryMap.put("deliverDoctor", "接生医生"); | |
| 355 | + initQueryMap.put("phone", "联系方式"); | |
| 356 | + initQueryMap.put("address", "居住地"); | |
| 357 | + initQueryMap.put("pliveTypeId", "居住类型"); | |
| 358 | + initQueryMap.put("pcensusTypeId", "户口类型"); | |
| 359 | + initQueryMap.put("husbandPhone", "丈夫联系方式"); | |
| 360 | + initQueryMap.put("fetalPosition", "胎方位"); | |
| 361 | + initQueryMap.put("heartRate", "胎心率"); | |
| 362 | + initQueryMap.put("fetalPresentation", "胎先露"); | |
| 363 | + initQueryMap.put("perinealCondition", "会阴情况"); | |
| 364 | + initQueryMap.put("operationCause", "手术原因"); | |
| 365 | + initQueryMap.put("needleNum", "缝线针数"); | |
| 366 | + initQueryMap.put("prodprocessOne", "第一产程"); | |
| 367 | + initQueryMap.put("prodprocessTwo", "第二产程"); | |
| 368 | + initQueryMap.put("prodprocessThree", "第三产程"); | |
| 369 | + initQueryMap.put("totalprocess", "总产程"); | |
| 370 | + initQueryMap.put("deathCause", "死亡原因"); | |
| 371 | + initQueryMap.put("chBpSsy1", "收缩压"); | |
| 372 | + initQueryMap.put("chBpSzy1", "舒张压"); | |
| 373 | + initQueryMap.put("breath", "呼吸"); | |
| 374 | + initQueryMap.put("pulse", "脉搏"); | |
| 375 | + initQueryMap.put("oHloseBloodL", "产后1小时失血量"); | |
| 376 | + initQueryMap.put("tHloseBloodL", "产后2小时失血量"); | |
| 377 | + initQueryMap.put("rHloseBloodL", "产后24小时内失血量"); | |
| 378 | + initQueryMap.put("loseBloodCause", "失血原因"); | |
| 379 | + initQueryMap.put("tpmcType", "胎盘娩出方式"); | |
| 380 | + initQueryMap.put("tpSize", "胎盘大小"); | |
| 381 | + initQueryMap.put("tpWeight", "胎盘重量"); | |
| 382 | + initQueryMap.put("umbilicalCordLength", "脐带长度"); | |
| 383 | + initQueryMap.put("umbilicalCordEx", "脐带是否异常"); | |
| 384 | + initQueryMap.put("umbilicalCordExType", "脐带异常类型"); | |
| 385 | + initQueryMap.put("pregnancyOut", "妊娠结局"); | |
| 386 | + initQueryMap.put("sex", "儿童性别"); | |
| 387 | + initQueryMap.put("babyWeight", "儿童体重"); | |
| 388 | + initQueryMap.put("babyHeight", "儿童身长"); | |
| 389 | + initQueryMap.put("apgarScorePf1", "Apgar1分钟"); | |
| 390 | + initQueryMap.put("apgarScorePf5", "Apgar5分钟"); | |
| 391 | + initQueryMap.put("apgarScorePf10", "Apgar10分钟"); | |
| 392 | + initQueryMap.put("asphyxiaM", "窒息分钟数"); | |
| 393 | + initQueryMap.put("babyHealthy", "新生儿疾病"); | |
| 394 | + initQueryMap.put("malformation", "畸形"); | |
| 395 | + initQueryMap.put("vcCardNo", "卡号"); | |
| 396 | + initQueryMap.put("fileCode", "住院号(暂时塞的档案编号)"); | |
| 397 | + initQueryMap.put("fmHospital", "分娩机构"); | |
| 398 | + this.initQueryMap = initQueryMap; | |
| 328 | 399 | } |
| 329 | 400 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/ChildbirthManagerQueryModel.java
View file @
efa5644
| ... | ... | @@ -387,8 +387,9 @@ |
| 387 | 387 | /** |
| 388 | 388 | * @auther HuJiaqi |
| 389 | 389 | * @createTime 2016年12月09日 16时01分 |
| 390 | - * @discription 住院号 | |
| 390 | + * @discription 住院号(暂时塞的档案编号) | |
| 391 | 391 | */ |
| 392 | + private String fileCode; | |
| 392 | 393 | |
| 393 | 394 | /** |
| 394 | 395 | * @auther HuJiaqi |
| ... | ... | @@ -837,6 +838,14 @@ |
| 837 | 838 | |
| 838 | 839 | public void setAddress(String address) { |
| 839 | 840 | this.address = address; |
| 841 | + } | |
| 842 | + | |
| 843 | + public String getFileCode() { | |
| 844 | + return fileCode; | |
| 845 | + } | |
| 846 | + | |
| 847 | + public void setFileCode(String fileCode) { | |
| 848 | + this.fileCode = fileCode; | |
| 840 | 849 | } |
| 841 | 850 | } |