刘韬 4 years ago
parent
commit
44e474ac09

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

@@ -85,17 +85,9 @@ public class ViewController extends Controller {
 		}
 	}
 	
-	public void abc() {
-		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-		Date date = new Date();
-		long dInteger = date.getTime() - 3600000;
-		String daString = sdf.format(new Date(dInteger));
-		renderText(daString);
-	}
-	
 	public void abcd() {
 		try {
-			List<Record> records = Db.use("local").find("select StudyInstanceUID,PatientStudyDate from reportinfo_image where PatientStudyDate>? group by PatientStudyDate,StudyInstanceUID order by PatientStudyDate desc", parseStringToDate());
+			List<Record> records = Db.use("connected").find("select StudyInstanceUID,PatientStudyDate from reportinfo_image where PatientStudyDate>? group by PatientStudyDate,StudyInstanceUID order by PatientStudyDate desc", parseStringToDate());
 			this.renderJson(records);
 		} catch (Exception e) {
 			// TODO: handle exception

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

@@ -12,7 +12,7 @@ public class UpdateTask implements ITask {
 	@Override
 	public void run() {
 		// TODO Auto-generated method stub
-		List<Record> records = Db.use("local").find("select StudyInstanceUID,PatientStudyDate from reportinfo_image where PatientStudyDate>? group by PatientStudyDate,StudyInstanceUID order by PatientStudyDate desc", parseStringToDate());
+		List<Record> records = Db.use("connected").find("select StudyInstanceUID,PatientStudyDate from reportinfo_image where PatientStudyDate>? group by PatientStudyDate,StudyInstanceUID order by PatientStudyDate desc", parseStringToDate());
 		for (Record record : records) {
 			Record studyidfind = Db.use("local").findFirst("select * from study where studyuid = ?",record.getStr("StudyInstanceUID"));
 			if (studyidfind == null) {