BI查询YMS月台管理列表查询开发接口
This commit is contained in:
+3
-3
@@ -51,9 +51,9 @@ public class RealPlatformInfoPO implements Serializable {
|
|||||||
/** 作业状态 0-空闲 1-占用(job_status) */
|
/** 作业状态 0-空闲 1-占用(job_status) */
|
||||||
private Integer jobStatus;
|
private Integer jobStatus;
|
||||||
|
|
||||||
/** 创建者(create_by_name) */
|
/** 创建人(create_by) */
|
||||||
private String createByName;
|
private String createBy;
|
||||||
|
|
||||||
/** 创建时间 */
|
/** 创建时间(create_time) */
|
||||||
private String createTime;
|
private String createTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,26 +114,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
ORDER BY EXTRACT(HOUR FROM ENTRY_TIME)
|
ORDER BY EXTRACT(HOUR FROM ENTRY_TIME)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 月台管理列表:查询 YMS qms_window_info 月台/鹤位窗口完整信息
|
<!-- 月台管理列表:查询 YMS qms_window_info 月台/鹤位窗口
|
||||||
字段映射按 YMS 实体:id/orgNo/orgNo/orgNo... -->
|
机构名称 deptName <- sys_dept.DEPT_NAME(d.dept_id = a.ORG_NO 关联)
|
||||||
|
鹤位屏名称 berrNames <- 子查询 qms_window_berr + qms_berr_config 拼接
|
||||||
|
其余列来自 qms_window_info 本身
|
||||||
|
注:berrNames 子查询的关联键(berrId/windowId)按常见命名推断,若实际不同请调整 -->
|
||||||
<select id="queryPlatformInfoList" resultType="com.mhd.bi.domain.biPlatformRealData.repository.po.RealPlatformInfoPO">
|
<select id="queryPlatformInfoList" resultType="com.mhd.bi.domain.biPlatformRealData.repository.po.RealPlatformInfoPO">
|
||||||
SELECT
|
SELECT
|
||||||
w.ID AS id,
|
a.ID AS id,
|
||||||
w.ORG_NO AS orgNo,
|
a.ORG_NO AS orgNo,
|
||||||
w.DEPT_NAME AS deptName,
|
d.DEPT_NAME AS deptName,
|
||||||
w.WINDOW_NUMBER AS windowNumber,
|
a.WINDOW_NUMBER AS windowNumber,
|
||||||
w.WINDOW_NAME AS windowName,
|
a.WINDOW_NAME AS windowName,
|
||||||
w.PRIORITY_SET AS prioritySet,
|
a.PRIORITY_SET AS prioritySet,
|
||||||
w.RUNNING_STATUS AS runningStatus,
|
a.RUNNING_STATUS AS runningStatus,
|
||||||
w.UUID AS uuid,
|
a.CREATE_BY AS createBy,
|
||||||
w.BERR_NAMES AS berrNames,
|
TO_CHAR(a.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') AS createTime,
|
||||||
w.NEW_FLOW_STATUS AS newFlowStatus,
|
a.UUID AS uuid,
|
||||||
w.GUIDE_IMAGES AS guideImages,
|
a.GUIDE_IMAGES AS guideImages,
|
||||||
w.PLATFORM_FLOOR AS platformFloor,
|
a.PLATFORM_FLOOR AS platformFloor,
|
||||||
w.JOB_STATUS AS jobStatus,
|
a.JOB_STATUS AS jobStatus,
|
||||||
w.CREATE_BY_NAME AS createByName,
|
(
|
||||||
TO_CHAR(w.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') AS createTime
|
SELECT WM_CONCAT(qbc.BERR_NAME)
|
||||||
FROM NGWL_TEST_YMS.QMS_WINDOW_INFO w
|
FROM NGWL_TEST_YMS.QMS_WINDOW_BERR qwb
|
||||||
ORDER BY w.PLATFORM_FLOOR, w.WINDOW_NUMBER
|
LEFT JOIN NGWL_TEST_YMS.QMS_BERR_CONFIG qbc ON qbc.BERR_ID = qwb.BERR_ID
|
||||||
|
WHERE qwb.WINDOW_ID = a.ID
|
||||||
|
) AS berrNames
|
||||||
|
FROM NGWL_TEST_YMS.QMS_WINDOW_INFO a
|
||||||
|
LEFT JOIN NGWL_TEST_YMS.SYS_DEPT d ON d.DEPT_ID = a.ORG_NO
|
||||||
|
ORDER BY a.PLATFORM_FLOOR, a.WINDOW_NUMBER
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user