CrawlerBaseMapper.xml 1.2 KB

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