刘韬 vor 5 Jahren
Ursprung
Commit
d98e81e0f9

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

@@ -82,19 +82,19 @@ public class ViewController extends Controller {
 				report.setReviewDatetime(parseStringToDate(record.getStr("REPORTDATE")));
 				report.setConfirmDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
 				report.setConfirmDatetime(parseStringToDate(record.getStr("REPORTDATE")));
-//				report.save();
+				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.update();
+				patientInfos.update();
 				exams2.setApplicationDepartment(record.getStr("DEPATMENT"));
 				exams2.setApplicationDoctor(record.getStr("CLINICALDOCTOR"));
 				exams2.setExamStatus(9);
-//				exams2.update();
+				exams2.update();
 				examsd.add(record);
 				WeixinService wService = ServiceFactory.getService(WeixinService.class);
-//				wService.requestWeixinQrcode(report.getId());
+				wService.requestWeixinQrcode(report.getId());
 			}
 			this.renderJson(examsd);
 		} catch (Exception e) {

+ 1 - 1
DataFusion/src/com/zskk/task/DataTask.java

@@ -23,7 +23,7 @@ public class DataTask implements ITask {
 	public void run() {
 		// TODO Auto-generated method stub
 		try {
-			List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=44000003 order by createdAt desc limit 100");
+			List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=44000003 order by createdAt desc limit 50");
 			for (Exams exams2 : exams) {
 				Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
 				Record recordTemp = Db.use("connected").findFirst("select * from v_all_img_idx@PACSINTERFACE where F_STU_UID=?",studies.getStudyuid());