刘韬 5 years ago
parent
commit
2870e5a844
1 changed files with 9 additions and 10 deletions
  1. 9 10
      DataFusion/src/com/zskk/control/ViewController.java

+ 9 - 10
DataFusion/src/com/zskk/control/ViewController.java

@@ -67,7 +67,6 @@ public class ViewController extends Controller {
 				if (record == null) {
 					continue;
 				}
-
 				Report report = new Report().use("zskk");
 				report.setId(creatId());
 				report.setReportDatetime(parseStringToDate(record.getStr("REPORTDATE")));
@@ -84,18 +83,18 @@ public class ViewController extends Controller {
 				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("DEPATMENT"));
-//				exams2.setApplicationDoctor(record.getStr("CLINICALDOCTOR"));
-//				exams2.setExamStatus(9);
+				exams2.setApplicationDepartment(record.getStr("DEPATMENT"));
+				exams2.setApplicationDoctor(record.getStr("CLINICALDOCTOR"));
+				exams2.setExamStatus(9);
 //				exams2.update();
-//				WeixinService wService = ServiceFactory.getService(WeixinService.class);
+				examsd.add(record);
+				WeixinService wService = ServiceFactory.getService(WeixinService.class);
 //				wService.requestWeixinQrcode(report.getId());
-//				examsd.add(exams2);
 			}
 			this.renderJson(examsd);
 		} catch (Exception e) {