select d.id, d.year, d.start_month, d.end_month, d.rc_code, d.subject, d.work_content, d.responsible_person, d.frequency, d.standard, d.finish_status, d.q1_jan, d.q1_feb, d.q1_mar, d.q2_apr, d.q2_may, d.q2_jun, d.q3_jul, d.q3_aug, d.q3_sep, d.q4_oct, d.q4_nov, d.q4_dec, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks ,s.dept_name from t_eoeg_daily_management d left join sys_dept s on s.dept_id = d.dept_id SELECT seq_t_eoeg_daily_management.NEXTVAL as id FROM DUAL insert into t_eoeg_daily_management id, year, start_month, end_month, rc_code, subject, work_content, responsible_person, frequency, standard, finish_status, q1_jan, q1_feb, q1_mar, q2_apr, q2_may, q2_jun, q3_jul, q3_aug, q3_sep, q4_oct, q4_nov, q4_dec, del_flag, creater_code, createdate, updater_code, updatedate, dept_id, remarks, #{id}, #{year}, #{startMonth}, #{endMonth}, #{rcCode}, #{subject}, #{workContent}, #{responsiblePerson}, #{frequency}, #{standard}, #{finishStatus}, #{q1Jan}, #{q1Feb}, #{q1Mar}, #{q2Apr}, #{q2May}, #{q2Jun}, #{q3Jul}, #{q3Aug}, #{q3Sep}, #{q4Oct}, #{q4Nov}, #{q4Dec}, #{delFlag}, #{createrCode}, #{createdate}, #{updaterCode}, #{updatedate}, #{deptId}, #{remarks}, update t_eoeg_daily_management year = #{year}, start_month = #{startMonth}, end_month = #{endMonth}, rc_code = #{rcCode}, subject = #{subject}, work_content = #{workContent}, responsible_person = #{responsiblePerson}, frequency = #{frequency}, standard = #{standard}, finish_status = #{finishStatus}, q1_jan = #{q1Jan}, q1_feb = #{q1Feb}, q1_mar = #{q1Mar}, q2_apr = #{q2Apr}, q2_may = #{q2May}, q2_jun = #{q2Jun}, q3_jul = #{q3Jul}, q3_aug = #{q3Aug}, q3_sep = #{q3Sep}, q4_oct = #{q4Oct}, q4_nov = #{q4Nov}, q4_dec = #{q4Dec}, del_flag = #{delFlag}, creater_code = #{createrCode}, createdate = #{createdate}, updater_code = #{updaterCode}, updatedate = #{updatedate}, dept_id = #{deptId}, remarks = #{remarks}, where id = #{id} update t_eoeg_daily_management set del_flag = 2 where id = #{id} update t_eoeg_daily_management set del_flag = 2 where id in #{id}