select id, customerCode, type, code, name, batch,batchName, userSnapshot,detail, createTime, status,obsoleted from b_busi_wish_records insert into b_busi_wish_records customerCode, type, code, name, batch, batchName, userSnapshot, detail, createTime, status, obsoleted, #{customerCode}, #{type}, #{code}, #{name}, #{batch}, #{batchName}, #{userSnapshot}, #{detail}, #{createTime}, #{status}, #{obsoleted}, update b_busi_wish_records customerCode = #{customerCode}, type = #{type}, code = #{code}, name = #{name}, batch = #{batch}, batchName = #{batchName}, userSnapshot = #{userSnapshot}, detail = #{detail}, createTime = #{createTime}, status = #{status}, obsoleted = #{obsoleted}, where id = #{id} update b_busi_wish_records wr set wr.obsoleted = true where wr.customerCode = #{userId} delete from b_busi_wish_records where id = #{id} delete from b_busi_wish_records where id in #{id}