select id, box_code, workform_code, max_num, curr_num, space1, space2 from box_workform_head
insert into box_workform_head
box_code,workform_code,max_num, curr_numspace1,space2,#{boxCode},#{workformCode},#{maxNum},#{currNum}#{space1},#{space2},
update box_workform_head
box_code = #{boxCode},workform_code = #{workformCode},max_num = #{maxNum},curr_num = #{currNum},space1 = #{space1},space2 = #{space2},
where id = #{id}
delete from box_workform_head where id = #{id}
delete from box_workform_head where id in
#{id}