Commit 4a28e6668474a1a84d787d9e74482dcf1eea63d4

Authored by hanshaofeng
1 parent c0ed9e59c7

all model add serialid

Showing 2 changed files with 2 additions and 19 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java View file @ 4a28e66
... ... @@ -6,14 +6,11 @@
6 6 import com.lyms.platform.common.pojo.UpdateMultiData;
7 7 import com.lyms.platform.common.utils.*;
8 8 import com.lyms.platform.pojo.*;
9   -import com.mongodb.DBObject;
10 9 import com.mongodb.Mongo;
11 10 import org.apache.commons.codec.binary.Base64;
12   -import org.apache.commons.lang.*;
13 11 import org.apache.commons.lang.StringUtils;
14 12 import org.springframework.beans.factory.annotation.Autowired;
15 13 import org.springframework.data.mongodb.core.MongoTemplate;
16   -import org.springframework.data.mongodb.core.query.Criteria;
17 14 import org.springframework.data.mongodb.core.query.Query;
18 15 import org.springframework.data.mongodb.core.query.Update;
19 16 import org.springframework.stereotype.Service;
... ... @@ -22,7 +19,6 @@
22 19 import java.util.ArrayList;
23 20 import java.util.Date;
24 21 import java.util.List;
25   -import java.util.Map;
26 22  
27 23 /**
28 24 * Created by Administrator on 2016/9/13 0013.
... ... @@ -42,14 +38,6 @@
42 38 public static final String timeAtts[] = {"checkDate","nextCheckTime","created","modified","dueDate","lastMenses","nextDate","birth","fbirth","mbirth","buildDate","vipEndTime","currentVisit","nextVisitDate","publishTime","bookbuildingDate","fmDate","husbandBirth","lastThTime","LastCTime","dueWeek","received","applyDate","sendDate","stopDate","start","end","nextCheckTimeStart","nextCheckTimeEnd","gteModified","gteCreated","start","end","buildDateStart","buildDateEnd","birthStart","birthEnd","nextDateStart","nextDateEnd","createdStart","endStart"};
43 39  
44 40 public static String mongo_crypto_key = Config.getItem("mongo_crypto_key", "0");
45   -
46   - public static void main(String[] a) {
47   -
48   - String s = "rO0ABXNyACdjb20ubHltcy5wbGF0Zm9ybS5wb2pvLkFudEV4UmVjb3JkTW9kZWwBao8C/AMWLwIAEkkABnN0YXR1c0wABWJya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yNzJ0ABg1ODQ4Yzg4NDEzNTgxMjE4NDc4ZDQyNzBzcQB+ABIAAAAC";
49   - Object obj = SerializUtils.byteToObj(Base64.decodeBase64(s));
50   - System.out.println(obj);
51   - System.out.println();
52   - }
53 41  
54 42 public boolean syncData(String action, String id, String className, String json) {
55 43 System.out.println(mongo_crypto_key);
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/InitDataController.java View file @ 4a28e66
... ... @@ -6,25 +6,20 @@
6 6 import com.lyms.platform.common.dao.operator.MongoQuery;
7 7 import com.lyms.platform.common.result.BaseModel;
8 8 import com.lyms.platform.common.utils.*;
9   -import com.lyms.platform.common.utils.ReflectionUtils;
10   -import com.lyms.platform.common.utils.StringUtils;
11 9 import com.lyms.platform.pojo.*;
12 10 import org.apache.commons.codec.binary.Base64;
13 11 import org.apache.commons.httpclient.HttpClient;
14 12 import org.apache.commons.httpclient.NameValuePair;
15 13 import org.apache.commons.httpclient.methods.PostMethod;
16   -import org.apache.commons.io.FileUtils;
17 14 import org.springframework.beans.factory.annotation.Autowired;
18 15 import org.springframework.data.mongodb.core.MongoTemplate;
19 16 import org.springframework.data.mongodb.core.query.Query;
20 17 import org.springframework.data.mongodb.core.query.Update;
21 18 import org.springframework.stereotype.Controller;
22   -import org.springframework.util.*;
23 19 import org.springframework.web.bind.annotation.RequestMapping;
24 20 import org.springframework.web.bind.annotation.RequestMethod;
25 21 import org.springframework.web.bind.annotation.ResponseBody;
26 22  
27   -import java.io.Serializable;
28 23 import java.util.ArrayList;
29 24 import java.util.List;
30 25  
... ... @@ -86,7 +81,7 @@
86 81 boolean boo = postser(synclist, cla.getName());
87 82 if (!boo) {
88 83 System.out.println(cla.getName());
89   - System.out.println(JsonUtil.array2JsonString(list));
  84 + System.out.println(JsonUtil.array2JsonString(synclist));
90 85 }
91 86 synclist.clear();
92 87 }
... ... @@ -95,7 +90,7 @@
95 90 boolean boo = postser(synclist, cla.getName());
96 91 if (!boo) {
97 92 System.out.println(cla.getName());
98   - System.out.println(JsonUtil.array2JsonString(list));
  93 + System.out.println(JsonUtil.array2JsonString(synclist));
99 94 }
100 95 }
101 96 }