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

+ 13 - 13
DataFusion/src/com/zskk/control/ViewController.java

@@ -26,23 +26,23 @@ public class ViewController extends Controller {
 			List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=73090001 order by createdAt desc limit 50");
 			for (Exams exams2 : exams) {
 				Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
-				Record record = Db.use("connected").findFirst("select * from caller where STUDYUID=?",studies.getStudyuid());
+//				Record record = Db.use("connected").findFirst("select * from caller where STUDYUID=?",studies.getStudyuid());
 				Report report = new Report().use("zskk");
 				report.setId(creatId());
-				report.setReportDatetime(aaa(record.getStr("REPORTDATE")));
-				report.setImpression(record.getStr("IMPRESSION"));
-				report.setDescription(record.getStr("DESCRIPTION"));
-				report.setExamId(exams2.getId());
+//				report.setReportDatetime(aaa(record.getStr("REPORTDATE")));
+//				report.setImpression(record.getStr("IMPRESSION"));
+//				report.setDescription(record.getStr("DESCRIPTION"));
+//				report.setExamId(exams2.getId());
 				report.setCreatedAt(new Date());
-				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")));
-				report.setConfirmDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
-				report.setConfirmDatetime(aaa(record.getStr("REPORTDATE")));
-				report.save();
+//				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")));
+//				report.setConfirmDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
+//				report.setConfirmDatetime(aaa(record.getStr("REPORTDATE")));
+//				report.save();
 				PatientInfos patientInfos = PatientInfos.dao.use("zskk").findById(exams2.getPatientId());
-				patientInfos.setName(record.getStr("PATIENTNAME"));
+//				patientInfos.setName(record.getStr("PATIENTNAME"));
 				patientInfos.update();
 			}
 			this.renderJson(exams);