|
@@ -52,6 +52,9 @@ public class TreatmentFacade {
|
|
|
if (disease == null) {
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS, "诊断不存在");
|
|
|
}
|
|
|
+ if (treatmentMap.size() == 0) {
|
|
|
+ throw new CommonException(CommonErrorCode.NOT_EXISTS, "未找到治疗方案");
|
|
|
+ }
|
|
|
if (!treatmentMap.containsKey(disease.getTagName())) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "诊断名称和id不匹配");
|
|
|
}
|