Commit 602c20f1ab4c247d8018fe2866ba91b109c2004a
1 parent
ae5e9e22d2
Exists in
master
and in
6 other branches
秦皇岛冠新公卫接口
Showing 1 changed file with 17 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdJbgwInterface.java
View file @
602c20f
| ... | ... | @@ -8,6 +8,7 @@ |
| 8 | 8 | import com.lyms.platform.operate.web.utils.ResolveUtils; |
| 9 | 9 | import com.lyms.platform.permission.model.Organization; |
| 10 | 10 | import com.lyms.platform.permission.service.OrganizationService; |
| 11 | +import com.lyms.platform.pojo.BasicConfig; | |
| 11 | 12 | import com.lyms.platform.pojo.Patients; |
| 12 | 13 | import com.lyms.platform.query.PatientsQuery; |
| 13 | 14 | import org.springframework.beans.factory.annotation.Autowired; |
| ... | ... | @@ -82,6 +83,7 @@ |
| 82 | 83 | map.put("ORGNAME",hospital); |
| 83 | 84 | map.put("ORGCODE",patients.getHospitalId()); |
| 84 | 85 | map.put("BUILDINGMANUALDATE",DateUtil.getyyyy_MM_dd(patients.getBookbuildingDate())); |
| 86 | + map.put("NATIONALITYVALUE",getBasicConfig(patients.getPnationId())); | |
| 85 | 87 | map.put("BUILDWEEKS", ResolveUtils.getPregnancyWeek(patients, patients.getBookbuildingDate())); |
| 86 | 88 | mList.add(map); |
| 87 | 89 | |
| ... | ... | @@ -92,6 +94,21 @@ |
| 92 | 94 | } |
| 93 | 95 | } |
| 94 | 96 | return mList; |
| 97 | + } | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + //民族查询 | |
| 103 | + private String getBasicConfig(String id) { | |
| 104 | + if (com.lyms.platform.common.utils.StringUtils.isEmpty(id)) { | |
| 105 | + return ""; | |
| 106 | + } | |
| 107 | + BasicConfig basicConfig = basicConfigService.getOneBasicConfigById(id); | |
| 108 | + if (null != basicConfig) { | |
| 109 | + return basicConfig.getName(); | |
| 110 | + } | |
| 111 | + return ""; | |
| 95 | 112 | } |
| 96 | 113 | |
| 97 | 114 |