| | |
| | | left join YWXT."BLADE_DICT_BIZ" as dict on de.device_type=dict.DICT_KEY and dict.CODE='SG_DEVICE_TYPE' |
| | | where 1=1 |
| | | <if test="dto.projectName != null and dto.projectName != ''"> |
| | | and report.PROGRAM_NAME like CONCAT(CONCAT('%',#{dto.projectName},'%')) |
| | | and report.PROGRAM_NAME like CONCAT(CONCAT('%',#{dto.projectName}),'%') |
| | | </if> |
| | | <if test="dto.deviceName != null and dto.deviceName != ''"> |
| | | and de.device_name like CONCAT(CONCAT('%', #{dto.deviceName}), '%') |
| | | </if> |
| | | <if test="dto.status != null "> |
| | | and report.status = #{dto.status} |
| | | </if> |
| | | </select> |
| | | <select id="queryById" resultType="cn.gistack.sm.sg.VO.SgProgressReportVO"> |
| | |
| | | left join YWXT."BLADE_DICT_BIZ" as dict on de.device_type=dict.DICT_KEY and dict.CODE='SG_DEVICE_TYPE' |
| | | where 1=1 |
| | | <if test="dto.projectName != null and dto.projectName != ''"> |
| | | and report.PROGRAM_NAME like CONCAT(CONCAT('%',#{dto.projectName},'%')) |
| | | and report.PROGRAM_NAME like CONCAT(CONCAT('%',#{dto.projectName}),'%') |
| | | </if> |
| | | <if test="dto.deviceName != null and dto.deviceName != ''"> |
| | | and de.device_name like CONCAT(CONCAT('%', #{dto.deviceName}), '%') |