| | |
| | | and userR.approval_status = #{dto.approvalStatus} |
| | | </if> |
| | | </select> |
| | | <select id="selectByDeviceId" resultType="cn.gistack.sm.sg.VO.SgStepReportVO"> |
| | | SELECT |
| | | step.id AS stepId, |
| | | step.gx_step_name AS stepName, |
| | | step.gx_step_num AS stepNum, |
| | | re.STATUS AS approvalStatus |
| | | FROM |
| | | ywxt.sg_gx_step step |
| | | LEFT JOIN ywxt.sg_gx gx ON step.gx_info_id = gx.id |
| | | LEFT JOIN ywxt.sg_device de ON gx.gx_type = de.device_type |
| | | LEFT JOIN ywxt.sg_progress_report re ON re.gx_step_id = step.id and re.gx_device_id = de.id |
| | | WHERE |
| | | 1 =1 and de.id = #{deviceId} |
| | | </select> |
| | | </mapper> |