Commit 665e4fd9b1f93d4d89182d3b1c6d5a5e1e81c796
1 parent
ec4f17ebcd
Exists in
master
and in
1 other branch
高危
Showing 2 changed files with 34 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PuerperaManageController.java
View file @
665e4fd
| ... | ... | @@ -13,6 +13,10 @@ |
| 13 | 13 | import com.lyms.platform.operate.web.facade.PatientFacade; |
| 14 | 14 | import com.lyms.platform.operate.web.facade.PuerperaManagerFacade; |
| 15 | 15 | import com.lyms.platform.operate.web.request.*; |
| 16 | +import com.lyms.platform.operate.web.result.BasicConfigResult; | |
| 17 | +import com.lyms.platform.operate.web.utils.HiskCountTask; | |
| 18 | +import com.lyms.platform.pojo.BasicConfig; | |
| 19 | +import org.apache.commons.collections.CollectionUtils; | |
| 16 | 20 | import org.springframework.beans.factory.annotation.Autowired; |
| 17 | 21 | import org.springframework.stereotype.Controller; |
| 18 | 22 | import org.springframework.web.bind.annotation.*; |
| ... | ... | @@ -24,6 +28,8 @@ |
| 24 | 28 | import java.util.HashMap; |
| 25 | 29 | import java.util.List; |
| 26 | 30 | import java.util.Map; |
| 31 | +import java.util.concurrent.Callable; | |
| 32 | +import java.util.concurrent.Future; | |
| 27 | 33 | |
| 28 | 34 | /** |
| 29 | 35 | * 孕产妇管理接口 |
| ... | ... | @@ -107,7 +113,7 @@ |
| 107 | 113 | @TokenRequired |
| 108 | 114 | public BaseResponse queryHighRiskPuerpera(@Valid RiskPatientsQueryRequest patientsQueryRequest,HttpServletRequest request) { |
| 109 | 115 | LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); |
| 110 | - return patientFacade.queryHighRisk(patientsQueryRequest, Boolean.TRUE, 1, loginState.getId(), "true",Boolean.FALSE); | |
| 116 | + return patientFacade.queryHighRisk(patientsQueryRequest, Boolean.TRUE, 1, loginState.getId(), "true", Boolean.FALSE); | |
| 111 | 117 | } |
| 112 | 118 | /** |
| 113 | 119 | *全部孕妇管理 |
| ... | ... | @@ -167,6 +173,32 @@ |
| 167 | 173 | map.put("organizations", antenatalExaminationFacade.convert()); |
| 168 | 174 | return new BaseObjectResponse().setData(map).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
| 169 | 175 | } |
| 176 | + | |
| 177 | + @RequestMapping(value = "/apatients/rLevle", method = RequestMethod.GET) | |
| 178 | + @ResponseBody | |
| 179 | + public BaseResponse rLevle(){ | |
| 180 | + Map<String, Object> map = new HashMap<>(); | |
| 181 | + | |
| 182 | + List<BasicConfigResult> results = new ArrayList<>(); | |
| 183 | + | |
| 184 | + List<BasicConfigResult> riskLevelConfig = basicConfigFacade.getBaseicConfigByParentId(SystemConfig.HIGH_RISK_ID); | |
| 185 | + if (CollectionUtils.isNotEmpty(riskLevelConfig)) | |
| 186 | + { | |
| 187 | + for(BasicConfigResult levelConfig : riskLevelConfig) | |
| 188 | + { | |
| 189 | + //健康 | |
| 190 | + if ("e637b361-99cf-41eb-84f2-f0dab596e928".equals(levelConfig.getId())) | |
| 191 | + { | |
| 192 | + continue; | |
| 193 | + } | |
| 194 | + results.add(levelConfig); | |
| 195 | + | |
| 196 | + } | |
| 197 | + } | |
| 198 | + map.put("gwfz", results); | |
| 199 | + return new BaseObjectResponse().setData(map).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
| 200 | + } | |
| 201 | + | |
| 170 | 202 | /** |
| 171 | 203 | * 获取产妇基本信息 |
| 172 | 204 | * |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RiskReportFacade.java
View file @
665e4fd
| ... | ... | @@ -104,6 +104,7 @@ |
| 104 | 104 | basicConfigQuery.setYn(YnEnums.YES.getId()); |
| 105 | 105 | basicConfigQuery.setParentId(SystemConfig.HIGH_RISK_ID); |
| 106 | 106 | basicConfigQuery.setEnable(1); |
| 107 | + basicConfigQuery.setId(riskPatientsQueryRequest.getrLevel()); | |
| 107 | 108 | |
| 108 | 109 | List<Future> futures = new ArrayList<>(); |
| 109 | 110 | List<BasicConfig> riskLevelConfig = basicConfigService.queryBasicConfig(basicConfigQuery); |