| | |
| | | <if test="dto.projectName != null and dto.projectName != ''"> |
| | | and pro.project_name like CONCAT(CONCAT('%', #{dto.projectName}), '%') |
| | | </if> |
| | | <if test="dto.status != null"> |
| | | and pro.status = #{dto.status} |
| | | </if> |
| | | </select> |
| | | <select id="progressList" resultType="cn.gistack.sm.sg.VO.SgProjectInfoVO"> |
| | | SELECT |
| | | pro.id, |
| | | pro.project_name, |
| | | de.STATUS as deviceStatus |
| | | pro.project_name |
| | | FROM |
| | | ywxt.sg_project_info pro |
| | | LEFT JOIN ywxt.sg_device de ON pro.id = de.program_id where 1=1 |
| | | <if test="dto.status != null"> |
| | | and pro.status = #{dto.status} |
| | | </if> |