select d.id, d.MENTOR_ID, d.overall_comment ,s.dept_name from t_st_feedback_m d left join sys_dept s on s.dept_id = d.dept_id insert into t_st_feedback_m id, monthly_feedback_id, overall_comment, #{id}, #{monthlyFeedbackId}, #{overallComment}, update t_st_feedback_m monthly_feedback_id = #{monthlyFeedbackId}, overall_comment = #{overallComment}, where id = #{id} update t_st_feedback_m set del_flag = 2 where id = #{id} update t_st_feedback_m set del_flag = 2 where id in #{id}