|
@@ -19,11 +19,8 @@ import com.persagy.adm.server.custom.dao.*;
|
|
import com.persagy.adm.server.custom.datatx.ObjectMapper4Tx;
|
|
import com.persagy.adm.server.custom.datatx.ObjectMapper4Tx;
|
|
import com.persagy.adm.server.custom.entity.*;
|
|
import com.persagy.adm.server.custom.entity.*;
|
|
import com.persagy.adm.server.custom.entity.db.*;
|
|
import com.persagy.adm.server.custom.entity.db.*;
|
|
-import com.persagy.adm.server.custom.entity.db.AdmDefineProblemType;
|
|
|
|
import com.persagy.adm.server.custom.service.*;
|
|
import com.persagy.adm.server.custom.service.*;
|
|
import com.persagy.adm.server.custom.util.DataExtrasUtil;
|
|
import com.persagy.adm.server.custom.util.DataExtrasUtil;
|
|
-import com.persagy.adm.server.custom.dao.AdmDefineProblemInfoMapper;
|
|
|
|
-import com.persagy.adm.server.custom.entity.db.AdmDefineProblemInfo;
|
|
|
|
import com.persagy.dmp.basic.model.QueryCriteria;
|
|
import com.persagy.dmp.basic.model.QueryCriteria;
|
|
import com.persagy.dmp.common.constant.ValidEnum;
|
|
import com.persagy.dmp.common.constant.ValidEnum;
|
|
import com.persagy.dmp.define.entity.RelationDefine;
|
|
import com.persagy.dmp.define.entity.RelationDefine;
|
|
@@ -192,17 +189,11 @@ public class SyncAppImpl implements ISyncApp {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Map<String, Object> downloadFrameData(String groupCode, String projectId, String userId) {
|
|
public Map<String, Object> downloadFrameData(String groupCode, String projectId, String userId) {
|
|
- //TODO 项目修改为从运维平台查询
|
|
|
|
- QueryCriteria criteria = ServiceUtil.getQueryCriteria(objectMapper, AdmConst.OBJ_TYPE_PROJECT);
|
|
|
|
- List<ObjectNode> prjList = ServiceUtil.call(() -> objectClient.query(groupCode, null, AdmConst.APP_ID, userId, criteria));
|
|
|
|
- packInfos(prjList);
|
|
|
|
-
|
|
|
|
QueryCriteria criteria2 = ServiceUtil.getQueryCriteria(objectMapper, AdmConst.OBJ_TYPE_BUILDING, AdmConst.OBJ_TYPE_FLOOR);
|
|
QueryCriteria criteria2 = ServiceUtil.getQueryCriteria(objectMapper, AdmConst.OBJ_TYPE_BUILDING, AdmConst.OBJ_TYPE_FLOOR);
|
|
List<ObjectNode> bdAndFl = ServiceUtil.call(() -> objectClient.query(groupCode, projectId, AdmConst.APP_ID, userId, criteria2));
|
|
List<ObjectNode> bdAndFl = ServiceUtil.call(() -> objectClient.query(groupCode, projectId, AdmConst.APP_ID, userId, criteria2));
|
|
packInfos(bdAndFl);
|
|
packInfos(bdAndFl);
|
|
|
|
|
|
HashMap<String, Object> data = new HashMap<>();
|
|
HashMap<String, Object> data = new HashMap<>();
|
|
- data.put("projects", prjList);
|
|
|
|
data.put("buildingsAndFloors", bdAndFl);
|
|
data.put("buildingsAndFloors", bdAndFl);
|
|
|
|
|
|
return data;
|
|
return data;
|