select id, task_name, business_type, create_date from ams_hexdefine_header insert into ams_hexdefine_header task_name, business_type, create_date, #{taskName}, #{businessType}, #{createDate}, update ams_hexdefine_header task_name = #{taskName}, business_type = #{businessType}, create_date = #{createDate}, where id = #{id} delete from ams_hexdefine_header where id = #{id} delete from ams_hexdefine_header where id in #{id} delete from ams_hexdefine_detail where business_type in #{businessType} delete from ams_hexdefine_detail where business_type = #{businessType} insert into ams_hexdefine_detail( id, business_type, col_name, col_type, bind_table, col_val, val_type, sort_index) values ( #{item.id}, #{item.businessType}, #{item.colName}, #{item.colType}, #{item.bindTable}, #{item.colVal}, #{item.valType}, #{item.sortIndex})