select a.id, a.stu_no, a.stu_time, a.fdy_time, a.xsj_time, a.dept_time, a.stu_year_id, a.term, b.stu_name, b.dept_name, c.stu_year_name from srs_zxj_time as a left join view_stu_info as b on a.stu_no = b.stu_no left join srs_stu_year as c on a.stu_year_id = c.id insert into srs_zxj_time stu_no, stu_time, fdy_time, xsj_time, dept_time, stu_year_id, term, #{stuNo}, #{stuTime}, #{fdyTime}, #{xsjTime}, #{deptTime}, #{stuYearId}, #{term}, update srs_zxj_time stu_no = #{stuNo}, stu_time = #{stuTime}, fdy_time = #{fdyTime}, xsj_time = #{xsjTime}, dept_time = #{deptTime}, stu_year_id = #{stuYearId}, term = #{term}, where id = #{id} delete from srs_zxj_time where id = #{id} delete from srs_zxj_time where id in #{id}