<selectid="detail"parameterType="long"resultType="com.subsidy.vo.member.DetailVO"> SELECT t.id, t2.project_name, t.job_name, ifnull( t.delete_date, t.create_date ) AS hireTime FROM project_member_mapping t LEFT JOIN project t2 ON t.project_id = t2.id WHERE t2.delete_date IS NULL AND t.member_id = #{memberId} ORDER BY ifnull( t.delete_date, t.create_date ) DESC</select>