REPLACE INTO tb_agent_token(appid, access_token, valid_time) VALUES(#{appId}, #{accessToken},#{now}) INSERT INTO tb_push_record(id, agent_name, agent_id, displace_id, menu_name, msg_type, receive_wxnc, receive_wxh, receive_name, receive_phone, push_time, push_status, refer_id, push_content, push_type) VALUES(#{id}, #{agentName}, #{agentId}, #{displaceId}, #{menuName}, #{msgType}, #{receiveWxnc}, #{receiveWxh}, #{receiveName}, #{receivePhone}, #{pushTime}, #{pushStatus}, #{referId}, #{pushContent}, #{pushType}) DELETE FROM tb_agent_token WHERE appid = #{appId}