select id, hotel_homestay_id, dept_id, type, name, price, status, create_by, create_time, update_by, update_time, remark from zdy_hotel_homestay_consumer_item ci insert into zdy_hotel_homestay_consumer_item hotel_homestay_id, dept_id, type, name, price, status, create_by, create_time, update_by, update_time, remark, del_flag, #{hotelHomestayId}, #{deptId}, #{type}, #{name}, #{price}, #{status}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{delFlag}, update zdy_hotel_homestay_consumer_item hotel_homestay_id = #{hotelHomestayId}, dept_id = #{deptId}, type = #{type}, name = #{name}, price = #{price}, status = #{status}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, del_flag = #{delFlag}, where id = #{id} delete from zdy_hotel_homestay_consumer_item where id = #{id} update zdy_hotel_homestay_consumer_item set del_flag = '1' where id in #{id}