|
@@ -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 50");
|
|
|
|
|
|
+ exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=73090006 order by createdAt desc limit 5");
|
|
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"));
|