BI查询YMS月台管理列表查询开发接口
This commit is contained in:
+4
@@ -6,6 +6,7 @@ import com.mhd.bi.domain.biPlatformRealData.repository.po.RealVehicleStatusPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealTaskLoadPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealBusinessTypeStatPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealPlatformFloorStatPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealPlatformInfoPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -39,4 +40,7 @@ public interface BiPlatformRealDataMapper {
|
||||
|
||||
/** 月台监控-按楼层统计月台车辆(楼层、月台数量、今日预约车辆、当前作业车辆) */
|
||||
List<RealPlatformFloorStatPO> queryPlatformFloorStats();
|
||||
|
||||
/** 月台管理列表(YMS qms_window_info,含机构/鹤位/状态/楼层/UUID 等完整信息) */
|
||||
List<RealPlatformInfoPO> queryPlatformInfoList();
|
||||
}
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
package com.mhd.bi.domain.biPlatformRealData.repository.po;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 月台管理列表(真实数据,来自 TEST_NGWL_YMS.QMS_WINDOW_INFO)
|
||||
* 对应 YMS qms_window_info 月台/鹤位窗口表
|
||||
*/
|
||||
@Data
|
||||
public class RealPlatformInfoPO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 机构代码(org_no) */
|
||||
private String orgNo;
|
||||
|
||||
/** 机构名称(dept_name) */
|
||||
private String deptName;
|
||||
|
||||
/** 鹤位号/月台号(window_number) */
|
||||
private String windowNumber;
|
||||
|
||||
/** 鹤位名称/月台名称(window_name) */
|
||||
private String windowName;
|
||||
|
||||
/** 优先级别(priority_set) */
|
||||
private String prioritySet;
|
||||
|
||||
/** 鹤位状态/月台状态(running_status) */
|
||||
private String runningStatus;
|
||||
|
||||
/** uuid */
|
||||
private String uuid;
|
||||
|
||||
/** 鹤位屏名字集合/绑定月台屏(berr_names) */
|
||||
private String berrNames;
|
||||
|
||||
/** 最新业务状态(new_flow_status) */
|
||||
private String newFlowStatus;
|
||||
|
||||
/** 月台图片(guide_images) */
|
||||
private String guideImages;
|
||||
|
||||
/** 月台楼层(platform_floor) */
|
||||
private String platformFloor;
|
||||
|
||||
/** 作业状态 0-空闲 1-占用(job_status) */
|
||||
private Integer jobStatus;
|
||||
|
||||
/** 创建者(create_by_name) */
|
||||
private String createByName;
|
||||
|
||||
/** 创建时间 */
|
||||
private String createTime;
|
||||
}
|
||||
+13
@@ -8,6 +8,7 @@ import com.mhd.bi.domain.biPlatformRealData.repository.po.RealVehicleStatusPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealTaskLoadPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealBusinessTypeStatPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealPlatformFloorStatPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealPlatformInfoPO;
|
||||
import com.mhd.bi.domain.biPlatformSurveillance.repository.mapper.BiPlatformSurveillanceReportMapper;
|
||||
import com.mhd.bi.domain.biSnapshotSync.repository.mapper.BiSnapshotWriteMapper;
|
||||
import com.mhd.bi.domain.biSnapshotSync.support.BiSnapshotWeeklyRandomDataBuilder;
|
||||
@@ -230,6 +231,18 @@ public class BiPlatformRealDataService {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 月台管理列表:实时查 YMS qms_window_info,返回月台/鹤位窗口完整信息,不落库。
|
||||
*/
|
||||
public List<RealPlatformInfoPO> queryPlatformInfoList() {
|
||||
try {
|
||||
return biPlatformRealDataMapper.queryPlatformInfoList();
|
||||
} catch (Exception e) {
|
||||
log.error("【YMS】查询月台管理列表失败: {}", e.getMessage(), e);
|
||||
return java.util.Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 实时组装月台监测数据:原则「有真实数据源用真实,无真实数据源用写死模拟」。
|
||||
* 有真实数据源的字段(vehicles / platformOverview / vehicleStatus / taskLoad / taskTotal)
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.mhd.bi.domain.biPlatformSurveillance.service.BiPlatformSurveillanceRe
|
||||
import com.mhd.bi.domain.biPlatformRealData.service.BiPlatformRealDataService;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealBusinessTypeStatPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealPlatformFloorStatPO;
|
||||
import com.mhd.bi.domain.biPlatformRealData.repository.po.RealPlatformInfoPO;
|
||||
import com.mhd.bi.domain.biOverallOperation.service.BiOverallOperationReportService;
|
||||
import com.mhd.bi.domain.biHkMacaoServiceZone.service.BiHkMacaoServiceZoneReportService;
|
||||
import com.mhd.bi.domain.biTransportOperationZone.service.BiTransportOperationZoneReportService;
|
||||
@@ -128,6 +129,16 @@ public class BiReportApi extends BaseController {
|
||||
List<RealPlatformFloorStatPO> data = biPlatformRealDataService.queryPlatformFloorStats();
|
||||
return BiApiResult.ok(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 月台管理列表(实时查 YMS qms_window_info,不落库)
|
||||
*/
|
||||
@ApiOperation(value = "月台管理列表", notes = "实时查询 YMS 库 qms_window_info,返回月台/鹤位窗口列表(机构、月台号、月台名称、楼层、绑定屏、UUID、状态等),不落库")
|
||||
@GetMapping("/platformInfoList")
|
||||
public BiApiResult<List<RealPlatformInfoPO>> platformInfoList() {
|
||||
List<RealPlatformInfoPO> data = biPlatformRealDataService.queryPlatformInfoList();
|
||||
return BiApiResult.ok(data);
|
||||
}
|
||||
//园区物流大屏接口----------------------------------------------------------------------
|
||||
/**
|
||||
* 总体运营态势
|
||||
|
||||
@@ -113,4 +113,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
GROUP BY EXTRACT(HOUR FROM ENTRY_TIME)
|
||||
ORDER BY EXTRACT(HOUR FROM ENTRY_TIME)
|
||||
</select>
|
||||
|
||||
<!-- 月台管理列表:查询 YMS qms_window_info 月台/鹤位窗口完整信息
|
||||
字段映射按 YMS 实体:id/orgNo/orgNo/orgNo... -->
|
||||
<select id="queryPlatformInfoList" resultType="com.mhd.bi.domain.biPlatformRealData.repository.po.RealPlatformInfoPO">
|
||||
SELECT
|
||||
w.ID AS id,
|
||||
w.ORG_NO AS orgNo,
|
||||
w.DEPT_NAME AS deptName,
|
||||
w.WINDOW_NUMBER AS windowNumber,
|
||||
w.WINDOW_NAME AS windowName,
|
||||
w.PRIORITY_SET AS prioritySet,
|
||||
w.RUNNING_STATUS AS runningStatus,
|
||||
w.UUID AS uuid,
|
||||
w.BERR_NAMES AS berrNames,
|
||||
w.NEW_FLOW_STATUS AS newFlowStatus,
|
||||
w.GUIDE_IMAGES AS guideImages,
|
||||
w.PLATFORM_FLOOR AS platformFloor,
|
||||
w.JOB_STATUS AS jobStatus,
|
||||
w.CREATE_BY_NAME AS createByName,
|
||||
TO_CHAR(w.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') AS createTime
|
||||
FROM NGWL_TEST_YMS.QMS_WINDOW_INFO w
|
||||
ORDER BY w.PLATFORM_FLOOR, w.WINDOW_NUMBER
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user