select wst_id, wst_name, ss_code, pg_code, sn_id, ct_code, pm_code, wst_note, tms_id, created_by, created_at, updated_by, updated_at from prc_weight_section_template insert into prc_weight_section_template ( wst_name, ss_code, pg_code, sn_id, ct_code, pm_code, wst_note, tms_id, created_by, created_at ) values ( #{wstName}, #{ssCode}, #{pgCode}, #{snId}, #{ctCode}, #{pmCode}, #{wstNote}, #{tmsId}, #{createBy}, sysdate() ) update prc_weight_section_template wst_name = #{wstName}, ss_code = #{ssCode}, pg_code = #{pgCode}, sn_id = #{snId}, ct_code = #{ctCode}, pm_code = #{pmCode}, wst_note = #{wstNote}, tms_id = #{tmsId}, updated_by = #{updateBy}, updated_at = sysdate() where wst_id = #{wstId} delete from prc_weight_section_template where wst_id in #{wstId}