select id, slaughter_time, distribute_batch_id, entrance_batch_id, sale_place, meat_cert, animal_cert, create_time, create_by, update_time, update_by, del_flag from slaughter_batch insert into slaughter_batch slaughter_time, distribute_batch_id, entrance_batch_id, sale_place, meat_cert, animal_cert, create_time, create_by, del_flag #{slaughterTime}, #{distributeBatchId}, #{entranceBatchId}, #{salePlace}, #{meatCert}, #{animalCert}, #{createTime}, #{createBy}, '0' update slaughter_batch slaughter_time = #{slaughterTime}, distribute_batch_id = #{distributeBatchId}, entrance_batch_id = #{entranceBatchId}, sale_place = #{salePlace}, meat_cert = #{meatCert}, animal_cert = #{animalCert}, update_time = #{updateTime}, update_by = #{updateBy}, where id = #{id} update slaughter_batch set del_flag = '2' where id = #{id} update slaughter_batch set del_flag = '2' where distribute_batch_id = #{id} update slaughter_batch set del_flag = '2' where id in #{id} update slaughter_batch set del_flag = '2' where distribute_batch_id in #{id}