刘韬 6 years ago
parent
commit
d75c9088dc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      DataFusion/src/com/zskk/control/ViewController.java

+ 3 - 1
DataFusion/src/com/zskk/control/ViewController.java

@@ -40,7 +40,9 @@ public class ViewController extends Controller {
 				report.setDescription(record.getStr("DESCRIPTION"));
 				report.setExamId(exams2.getId());
 				report.setCreatedAt(new Date());
-//				report.setReportResult(record.getStr("FITEM_RESULT_CODE").contains("阴")?"1":"2");
+				if (record.getStr("FITEM_RESULT_CODE") != null) {
+					report.setReportResult(record.getStr("FITEM_RESULT_CODE").contains("阴")?"1":"2");
+				}
 				report.setReportDoctorId(getDoctorIdByName(record.getStr("REPORTDOCTOR")));
 				report.setReviewDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
 				report.setReviewDatetime(aaa(record.getStr("REPORTDATE")));