insert into tb_user_pro(user_id ,bid_cod ,del_flag,times) values(#{userId}, #{bidCode},0, now()) UPDATE tb_user_pro SET del_flag=1 where user_id=#{userId} and bid_cod=#{bidCode}