Files
xj-platform/db/updatesql/20260515.sql
T
2026-06-03 10:27:39 +08:00

13 lines
423 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 手表用户绑定数据视图
-- 关联 QH_WAT_DEVICE QH_SYS_USER查询已绑定用户的手表设备信息
CREATE OR REPLACE VIEW V_WATCH_USER_BIND AS
SELECT
u.WORK_NO AS employee_num,
d.WATCH_NO AS watch_no,
u.REALNAME AS real_name,
d.BIND_DATE AS bind_date
FROM QH_WAT_DEVICE d
INNER JOIN QH_SYS_USER u ON d.BIND_USER_ID = u.ID
WHERE d.BIND_USER_ID IS NOT NULL
AND d.BIND_USER_ID <> '';