Commit 192b1f6f98288a1f0e6d10ff94f05e4fcea65e36
1 parent
ff726f2af0
Exists in
master
and in
6 other branches
修改体重营养报告
Showing 1 changed file with 20 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
192b1f6
... | ... | @@ -526,6 +526,26 @@ |
526 | 526 | week = DateUtil.getWeek2(patients.getLastMenses(), new Date()); |
527 | 527 | String yunqi = "孕" + String.valueOf(week) + "期"; |
528 | 528 | map.put("yunqi", yunqi); |
529 | + | |
530 | + List<String> factor = patients.getRiskFactorId(); | |
531 | + String risk=""; | |
532 | + if (CollectionUtils.isNotEmpty(factor)) { | |
533 | + StringBuilder sb = new StringBuilder(56); | |
534 | + for (String srt : factor) { | |
535 | + if (StringUtils.isNotEmpty(srt)) { | |
536 | + BasicConfig basicConfig1 = basicConfigService.getOneBasicConfigById(srt); | |
537 | + if (null != basicConfig && sb.indexOf(basicConfig1.getName()) == -1) { | |
538 | + sb.append(basicConfig1.getName()).append(','); | |
539 | + } | |
540 | + } | |
541 | + } | |
542 | + if (sb.toString().endsWith(",")) { | |
543 | + risk=sb.substring(0, sb.length() - 1); | |
544 | + } else { | |
545 | + risk=sb.toString(); | |
546 | + } | |
547 | + } | |
548 | + map.put("risk", risk); | |
529 | 549 | } |
530 | 550 | map.put("height", patientWeight.getBeforeHeight() == null ? "" : MathUtil.doubleFormat(Double.parseDouble(patientWeight.getBeforeHeight()) / 100) + " 米"); |
531 | 551 | map.put("beforeWeight", patientWeight.getBeforeWeight() == null ? "" : patientWeight.getBeforeWeight() + " 公斤"); |