select d.id, d.location_name, d.sample_point, d.sample_date, d.sample_name, d.cod, d.ph, d.dept_id, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time ,s.dept_name from t_monthly_quality_report_s6107 d
left join sys_dept s on s.dept_id = d.dept_id
SELECT seq_t_quality_report_s6107.NEXTVAL as id FROM DUAL
insert into t_monthly_quality_report_s6107
id,location_name,sample_point,sample_date,sample_name,cod,ph,dept_id,del_flag,create_by,create_time,update_by,update_time,#{id},#{locationName},#{samplePoint},#{sampleDate},#{sampleName},#{cod},#{ph},#{deptId},#{delFlag},#{createBy},#{createTime},#{updateBy},#{updateTime},
update t_monthly_quality_report_s6107
location_name = #{locationName},sample_point = #{samplePoint},sample_date = #{sampleDate},sample_name = #{sampleName},cod = #{cod},ph = #{ph},dept_id = #{deptId},del_flag = #{delFlag},create_by = #{createBy},create_time = #{createTime},update_by = #{updateBy},update_time = #{updateTime},
where id = #{id}
update t_monthly_quality_report_s6107 set del_flag = 2 where id = #{id}
update t_monthly_quality_report_s6107 set del_flag = 2 where id in
#{id}