| | |
| | | sc.id = #{id} |
| | | </where> |
| | | </select> |
| | | <select id="getTodoList" resultType="com.panzhihua.sangeshenbian.model.vo.ComplaintTodoVO"> |
| | | SELECT sc.id, |
| | | sc.description_title, |
| | | sc.closing_time, |
| | | su.image_url |
| | | FROM sgsb_complaint sc |
| | | LEFT JOIN sys_user su ON su.user_id = sc.create_by |
| | | <where> |
| | | sc.status = 0 |
| | | <if test="isSuperior == 1 and targetId != null"> |
| | | AND sc.superior_id = #{targetId} |
| | | </if> |
| | | <if test="isSuperior == 0 and targetId != null"> |
| | | AND sc.create_by = #{targetId} |
| | | </if> |
| | | </where> |
| | | ORDER BY sc.create_time DESC |
| | | </select> |
| | | </mapper> |