|
@@ -47,7 +47,7 @@ public class UpdateTask implements ITask {
|
|
|
for (int j = 0; j < as.getLength(); j++) {
|
|
|
if (as.item(j).getNodeName().equals("tag")) {
|
|
|
if (as.item(j).getNodeValue().equals("0020000D")) {
|
|
|
- String b = xmlHelper.getString("/zskk/NativeDicomModel[" + i + "]/DicomAttribute[" + j + "]/Value");
|
|
|
+// String b = xmlHelper.getString("/zskk/NativeDicomModel[" + i + "]/DicomAttribute[" + j + "]/Value");
|
|
|
// System.out.println(xmlHelper.getString(nodeList.item(i), "Value"));
|
|
|
String studyuidString = xmlHelper.getString(nodeList.item(i), "Value");
|
|
|
Record studyidfind = Db.use("local").findFirst("select * from study where studyuid = ?",
|
|
@@ -65,19 +65,6 @@ public class UpdateTask implements ITask {
|
|
|
// TODO Auto-generated catch block
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
-
|
|
|
- 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) {
|
|
|
- Record studyinfo = new Record().set("studyuid", record.getStr("StudyInstanceUID")).set("status", 1)
|
|
|
- .set("createAt", record.getStr("PatientStudyDate"));
|
|
|
- Db.use("local").save("study", studyinfo);
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
@Override
|