Kaynağa Gözat

增加对物理世界obj valid=1的过滤

lixing 4 yıl önce
ebeveyn
işleme
089cc05684

+ 1 - 0
dmp-alarm/pom.xml

@@ -145,6 +145,7 @@
                 </executions>
             </plugin>
 
+            <!-- 按照测试要求打成zip需要的配置 -->
             <!--获取git信息-->
             <plugin>
                 <groupId>pl.project13.maven</groupId>

+ 2 - 0
dmp-alarm/src/main/java/com/persagy/dmp/alarm/service/PhysicalWorldService.java

@@ -31,6 +31,7 @@ public class PhysicalWorldService {
             @NotNull String classCode) throws Exception {
         JacksonCriteria criteria = JacksonCriteria.newInstance();
         criteria.add("classCode", classCode);
+        criteria.add("valid", 1);
         PagedResponse<ObjectNode> objectNodePagedResponse = physicalWorldClient.queryObj(projectId, groupCode, criteria);
         log.info("物理世界查询对象返回值:", objectNodePagedResponse == null ? null : objectNodePagedResponse.toString());
         List<ObjectNode> data = objectNodePagedResponse.getData();
@@ -59,6 +60,7 @@ public class PhysicalWorldService {
             @NotNull List<String> classCodes) throws Exception {
         JacksonCriteria criteria = JacksonCriteria.newInstance();
         criteria.add("classCode", classCodes);
+        criteria.add("valid", 1);
         PagedResponse<ObjectNode> objectNodePagedResponse = physicalWorldClient.queryObj(projectId, groupCode, criteria);
         log.info("物理世界查询对象返回值:", objectNodePagedResponse == null ? null : objectNodePagedResponse.toString());
         List<ObjectNode> data = objectNodePagedResponse.getData();