diff --git a/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntExRecordService.java b/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntExRecordService.java index 3c7efb0..32273ec 100644 --- a/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntExRecordService.java +++ b/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntExRecordService.java @@ -232,7 +232,7 @@ public class AntExRecordService { antExRecordModel.setLastMenses(patients.getLastMenses()); antExRecordModel.setDueDate(patients.getDueDate()); antExRecordModel.setName(patients.getUsername()); - antExRecordModel.sethScore(patients.getRiskScore()); + antExRecordModel.sethScore(null==patients.getRiskScore()?0:patients.getRiskScore()); antExRecordModel.sethRisk(patients.getRiskFactorId()); antExRecordModel.sethLevel(JsonUtil.toList(patients.getRiskLevelId(), List.class)); } else { @@ -273,7 +273,7 @@ public class AntExRecordService { antExRecordModel.setLastMenses(patients.getLastMenses()); antExRecordModel.setDueDate(patients.getDueDate()); antExRecordModel.setName(patients.getUsername()); - antExRecordModel.sethScore(patients.getRiskScore()); + antExRecordModel.sethScore(null==patients.getRiskScore()?0:patients.getRiskScore()); antExRecordModel.sethRisk(patients.getRiskFactorId()); antExRecordModel.sethLevel(JsonUtil.toList(patients.getRiskLevelId(), List.class)); } else {