|
|
@ -353,7 +353,7 @@ public class PatientReportService implements IPatientReportService { |
|
|
|
*/ |
|
|
|
private BigDecimal sumScore(PatientReportVo.ReportScore score){ |
|
|
|
AtomicReference<BigDecimal> sum = new AtomicReference<>(score.getScore() == null ? BigDecimal.valueOf(0) : score.getScore()); |
|
|
|
AtomicBoolean hasAdd = new AtomicBoolean(false); |
|
|
|
AtomicBoolean hasAdd = new AtomicBoolean(score.getScore() != null); |
|
|
|
if (!CollectionUtils.isEmpty(score.getSubReport())) { |
|
|
|
score.getSubReport().forEach(sub -> sum.updateAndGet(v -> { |
|
|
|
BigDecimal sumScore = sumScore(sub); |
|
|
|