Переглянути джерело

Merge branch 'poc1130' of http://39.106.8.246:3003/adm-poc/adm-poc-backend into poc1130

zhyk18 2 роки тому
батько
коміт
50725af65e

+ 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));
 		/*