Commit 7b485fc845a0759f5347e19d62b452ab660e7ac7

Authored by jiangjiazhi
1 parent 70614157ca

增加soureceid

Showing 1 changed file with 4 additions and 2 deletions

platform-common/src/main/java/com/lyms/platform/common/dao/BaseMongoDAOImpl.java View file @ 7b485fc
... ... @@ -156,8 +156,10 @@
156 156 public static String mongo_crypto_key = Config.getItem("mongo_crypto_key", "0");
157 157 public static String mongo_sync = Config.getItem("mongo_sync", "0");
158 158 public void addSyncData(String action, Object data, String id) {
159   - if ("SyncDataModel".equals(data.getClass().getSimpleName())
160   - || "ArchiveData".equals(data.getClass().getSimpleName())) {
  159 + if (!(data instanceof Serializable) ||"LisReport".equals(data.getClass().getSimpleName())) {
  160 + if(!"LisReport".equals(data.getClass().getSimpleName())){
  161 + ExceptionUtils.catchException("NotSerializable for class :"+data.getClass().getSimpleName() );
  162 + }
161 163 return;
162 164 }
163 165 if ("1".equals(mongo_sync)) {