瀏覽代碼

关系下载过滤优化

zhaoyk 2 年之前
父節點
當前提交
e54d2b954f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/java/com/persagy/bdtp/adm/service/impl/SyncAppImpl.java

+ 2 - 1
src/main/java/com/persagy/bdtp/adm/service/impl/SyncAppImpl.java

@@ -342,7 +342,8 @@ public class SyncAppImpl implements ISyncApp {
 
 		QueryCriteria criteria = ServiceUtil.getQueryCriteria(objectMapper);
 		buildDownloadQueryCriteria(criteria, operator, bdtpDownloadTs);
-		criteria.getCriteria().put("createApp", AdmConst.CREATOR_APP); //TODO 临时逻辑,只下载app端创建的关系
+		//criteria.getCriteria().put("createApp", AdmConst.CREATOR_APP); //TODO 临时逻辑,只下载app端创建的关系
+		criteria.getCriteria().putObject("graphCode").put("$notInSql", "'MechInArch','MechSubset','ArchSubset'"); //过滤掉大量不需要使用的关系
 
 		List<ObjectNode> rels = ServiceUtil.queryAllPage(() -> rwdClient.queryRelation(groupCode, projectId, AdmConst.APP_ID, userId, criteria), criteria, new Pagination(500));
 		/*