Ver código fonte

代码优化

wangyu 5 anos atrás
pai
commit
d8cd238024

+ 3 - 1
icssman-service/src/main/java/com/diagbot/facade/QuestionFacade.java

@@ -544,7 +544,9 @@ public class QuestionFacade extends QuestionInfoServiceImpl {
                 StringBuffer sb = new StringBuffer();
                 sb.append("请先删除科室查体模板关联中的对应标签:");
                 for (DeptVital deptVital : deptVitals) {
-                    sb.append("【" + depts.get(deptVital.getDeptId()) + "】").append("<br/>");
+                    if(StringUtil.isNotBlank(depts.get(deptVital.getDeptId()))){
+                        sb.append("【" + depts.get(deptVital.getDeptId()) + "】").append("<br/>");
+                    }
                 }
                 throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
                         sb.toString());