| | |
| | | report.*, |
| | | de.device_name, |
| | | de.device_type, |
| | | dict."DICT_VALUE" as typeName |
| | | dict."DICT_VALUE" as typeName, si.control_unit,si.self_unit,dria."county_cd" |
| | | FROM |
| | | ywxt.SG_PROGRESS_REPORT report |
| | | LEFT JOIN ywxt.SG_PROJECT_INFO si ON report.profram_id = si.id |
| | | LEFT JOIN SJZT_DW."dim_res_info_a" dria ON dria."res_cd" = si.sk_id |
| | | LEFT JOIN ywxt.sg_device de ON report.gx_device_id = de.id |
| | | left join YWXT."BLADE_DICT_BIZ" as dict on de.device_type=dict.DICT_KEY and dict.CODE='SG_DEVICE_TYPE' |
| | | where 1=1 and report."STATUS" != 4 |
| | |
| | | de.device_type, |
| | | <!-- userR.approval_status, --> |
| | | dict."DICT_VALUE" as typeName, |
| | | si. |
| | | si.control_unit,si.self_unit,dria."county_cd" |
| | | FROM |
| | | ywxt.SG_PROGRESS_REPORT report |
| | | LEFT JOIN ywxt.SG_PROJECT_INFO si ON report.profram_id = si.id |
| | | LEFT JOIN SJZT_DW."dim_res_info_a" dria ON dria."res_cd" = si.sk_id |
| | | LEFT JOIN ywxt.sg_device de ON report.gx_device_id = de.id |
| | | left join YWXT."BLADE_DICT_BIZ" as dict on de.device_type=dict.DICT_KEY and dict.CODE='SG_DEVICE_TYPE' |
| | | LEFT JOIN ywxt.sg_report_user userR ON report.id = userR.report_id |