| | |
| | | de.device_name, |
| | | de.device_type, |
| | | <!-- userR.approval_status, --> |
| | | dict."DICT_VALUE" as typeName |
| | | dict."DICT_VALUE" as typeName, |
| | | si. |
| | | FROM |
| | | ywxt.SG_PROGRESS_REPORT report |
| | | LEFT JOIN ywxt.SG_PROJECT_INFO si ON report.profram_id = si.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 |
| | | WHERE |
| | | 1 = 1 and report."STATUS" != 4 |
| | | 1 = 1 and report."STATUS" != 4 and si.CONTROL_UNIT=#{dto.userUnit} and userR.roleId=#{dto.roleUnit} |
| | | <!-- AND userR.is_his = 0 --> |
| | | <if test="dto.projectName != null and dto.projectName != ''"> |
| | | and report.PROGRAM_NAME like CONCAT(CONCAT('%',#{dto.projectName}),'%') |