Commit 17d94abe3d8d9fc50d5449abdcc96a4ccdfb216d
1 parent
e22179f200
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 3 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
17d94ab
... | ... | @@ -1519,19 +1519,16 @@ |
1519 | 1519 | if (CollectionUtils.isNotEmpty(tempList)) { |
1520 | 1520 | for (Patients pat : tempList) { |
1521 | 1521 | List<String> patientRisk = null; |
1522 | - HighScoreResult result =null; | |
1523 | 1522 | if (StringUtils.isNotEmpty(pat.getPid())) { |
1524 | - result=atFacade.findLastRisk(pat.getPid(), true); | |
1523 | + atFacade.updateLastRisk(pat.getId()); | |
1525 | 1524 | } |
1526 | - patientRisk = pat.getRiskFactorId(); | |
1525 | + patientRisk = patientsService.findOnePatientById(pat.getId()).getRiskFactorId(); | |
1527 | 1526 | |
1528 | 1527 | if (CollectionUtils.isNotEmpty(patientRisk)) { |
1529 | 1528 | int modCount = doRiskHandle(patientRisk); |
1530 | 1529 | if (modCount > 0) { |
1531 | 1530 | pat.setRiskFactorId(patientRisk); |
1532 | - if(null!=result){ | |
1533 | - pat.setRiskLevelId(JsonUtil.array2JsonString(result.getLevelId())); | |
1534 | - } | |
1531 | + | |
1535 | 1532 | patientsService.updatePatient(pat); |
1536 | 1533 | } |
1537 | 1534 | } |