| | |
| | | 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} |
| | | 1 =1 and re."STATUS" != 4 and de.id = #{deviceId} |
| | | </select> |
| | | <select id="statusCount" resultType="cn.gistack.sm.sg.VO.SgProgressReportVO"> |
| | | SELECT |
| | |
| | | </if> |
| | | </select> |
| | | <select id="getUserByIds" resultType="java.util.Map"> |
| | | select id ,real_name from ywxt.blade_user where 1 = 1 |
| | | select u.id ,u.real_name ,d.full_name as deptName from ywxt.blade_user u inner join ywxt.blade_dept d on u.dept_id = d.id where 1 = 1 |
| | | <if test="ids != null and ids.size>0"> |
| | | AND id in |
| | | AND u.id in |
| | | <foreach collection="ids" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |