Commit b85ff4fc79d63baa2c24081cd8942b8ea973293d

Authored by riecard
1 parent 30ea291d49

add sync data task

Showing 1 changed file with 3 additions and 1 deletions

platform-common/src/main/java/com/lyms/platform/common/dao/BaseMongoDAOImpl.java View file @ b85ff4f
... ... @@ -4,7 +4,6 @@
4 4 import com.lyms.platform.common.pojo.SyncDataModel;
5 5 import com.lyms.platform.common.utils.*;
6 6 import org.apache.commons.collections.CollectionUtils;
7   -import org.apache.commons.lang.*;
8 7 import org.springframework.beans.factory.annotation.Autowired;
9 8 import org.springframework.data.mongodb.core.MongoTemplate;
10 9 import org.springframework.data.mongodb.core.query.Query;
... ... @@ -144,6 +143,9 @@
144 143 public static String mongo_crypto_key = Config.getItem("mongo_crypto_key", "0");
145 144 public static String mongo_sync = Config.getItem("mongo_sync", "0");
146 145 public void addSyncData(String action, Object data, String id) {
  146 + if ("SyncDataModel".equals(data.getClass().getSimpleName())) {
  147 + return;
  148 + }
147 149 if ("1".equals(mongo_sync)) {
148 150 try {
149 151 if (action.startsWith("Mysql")) {