|
@@ -32,7 +32,12 @@ public class UpdateTask implements ITask {
|
|
|
|
|
|
JSONArray jsonArray = dService.getReport(params);
|
|
|
for (Object object : jsonArray) {
|
|
|
+
|
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
|
+ Record recordfind = Db.use("local").findFirst("select * from report where studyuid=?", jsonObject.getString("studyuid"));;
|
|
|
+ if (recordfind != null) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
Record record = new Record();
|
|
|
record.set("name", jsonObject.getString("name"));
|
|
|
record.set("sex", jsonObject.getString("sex"));
|