刘韬 6 years ago
parent
commit
057505dae2

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

@@ -91,7 +91,7 @@ public class ViewController extends Controller {
 	public void testTask() {
 	public void testTask() {
 		List<Exams> exams;
 		List<Exams> exams;
 		try {
 		try {
-			exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=73090006 order by createdAt desc limit 5");
+			exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=73090006 order by createdAt desc limit 50");
 			for (Exams exams2 : exams) {
 			for (Exams exams2 : exams) {
 				Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
 				Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
 //				WeixinService wService = ServiceFactory.getService(WeixinService.class);
 //				WeixinService wService = ServiceFactory.getService(WeixinService.class);
@@ -104,7 +104,7 @@ public class ViewController extends Controller {
 			    Report report = new Report().use("zskk");
 			    Report report = new Report().use("zskk");
 				report.setId(creatId());
 				report.setId(creatId());
 				report.setReportDatetime(parseStringToDate(xmlHelper.getString("//ReportBean[1]/reportdate")));
 				report.setReportDatetime(parseStringToDate(xmlHelper.getString("//ReportBean[1]/reportdate")));
-				if (!xmlHelper.getString("//code[1]").equals("0")) {
+				if (xmlHelper.getString("//code[1]").equals("0")) {
 					continue;
 					continue;
 				}
 				}
 				report.setImpression(xmlHelper.getString("//ReportBean[1]/impression"));
 				report.setImpression(xmlHelper.getString("//ReportBean[1]/impression"));

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

@@ -28,7 +28,7 @@ public class DataTask implements ITask {
 	public void run() {
 	public void run() {
 		// TODO Auto-generated method stub
 		// TODO Auto-generated method stub
 		try {
 		try {
-			List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=73090006 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=73090006 order by createdAt desc limit 50");
 			for (Exams exams2 : exams) {
 			for (Exams exams2 : exams) {
 				Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
 				Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
 //				WeixinService wService = ServiceFactory.getService(WeixinService.class);
 //				WeixinService wService = ServiceFactory.getService(WeixinService.class);
@@ -41,7 +41,7 @@ public class DataTask implements ITask {
 			    Report report = new Report().use("zskk");
 			    Report report = new Report().use("zskk");
 				report.setId(creatId());
 				report.setId(creatId());
 				report.setReportDatetime(parseStringToDate(xmlHelper.getString("//ReportBean[1]/reportdate")));
 				report.setReportDatetime(parseStringToDate(xmlHelper.getString("//ReportBean[1]/reportdate")));
-				if (!xmlHelper.getString("//ReportBean[1]/reportdate").equals("0")) {
+				if (!xmlHelper.getString("//code[1]/").equals("0")) {
 					continue;
 					continue;
 				}
 				}
 				report.setImpression(xmlHelper.getString("//ReportBean[1]/impression"));
 				report.setImpression(xmlHelper.getString("//ReportBean[1]/impression"));