|
@@ -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);
|