| | |
| | | <select id="queryPageList" resultType="cn.gistack.sm.sg.DO.SgProjectInfoDO"> |
| | | select * from YWXT.SG_PROJECT_INFO info where 1=1 |
| | | <if test="dto.projectName != null and dto.projectName != ''"> |
| | | and info.project_name = #{dto.projectName} |
| | | and info.project_name like concat( concat ('%',#{dto.projectName}),'%') |
| | | </if> |
| | | <if test="dto.skName != null and dto.skName != ''"> |
| | | and info.sk_name = #{dto.skName} |
| | | and info.sk_name like concat(concat('%',#{dto.skName}),'%') |
| | | </if> |
| | | </select> |
| | | <select id="queryStepByProject" resultType="cn.gistack.sm.sg.VO.SgProjectInfoVO"> |
| | |
| | | d.id as dId, |
| | | step.gx_step_name, |
| | | step.gx_step_num, |
| | | re.STATUS |
| | | re.STATUS as reportStatus, |
| | | d.STATUS as deviceStatus, |
| | | pro.STATUS as projectStatus, |
| | | re.id as reportId |
| | | FROM |
| | | ywxt.sg_project_info pro |
| | | LEFT JOIN ywxt.sg_device d ON pro.id = d.program_id |
| | |
| | | de.STATUS as deviceStatus |
| | | FROM |
| | | ywxt.sg_project_info pro |
| | | LEFT JOIN ywxt.sg_device de ON pro.id = de.program_id |
| | | 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> |
| | | <if test="dto.projectName != null and dto.projectName != ''"> |
| | | and pro.project_name like CONCAT(CONCAT('%',#{dto.projectName}),'%') |
| | | </if> |
| | | </select> |
| | | </mapper> |