Commit 2e6afb407b401e8303f73029b390f86f4a0807c5
1 parent
6ea97d6dfa
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 25 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
2e6afb4
| ... | ... | @@ -3722,6 +3722,26 @@ |
| 3722 | 3722 | } else { |
| 3723 | 3723 | data.put("highRisk", "高危"); |
| 3724 | 3724 | } |
| 3725 | + | |
| 3726 | + String status = ""; | |
| 3727 | + if ("0".equals(model.getEnable())) | |
| 3728 | + { | |
| 3729 | + status = "已转诊"; | |
| 3730 | + } | |
| 3731 | + else if ("1".equals(model.getEnable())) | |
| 3732 | + { | |
| 3733 | + status = "已接收"; | |
| 3734 | + } | |
| 3735 | + | |
| 3736 | + String hospitalAddress = ""; | |
| 3737 | + if (org.apache.commons.lang.StringUtils.isNotEmpty(model.getHospitalId())) { | |
| 3738 | + Organization organization = organizationService.getOrganization(Integer.parseInt(model.getHospitalId())); | |
| 3739 | + hospitalAddress = CommonsHelper.getResidence(organization.getProvinceId(), organization.getCityId(), | |
| 3740 | + organization.getAreaId(), organization.getStreetId(),"", | |
| 3741 | + basicConfigService); | |
| 3742 | + } | |
| 3743 | + data.put("status",status); | |
| 3744 | + data.put("hospitalAddress",hospitalAddress); | |
| 3725 | 3745 | data.put("sex", model.getSex() == null ? "" : StringUtils.emptyDeal(SexEnum.getTextById(model.getSex()))); |
| 3726 | 3746 | data.put("babyName", StringUtils.emptyDeal(model.getName())); |
| 3727 | 3747 | data.put("birthday", StringUtils.emptyDeal(DateUtil.getyyyy_MM_dd(model.getBirth()))); |
| ... | ... | @@ -3800,6 +3820,8 @@ |
| 3800 | 3820 | // } |
| 3801 | 3821 | OutputStream out = httpServletResponse.getOutputStream(); |
| 3802 | 3822 | Map <String, String> cnames = new LinkedHashMap <>(); |
| 3823 | + cnames.put("hospitalAddress", "医院所在地"); | |
| 3824 | + cnames.put("created", "登记日期"); | |
| 3803 | 3825 | cnames.put("sex", "性别"); |
| 3804 | 3826 | cnames.put("babyName", "儿童姓名"); |
| 3805 | 3827 | cnames.put("birthday", "儿童生日"); |
| 3806 | 3828 | |
| ... | ... | @@ -3809,9 +3831,10 @@ |
| 3809 | 3831 | cnames.put("serviceStatus", "服务状态"); |
| 3810 | 3832 | cnames.put("nextDate", "下次预约时间"); |
| 3811 | 3833 | cnames.put("monthAge", "月龄"); |
| 3812 | - cnames.put("diagnose", "高危诊断"); | |
| 3834 | + cnames.put("diagnose", "高危因素或异常情况"); | |
| 3813 | 3835 | cnames.put("highRisk", "是否健康"); |
| 3814 | - cnames.put("created", "建档时间"); | |
| 3836 | + cnames.put("status", "转诊"); | |
| 3837 | + | |
| 3815 | 3838 | httpServletResponse.setContentType("application/octet-stream"); |
| 3816 | 3839 | httpServletResponse.setCharacterEncoding("UTF-8"); |
| 3817 | 3840 | httpServletResponse.setHeader("Content-Disposition", "attachment;fileName=" + "childDatas.xls"); |