mdf:大屏任务查询sql修改

This commit is contained in:
zhangzhiqiang
2022-11-23 18:02:52 +08:00
parent 656161160b
commit e300e9a9f3

View File

@@ -361,8 +361,8 @@
END END
) AS fault_level, ) AS fault_level,
mst.update_optname AS user_name, mst.update_optname AS user_name,
mst.fault_desc AS fault_desc, st.fault_desc AS fault_desc,
mst.invstatus AS status st.status AS status
FROM FROM
EM_BI_DeviceRepairRequest st EM_BI_DeviceRepairRequest st
LEFT JOIN EM_BI_EquipmentFile file ON st.devicerecord_id = file.devicerecord_id LEFT JOIN EM_BI_EquipmentFile file ON st.devicerecord_id = file.devicerecord_id
@@ -372,7 +372,7 @@
WHERE WHERE
st.is_delete = '0' st.is_delete = '0'
AND (st.status <> '99') AND (st.status <> '99')
AND mst.invstatus not in ('06','07','99') AND (mst.invstatus not in ('06','07','99') or isnull(mst.invstatus))
UNION UNION