刘韬 5 tahun lalu
induk
melakukan
45f2f08660
1 mengubah file dengan 28 tambahan dan 28 penghapusan
  1. 28 28
      DataFusion/src/com/zskk/control/ViewController.java

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

@@ -87,37 +87,37 @@ public class ViewController extends Controller {
 			List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=51000001 order by createdAt desc limit 80");
 			for (Exams exams2 : exams) {
 				Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
-				Record record = Db.use("connected2").findFirst("select * from reportinfo where STUDYUID=?",studies.getStudyuid());
-				if (record == null) {
-					continue;
-				}
-				Report report = new Report().use("zskk");
-				report.setId(creatId());
-				report.setReportDatetime(parseStringToDate(record.getStr("REPORTDATE")));
-				if (record.getStr("IMPRESSION") == null && record.getStr("DESCRIPTION") == null) {
-					continue;
-				}
-				report.setImpression(record.getStr("IMPRESSION"));
-				report.setDescription(record.getStr("DESCRIPTION"));
-				report.setExamId(exams2.getId());
-				report.setCreatedAt(new Date());
-				report.setReportDoctorId(getDoctorIdByName(record.getStr("REPORTDOCTOR")));
-				report.setReviewDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
-				report.setReviewDatetime(parseStringToDate(record.getStr("REPORTDATE")));
-				report.setConfirmDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
-				report.setConfirmDatetime(parseStringToDate(record.getStr("REPORTDATE")));
+//				Record record = Db.use("connected2").findFirst("select * from reportinfo where STUDYUID=?",studies.getStudyuid());
+//				if (record == null) {
+//					continue;
+//				}
+//				Report report = new Report().use("zskk");
+//				report.setId(creatId());
+//				report.setReportDatetime(parseStringToDate(record.getStr("REPORTDATE")));
+//				if (record.getStr("IMPRESSION") == null && record.getStr("DESCRIPTION") == null) {
+//					continue;
+//				}
+//				report.setImpression(record.getStr("IMPRESSION"));
+//				report.setDescription(record.getStr("DESCRIPTION"));
+//				report.setExamId(exams2.getId());
+//				report.setCreatedAt(new Date());
+//				report.setReportDoctorId(getDoctorIdByName(record.getStr("REPORTDOCTOR")));
+//				report.setReviewDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
+//				report.setReviewDatetime(parseStringToDate(record.getStr("REPORTDATE")));
+//				report.setConfirmDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
+//				report.setConfirmDatetime(parseStringToDate(record.getStr("REPORTDATE")));
 //				report.save();
-				PatientInfos patientInfos = PatientInfos.dao.use("zskk").findById(exams2.getPatientId());
-				patientInfos.setName(record.getStr("PATIENTNAME"));
-				patientInfos.setPhone(record.getStr("PHONE"));
-				patientInfos.setCardNum(record.getStr("IDCARD"));
+//				PatientInfos patientInfos = PatientInfos.dao.use("zskk").findById(exams2.getPatientId());
+//				patientInfos.setName(record.getStr("PATIENTNAME"));
+//				patientInfos.setPhone(record.getStr("PHONE"));
+//				patientInfos.setCardNum(record.getStr("IDCARD"));
 //				patientInfos.update();
-				exams2.setApplicationDepartment(record.getStr("DEPARTMENT"));
-				exams2.setApplicationDoctor(record.getStr("CLINICALDOCTOR"));
-				exams2.setExamStatus(9);
+//				exams2.setApplicationDepartment(record.getStr("DEPARTMENT"));
+//				exams2.setApplicationDoctor(record.getStr("CLINICALDOCTOR"));
+//				exams2.setExamStatus(9);
 //				exams2.update();
-				d.add(record);
-				WeixinService wService = ServiceFactory.getService(WeixinService.class);
+//				d.add(record);
+//				WeixinService wService = ServiceFactory.getService(WeixinService.class);
 //				wService.requestWeixinQrcode(report.getId());
 			}
 			this.renderJson(d);