|
@@ -31,6 +31,7 @@ import okhttp3.OkHttpClient;
|
|
|
import okhttp3.Request;
|
|
|
import okhttp3.RequestBody;
|
|
|
import okhttp3.Response;
|
|
|
+import sun.tools.tree.TryStatement;
|
|
|
|
|
|
public class ViewController extends Controller {
|
|
|
|
|
@@ -92,18 +93,18 @@ public class ViewController extends Controller {
|
|
|
// System.out.println(xmlHelper.getString(nodeList.item(i), "Value"));
|
|
|
String studyuidString = xmlHelper.getString(nodeList.item(i), "Value");
|
|
|
d=d+studyuidString;
|
|
|
-// Record studyidfind = Db.use("local").findFirst("select * from study where studyuid = ?",
|
|
|
-// studyuidString);
|
|
|
-// if (studyidfind == null) {
|
|
|
-// Record studyinfo = new Record().set("studyuid", studyuidString);
|
|
|
-// Db.use("local").save("study", studyinfo);
|
|
|
-// }
|
|
|
+ Record studyidfind = Db.use("local").findFirst("select * from study where studyuid = ?",
|
|
|
+ studyuidString);
|
|
|
+ if (studyidfind == null) {
|
|
|
+ Record studyinfo = new Record().set("studyuid", studyuidString);
|
|
|
+ Db.use("local").save("study", studyinfo);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- } catch (IOException e) {
|
|
|
+ } catch (Exception e) {
|
|
|
// TODO Auto-generated catch block
|
|
|
e.printStackTrace();
|
|
|
renderText(e.toString());
|