Browse Source

fix: adm 查询业务空间所有类型 补充state=1 条件

lvxianyun 3 years ago
parent
commit
c012662272

+ 5 - 1
src/main/java/com/persagy/proxy/object/service/impl/AdmSpaceServiceImpl.java

@@ -690,7 +690,11 @@ public class AdmSpaceServiceImpl extends AbstractAdmBaseServiceImpl<AdmSpace> im
      * @return
      */
     private int countSpace(InstanceUrlParam context, String classCode, String objFrom){
-        QueryCriteria queryCriteria = ensureQueryCommParm(new QueryCriteria(), context, CollUtil.newArrayList(classCode),"space");
+        QueryCriteria queryCriteriaSpace = new QueryCriteria();
+        ObjectNode criteria = JsonNodeFactory.instance.objectNode();
+        criteria.put("state", 1);
+        queryCriteriaSpace.setCriteria(criteria);
+        QueryCriteria queryCriteria = ensureQueryCommParm(queryCriteriaSpace, context, CollUtil.newArrayList(classCode),"space");
         addRelationTo(queryCriteria, objFrom,"Fl2Sp");
         queryCriteria.setOnlyCount(true);
         DmpResult<JSONArray> dmpResult = queryObj(context, queryCriteria);