|
@@ -50,6 +50,7 @@ public class DataTask implements ITask {
|
|
JSONArray examList = getExamList("51000001", 30);
|
|
JSONArray examList = getExamList("51000001", 30);
|
|
List<Exams> exams = JSONObject.parseArray(examList.toJSONString(), Exams.class);
|
|
List<Exams> exams = JSONObject.parseArray(examList.toJSONString(), Exams.class);
|
|
for (Exams exams2 : exams) {
|
|
for (Exams exams2 : exams) {
|
|
|
|
+ logger.info(exams2.getId());
|
|
// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
Record record = Db.use("connected").findFirst("select * from reportinfo where studyuid=?",exams2.getPatientNum());
|
|
Record record = Db.use("connected").findFirst("select * from reportinfo where studyuid=?",exams2.getPatientNum());
|
|
if (record == null) {
|
|
if (record == null) {
|
|
@@ -100,7 +101,7 @@ public class DataTask implements ITask {
|
|
params.put("card_num",record.getStr("idcard"));
|
|
params.put("card_num",record.getStr("idcard"));
|
|
params.put("report_result","1");
|
|
params.put("report_result","1");
|
|
String logs = post(SAVE_REPORT_URL, JSON.toJSONString(params));
|
|
String logs = post(SAVE_REPORT_URL, JSON.toJSONString(params));
|
|
- logger.error(logs);
|
|
|
|
|
|
+ //logger.error(logs);
|
|
|
|
|
|
/*report.setImpression(record.getStr("impression"));
|
|
/*report.setImpression(record.getStr("impression"));
|
|
report.setDescription(record.getStr("description"));
|
|
report.setDescription(record.getStr("description"));
|
|
@@ -282,7 +283,7 @@ public class DataTask implements ITask {
|
|
}
|
|
}
|
|
in.close();
|
|
in.close();
|
|
result = sb.toString();
|
|
result = sb.toString();
|
|
- logger.error(result);
|
|
|
|
|
|
+ //logger.error(result);
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
} finally {
|
|
} finally {
|