INSERT INTO BindInfo ( openId, uid, userType, created, status , areaid , cellphone ,type ) Values ( #{openId}, #{uid}, #{userType},current_timestamp, #{status} , #{areaid} , #{cellphone} ,#{type} ) UPDATE BindInfo SET uid = #{uid}, created = #{created}, status = #{status} , areaid = #{areaid} , cellphone = #{cellphone} where openId=#{openId} and userType=#{userType} and type= #{type} update bindinfo set status=0 where openId = #{openId} and userType = #{userType} and type = #{type}