select id, non_coal_pay_id, category_id, category_type, category_amount, update_by, update_time, create_by, create_time, del_flag from non_coal_pay_category insert into non_coal_pay_category id, non_coal_pay_id, category_id, category_type, category_amount, update_by, update_time, create_by, create_time, del_flag, #{id}, #{nonCoalPayId}, #{categoryId}, #{categoryType}, #{categoryAmount}, #{updateBy}, #{updateTime}, #{createBy}, #{createTime}, #{delFlag}, update non_coal_pay_category non_coal_pay_id = #{nonCoalPayId}, category_id = #{categoryId}, category_type = #{categoryType}, category_amount = #{categoryAmount}, update_by = #{updateBy}, update_time = #{updateTime}, create_by = #{createBy}, create_time = #{createTime}, del_flag = #{delFlag}, where id = #{id} update non_coal_pay_category set del_flag = 2 where non_coal_pay_id = #{id} delete from non_coal_pay_category where id in #{id}