1234567891011121314151617181920212223 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.tzld.longarticle.recommend.server.mapper.crawler.CrawlerBaseMapper">
- <insert id="batchInsertAccountCorrelation">
- INSERT INTO account_correlation (date_str, gh_id, account_name, rel_gh_id, rel_account_name, status, correlation)
- VALUES
- <foreach collection="list" item="item" separator=",">
- (#{item.dateStr}, #{item.ghId}, #{item.accountName}, #{item.relGhId}, #{item.relAccountName}, #{item.status}, #{item.correlation})
- </foreach>
- </insert>
- <insert id="batchInsertLongArticlesRootSourceId">
- INSERT INTO long_articles_root_source_id (rootSourceId, accountName, ghId, articleTitle, requestTime, trace_id,
- push_type, video_id)
- VALUES
- <foreach collection="list" item="item" separator=",">
- (#{item.rootSourceId}, #{item.accountName}, #{item.ghId}, #{item.articleTitle}, #{item.requestTime},
- #{item.traceId}, #{item.pushType}, #{item.videoId})
- </foreach>
- </insert>
- </mapper>
|