|
@@ -264,47 +264,29 @@ public class SyncAppImpl implements ISyncApp {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public BuildingData downloadBuildingData(AdmRequest admRequest) {
|
|
public BuildingData downloadBuildingData(AdmRequest admRequest) {
|
|
- String groupCode = admRequest.getGroupCode();
|
|
|
|
String projectId = admRequest.getProjectId();
|
|
String projectId = admRequest.getProjectId();
|
|
String userId = admRequest.getUserId();
|
|
String userId = admRequest.getUserId();
|
|
String clientId = admRequest.getClientId();
|
|
String clientId = admRequest.getClientId();
|
|
String buildingId = admRequest.getBuildingId();
|
|
String buildingId = admRequest.getBuildingId();
|
|
- Long bdtpDownloadTs = admRequest.getBdtpDownloadTs();
|
|
|
|
Long admDownloadTs = admRequest.getAdmDownloadTs();
|
|
Long admDownloadTs = admRequest.getAdmDownloadTs();
|
|
String operator = getOperator(clientId, userId);
|
|
String operator = getOperator(clientId, userId);
|
|
|
|
|
|
- //从bdtp下载对象(空间、竖井、系统、设备、元空间)
|
|
|
|
- QueryCriteria criteria = ServiceUtil.getQueryCriteria(objectMapper, AdmConst.OBJ_TYPE_SPACE, AdmConst.OBJ_TYPE_SHAFT, AdmConst.OBJ_TYPE_SYSTEM, AdmConst.OBJ_TYPE_EQUIPMENT, "ispace");
|
|
|
|
- buildDownloadQueryCriteria(criteria, operator, bdtpDownloadTs);
|
|
|
|
- criteria.getCriteria().put("buildingId", buildingId);
|
|
|
|
-
|
|
|
|
- List<ObjectNode> objs = ServiceUtil.queryAllPage(() -> objectClient.query(groupCode, projectId, AdmConst.APP_ID, userId, criteria), criteria, new Pagination(500));
|
|
|
|
- if (objs == null)
|
|
|
|
- objs = new ArrayList<>(0);
|
|
|
|
-
|
|
|
|
- packInfos(objs);
|
|
|
|
- test4Ts(objs);
|
|
|
|
-
|
|
|
|
//关系数据按项目下载,不在建筑数据中处理
|
|
//关系数据按项目下载,不在建筑数据中处理
|
|
|
|
|
|
- //管道数据,实验方案
|
|
|
|
- List<AdmPipe> pipes = pipeMapper.selectList(buildDownloadQueryWrapper(new QueryWrapper<AdmPipe>(), projectId, buildingId, operator, admDownloadTs));
|
|
|
|
|
|
+ //管道数据,实验方案 暂时不需要
|
|
|
|
+// List<AdmPipe> pipes = pipeMapper.selectList(buildDownloadQueryWrapper(new QueryWrapper<AdmPipe>(), projectId, buildingId, operator, admDownloadTs));
|
|
|
|
|
|
- //任务相关数据查询
|
|
|
|
- List<AdmJobSpace> jobSpace = jobSpaceMapper.selectList(buildDownloadQueryWrapper(new QueryWrapper<AdmJobSpace>(), projectId, buildingId, operator, admDownloadTs));
|
|
|
|
|
|
+ //任务相关数据查询 细节待产品细化
|
|
|
|
+// List<AdmJobSpace> jobSpace = jobSpaceMapper.selectList(buildDownloadQueryWrapper(new QueryWrapper<AdmJobSpace>(), projectId, buildingId, operator, admDownloadTs));
|
|
|
|
|
|
- List<AdmFile> file = fileMapper.selectList(buildDownloadQueryWrapper(new QueryWrapper<AdmFile>(), projectId, buildingId, operator, admDownloadTs));
|
|
|
|
- List<AdmQrCode> qrCode = qrCodeMapper.selectList(buildDownloadQueryWrapper(new QueryWrapper<AdmQrCode>(), projectId, buildingId, operator, admDownloadTs));
|
|
|
|
- List<AdmServeArea> serveArea = serveAreaMapper.selectList(buildDownloadQueryWrapper(new QueryWrapper<AdmServeArea>(), projectId, buildingId, operator, admDownloadTs));
|
|
|
|
|
|
+ // 暂时涉及不到,不明白是干嘛的
|
|
|
|
+// List<AdmServeArea> serveArea = serveAreaMapper.selectList(buildDownloadQueryWrapper(new QueryWrapper<AdmServeArea>(), projectId, buildingId, operator, admDownloadTs));
|
|
|
|
|
|
BuildingData data = new BuildingData();
|
|
BuildingData data = new BuildingData();
|
|
data.setBuildingId(buildingId);
|
|
data.setBuildingId(buildingId);
|
|
- data.setObjects(objs);
|
|
|
|
- data.setPipes(pipes);
|
|
|
|
- data.setJobSpace(jobSpace);
|
|
|
|
- data.setFile(file);
|
|
|
|
- data.setQrCode(qrCode);
|
|
|
|
- data.setServeArea(serveArea);
|
|
|
|
|
|
+// data.setPipes(pipes);
|
|
|
|
+// data.setJobSpace(jobSpace);
|
|
|
|
+// data.setServeArea(serveArea);
|
|
fillBuildingDataChain.fill(admRequest,data);
|
|
fillBuildingDataChain.fill(admRequest,data);
|
|
data.buildDownloadTs();
|
|
data.buildDownloadTs();
|
|
|
|
|