CrawlerVideoMapper.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  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.piaoquan.longarticle.dao.mapper.longarticle.CrawlerVideoMapper">
  4. <resultMap id="BaseResultMap" type="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideo">
  5. <id column="id" jdbcType="INTEGER" property="id" />
  6. <result column="content_id" jdbcType="VARCHAR" property="contentId" />
  7. <result column="out_video_id" jdbcType="VARCHAR" property="outVideoId" />
  8. <result column="platform" jdbcType="VARCHAR" property="platform" />
  9. <result column="video_title" jdbcType="VARCHAR" property="videoTitle" />
  10. <result column="play_count" jdbcType="INTEGER" property="playCount" />
  11. <result column="like_count" jdbcType="INTEGER" property="likeCount" />
  12. <result column="share_count" jdbcType="INTEGER" property="shareCount" />
  13. <result column="publish_time" jdbcType="TIMESTAMP" property="publishTime" />
  14. <result column="crawler_time" jdbcType="TIMESTAMP" property="crawlerTime" />
  15. <result column="duration" jdbcType="INTEGER" property="duration" />
  16. <result column="download_status" jdbcType="INTEGER" property="downloadStatus" />
  17. <result column="video_oss_path" jdbcType="VARCHAR" property="videoOssPath" />
  18. <result column="cover_oss_path" jdbcType="VARCHAR" property="coverOssPath" />
  19. <result column="user_id" jdbcType="VARCHAR" property="userId" />
  20. <result column="trace_id" jdbcType="VARCHAR" property="traceId" />
  21. <result column="score" jdbcType="REAL" property="score" />
  22. <result column="is_illegal" jdbcType="INTEGER" property="isIllegal" />
  23. <result column="status" jdbcType="INTEGER" property="status" />
  24. <result column="audit_account" jdbcType="VARCHAR" property="auditAccount" />
  25. <result column="audit_timestamp" jdbcType="BIGINT" property="auditTimestamp" />
  26. <result column="score_version" jdbcType="TINYINT" property="scoreVersion" />
  27. </resultMap>
  28. <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideo">
  29. <result column="video_url" jdbcType="LONGVARCHAR" property="videoUrl" />
  30. <result column="cover_url" jdbcType="LONGVARCHAR" property="coverUrl" />
  31. </resultMap>
  32. <sql id="Example_Where_Clause">
  33. <where>
  34. <foreach collection="oredCriteria" item="criteria" separator="or">
  35. <if test="criteria.valid">
  36. <trim prefix="(" prefixOverrides="and" suffix=")">
  37. <foreach collection="criteria.criteria" item="criterion">
  38. <choose>
  39. <when test="criterion.noValue">
  40. and ${criterion.condition}
  41. </when>
  42. <when test="criterion.singleValue">
  43. and ${criterion.condition} #{criterion.value}
  44. </when>
  45. <when test="criterion.betweenValue">
  46. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  47. </when>
  48. <when test="criterion.listValue">
  49. and ${criterion.condition}
  50. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  51. #{listItem}
  52. </foreach>
  53. </when>
  54. </choose>
  55. </foreach>
  56. </trim>
  57. </if>
  58. </foreach>
  59. </where>
  60. </sql>
  61. <sql id="Update_By_Example_Where_Clause">
  62. <where>
  63. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  64. <if test="criteria.valid">
  65. <trim prefix="(" prefixOverrides="and" suffix=")">
  66. <foreach collection="criteria.criteria" item="criterion">
  67. <choose>
  68. <when test="criterion.noValue">
  69. and ${criterion.condition}
  70. </when>
  71. <when test="criterion.singleValue">
  72. and ${criterion.condition} #{criterion.value}
  73. </when>
  74. <when test="criterion.betweenValue">
  75. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  76. </when>
  77. <when test="criterion.listValue">
  78. and ${criterion.condition}
  79. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  80. #{listItem}
  81. </foreach>
  82. </when>
  83. </choose>
  84. </foreach>
  85. </trim>
  86. </if>
  87. </foreach>
  88. </where>
  89. </sql>
  90. <sql id="Base_Column_List">
  91. id, content_id, out_video_id, platform, video_title, play_count, like_count, share_count,
  92. publish_time, crawler_time, duration, download_status, video_oss_path, cover_oss_path,
  93. user_id, trace_id, score, is_illegal, `status`, audit_account, audit_timestamp, score_version
  94. </sql>
  95. <sql id="Blob_Column_List">
  96. video_url, cover_url
  97. </sql>
  98. <select id="selectByExampleWithBLOBs" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideoExample" resultMap="ResultMapWithBLOBs">
  99. select
  100. <if test="distinct">
  101. distinct
  102. </if>
  103. <include refid="Base_Column_List" />
  104. ,
  105. <include refid="Blob_Column_List" />
  106. from long_articles_crawler_videos
  107. <if test="_parameter != null">
  108. <include refid="Example_Where_Clause" />
  109. </if>
  110. <if test="orderByClause != null">
  111. order by ${orderByClause}
  112. </if>
  113. <if test="page != null">
  114. limit #{page.offset} , #{page.pageSize}
  115. </if>
  116. </select>
  117. <select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideoExample" resultMap="BaseResultMap">
  118. select
  119. <if test="distinct">
  120. distinct
  121. </if>
  122. <include refid="Base_Column_List" />
  123. from long_articles_crawler_videos
  124. <if test="_parameter != null">
  125. <include refid="Example_Where_Clause" />
  126. </if>
  127. <if test="orderByClause != null">
  128. order by ${orderByClause}
  129. </if>
  130. <if test="page != null">
  131. limit #{page.offset} , #{page.pageSize}
  132. </if>
  133. </select>
  134. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
  135. select
  136. <include refid="Base_Column_List" />
  137. ,
  138. <include refid="Blob_Column_List" />
  139. from long_articles_crawler_videos
  140. where id = #{id,jdbcType=INTEGER}
  141. </select>
  142. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  143. delete from long_articles_crawler_videos
  144. where id = #{id,jdbcType=INTEGER}
  145. </delete>
  146. <delete id="deleteByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideoExample">
  147. delete from long_articles_crawler_videos
  148. <if test="_parameter != null">
  149. <include refid="Example_Where_Clause" />
  150. </if>
  151. </delete>
  152. <insert id="insert" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideo">
  153. insert into long_articles_crawler_videos (id, content_id, out_video_id,
  154. platform, video_title, play_count,
  155. like_count, share_count, publish_time,
  156. crawler_time, duration, download_status,
  157. video_oss_path, cover_oss_path, user_id,
  158. trace_id, score, is_illegal,
  159. `status`, audit_account, audit_timestamp,
  160. score_version, video_url, cover_url
  161. )
  162. values (#{id,jdbcType=INTEGER}, #{contentId,jdbcType=VARCHAR}, #{outVideoId,jdbcType=VARCHAR},
  163. #{platform,jdbcType=VARCHAR}, #{videoTitle,jdbcType=VARCHAR}, #{playCount,jdbcType=INTEGER},
  164. #{likeCount,jdbcType=INTEGER}, #{shareCount,jdbcType=INTEGER}, #{publishTime,jdbcType=TIMESTAMP},
  165. #{crawlerTime,jdbcType=TIMESTAMP}, #{duration,jdbcType=INTEGER}, #{downloadStatus,jdbcType=INTEGER},
  166. #{videoOssPath,jdbcType=VARCHAR}, #{coverOssPath,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
  167. #{traceId,jdbcType=VARCHAR}, #{score,jdbcType=REAL}, #{isIllegal,jdbcType=INTEGER},
  168. #{status,jdbcType=INTEGER}, #{auditAccount,jdbcType=VARCHAR}, #{auditTimestamp,jdbcType=BIGINT},
  169. #{scoreVersion,jdbcType=TINYINT}, #{videoUrl,jdbcType=LONGVARCHAR}, #{coverUrl,jdbcType=LONGVARCHAR}
  170. )
  171. </insert>
  172. <insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideo">
  173. insert into long_articles_crawler_videos
  174. <trim prefix="(" suffix=")" suffixOverrides=",">
  175. <if test="id != null">
  176. id,
  177. </if>
  178. <if test="contentId != null">
  179. content_id,
  180. </if>
  181. <if test="outVideoId != null">
  182. out_video_id,
  183. </if>
  184. <if test="platform != null">
  185. platform,
  186. </if>
  187. <if test="videoTitle != null">
  188. video_title,
  189. </if>
  190. <if test="playCount != null">
  191. play_count,
  192. </if>
  193. <if test="likeCount != null">
  194. like_count,
  195. </if>
  196. <if test="shareCount != null">
  197. share_count,
  198. </if>
  199. <if test="publishTime != null">
  200. publish_time,
  201. </if>
  202. <if test="crawlerTime != null">
  203. crawler_time,
  204. </if>
  205. <if test="duration != null">
  206. duration,
  207. </if>
  208. <if test="downloadStatus != null">
  209. download_status,
  210. </if>
  211. <if test="videoOssPath != null">
  212. video_oss_path,
  213. </if>
  214. <if test="coverOssPath != null">
  215. cover_oss_path,
  216. </if>
  217. <if test="userId != null">
  218. user_id,
  219. </if>
  220. <if test="traceId != null">
  221. trace_id,
  222. </if>
  223. <if test="score != null">
  224. score,
  225. </if>
  226. <if test="isIllegal != null">
  227. is_illegal,
  228. </if>
  229. <if test="status != null">
  230. `status`,
  231. </if>
  232. <if test="auditAccount != null">
  233. audit_account,
  234. </if>
  235. <if test="auditTimestamp != null">
  236. audit_timestamp,
  237. </if>
  238. <if test="scoreVersion != null">
  239. score_version,
  240. </if>
  241. <if test="videoUrl != null">
  242. video_url,
  243. </if>
  244. <if test="coverUrl != null">
  245. cover_url,
  246. </if>
  247. </trim>
  248. <trim prefix="values (" suffix=")" suffixOverrides=",">
  249. <if test="id != null">
  250. #{id,jdbcType=INTEGER},
  251. </if>
  252. <if test="contentId != null">
  253. #{contentId,jdbcType=VARCHAR},
  254. </if>
  255. <if test="outVideoId != null">
  256. #{outVideoId,jdbcType=VARCHAR},
  257. </if>
  258. <if test="platform != null">
  259. #{platform,jdbcType=VARCHAR},
  260. </if>
  261. <if test="videoTitle != null">
  262. #{videoTitle,jdbcType=VARCHAR},
  263. </if>
  264. <if test="playCount != null">
  265. #{playCount,jdbcType=INTEGER},
  266. </if>
  267. <if test="likeCount != null">
  268. #{likeCount,jdbcType=INTEGER},
  269. </if>
  270. <if test="shareCount != null">
  271. #{shareCount,jdbcType=INTEGER},
  272. </if>
  273. <if test="publishTime != null">
  274. #{publishTime,jdbcType=TIMESTAMP},
  275. </if>
  276. <if test="crawlerTime != null">
  277. #{crawlerTime,jdbcType=TIMESTAMP},
  278. </if>
  279. <if test="duration != null">
  280. #{duration,jdbcType=INTEGER},
  281. </if>
  282. <if test="downloadStatus != null">
  283. #{downloadStatus,jdbcType=INTEGER},
  284. </if>
  285. <if test="videoOssPath != null">
  286. #{videoOssPath,jdbcType=VARCHAR},
  287. </if>
  288. <if test="coverOssPath != null">
  289. #{coverOssPath,jdbcType=VARCHAR},
  290. </if>
  291. <if test="userId != null">
  292. #{userId,jdbcType=VARCHAR},
  293. </if>
  294. <if test="traceId != null">
  295. #{traceId,jdbcType=VARCHAR},
  296. </if>
  297. <if test="score != null">
  298. #{score,jdbcType=REAL},
  299. </if>
  300. <if test="isIllegal != null">
  301. #{isIllegal,jdbcType=INTEGER},
  302. </if>
  303. <if test="status != null">
  304. #{status,jdbcType=INTEGER},
  305. </if>
  306. <if test="auditAccount != null">
  307. #{auditAccount,jdbcType=VARCHAR},
  308. </if>
  309. <if test="auditTimestamp != null">
  310. #{auditTimestamp,jdbcType=BIGINT},
  311. </if>
  312. <if test="scoreVersion != null">
  313. #{scoreVersion,jdbcType=TINYINT},
  314. </if>
  315. <if test="videoUrl != null">
  316. #{videoUrl,jdbcType=LONGVARCHAR},
  317. </if>
  318. <if test="coverUrl != null">
  319. #{coverUrl,jdbcType=LONGVARCHAR},
  320. </if>
  321. </trim>
  322. </insert>
  323. <select id="countByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideoExample" resultType="java.lang.Long">
  324. select count(*) from long_articles_crawler_videos
  325. <if test="_parameter != null">
  326. <include refid="Example_Where_Clause" />
  327. </if>
  328. </select>
  329. <update id="updateByExampleSelective" parameterType="map">
  330. update long_articles_crawler_videos
  331. <set>
  332. <if test="record.id != null">
  333. id = #{record.id,jdbcType=INTEGER},
  334. </if>
  335. <if test="record.contentId != null">
  336. content_id = #{record.contentId,jdbcType=VARCHAR},
  337. </if>
  338. <if test="record.outVideoId != null">
  339. out_video_id = #{record.outVideoId,jdbcType=VARCHAR},
  340. </if>
  341. <if test="record.platform != null">
  342. platform = #{record.platform,jdbcType=VARCHAR},
  343. </if>
  344. <if test="record.videoTitle != null">
  345. video_title = #{record.videoTitle,jdbcType=VARCHAR},
  346. </if>
  347. <if test="record.playCount != null">
  348. play_count = #{record.playCount,jdbcType=INTEGER},
  349. </if>
  350. <if test="record.likeCount != null">
  351. like_count = #{record.likeCount,jdbcType=INTEGER},
  352. </if>
  353. <if test="record.shareCount != null">
  354. share_count = #{record.shareCount,jdbcType=INTEGER},
  355. </if>
  356. <if test="record.publishTime != null">
  357. publish_time = #{record.publishTime,jdbcType=TIMESTAMP},
  358. </if>
  359. <if test="record.crawlerTime != null">
  360. crawler_time = #{record.crawlerTime,jdbcType=TIMESTAMP},
  361. </if>
  362. <if test="record.duration != null">
  363. duration = #{record.duration,jdbcType=INTEGER},
  364. </if>
  365. <if test="record.downloadStatus != null">
  366. download_status = #{record.downloadStatus,jdbcType=INTEGER},
  367. </if>
  368. <if test="record.videoOssPath != null">
  369. video_oss_path = #{record.videoOssPath,jdbcType=VARCHAR},
  370. </if>
  371. <if test="record.coverOssPath != null">
  372. cover_oss_path = #{record.coverOssPath,jdbcType=VARCHAR},
  373. </if>
  374. <if test="record.userId != null">
  375. user_id = #{record.userId,jdbcType=VARCHAR},
  376. </if>
  377. <if test="record.traceId != null">
  378. trace_id = #{record.traceId,jdbcType=VARCHAR},
  379. </if>
  380. <if test="record.score != null">
  381. score = #{record.score,jdbcType=REAL},
  382. </if>
  383. <if test="record.isIllegal != null">
  384. is_illegal = #{record.isIllegal,jdbcType=INTEGER},
  385. </if>
  386. <if test="record.status != null">
  387. `status` = #{record.status,jdbcType=INTEGER},
  388. </if>
  389. <if test="record.auditAccount != null">
  390. audit_account = #{record.auditAccount,jdbcType=VARCHAR},
  391. </if>
  392. <if test="record.auditTimestamp != null">
  393. audit_timestamp = #{record.auditTimestamp,jdbcType=BIGINT},
  394. </if>
  395. <if test="record.scoreVersion != null">
  396. score_version = #{record.scoreVersion,jdbcType=TINYINT},
  397. </if>
  398. <if test="record.videoUrl != null">
  399. video_url = #{record.videoUrl,jdbcType=LONGVARCHAR},
  400. </if>
  401. <if test="record.coverUrl != null">
  402. cover_url = #{record.coverUrl,jdbcType=LONGVARCHAR},
  403. </if>
  404. </set>
  405. <if test="_parameter != null">
  406. <include refid="Update_By_Example_Where_Clause" />
  407. </if>
  408. </update>
  409. <update id="updateByExampleWithBLOBs" parameterType="map">
  410. update long_articles_crawler_videos
  411. set id = #{record.id,jdbcType=INTEGER},
  412. content_id = #{record.contentId,jdbcType=VARCHAR},
  413. out_video_id = #{record.outVideoId,jdbcType=VARCHAR},
  414. platform = #{record.platform,jdbcType=VARCHAR},
  415. video_title = #{record.videoTitle,jdbcType=VARCHAR},
  416. play_count = #{record.playCount,jdbcType=INTEGER},
  417. like_count = #{record.likeCount,jdbcType=INTEGER},
  418. share_count = #{record.shareCount,jdbcType=INTEGER},
  419. publish_time = #{record.publishTime,jdbcType=TIMESTAMP},
  420. crawler_time = #{record.crawlerTime,jdbcType=TIMESTAMP},
  421. duration = #{record.duration,jdbcType=INTEGER},
  422. download_status = #{record.downloadStatus,jdbcType=INTEGER},
  423. video_oss_path = #{record.videoOssPath,jdbcType=VARCHAR},
  424. cover_oss_path = #{record.coverOssPath,jdbcType=VARCHAR},
  425. user_id = #{record.userId,jdbcType=VARCHAR},
  426. trace_id = #{record.traceId,jdbcType=VARCHAR},
  427. score = #{record.score,jdbcType=REAL},
  428. is_illegal = #{record.isIllegal,jdbcType=INTEGER},
  429. `status` = #{record.status,jdbcType=INTEGER},
  430. audit_account = #{record.auditAccount,jdbcType=VARCHAR},
  431. audit_timestamp = #{record.auditTimestamp,jdbcType=BIGINT},
  432. score_version = #{record.scoreVersion,jdbcType=TINYINT},
  433. video_url = #{record.videoUrl,jdbcType=LONGVARCHAR},
  434. cover_url = #{record.coverUrl,jdbcType=LONGVARCHAR}
  435. <if test="_parameter != null">
  436. <include refid="Update_By_Example_Where_Clause" />
  437. </if>
  438. </update>
  439. <update id="updateByExample" parameterType="map">
  440. update long_articles_crawler_videos
  441. set id = #{record.id,jdbcType=INTEGER},
  442. content_id = #{record.contentId,jdbcType=VARCHAR},
  443. out_video_id = #{record.outVideoId,jdbcType=VARCHAR},
  444. platform = #{record.platform,jdbcType=VARCHAR},
  445. video_title = #{record.videoTitle,jdbcType=VARCHAR},
  446. play_count = #{record.playCount,jdbcType=INTEGER},
  447. like_count = #{record.likeCount,jdbcType=INTEGER},
  448. share_count = #{record.shareCount,jdbcType=INTEGER},
  449. publish_time = #{record.publishTime,jdbcType=TIMESTAMP},
  450. crawler_time = #{record.crawlerTime,jdbcType=TIMESTAMP},
  451. duration = #{record.duration,jdbcType=INTEGER},
  452. download_status = #{record.downloadStatus,jdbcType=INTEGER},
  453. video_oss_path = #{record.videoOssPath,jdbcType=VARCHAR},
  454. cover_oss_path = #{record.coverOssPath,jdbcType=VARCHAR},
  455. user_id = #{record.userId,jdbcType=VARCHAR},
  456. trace_id = #{record.traceId,jdbcType=VARCHAR},
  457. score = #{record.score,jdbcType=REAL},
  458. is_illegal = #{record.isIllegal,jdbcType=INTEGER},
  459. `status` = #{record.status,jdbcType=INTEGER},
  460. audit_account = #{record.auditAccount,jdbcType=VARCHAR},
  461. audit_timestamp = #{record.auditTimestamp,jdbcType=BIGINT},
  462. score_version = #{record.scoreVersion,jdbcType=TINYINT}
  463. <if test="_parameter != null">
  464. <include refid="Update_By_Example_Where_Clause" />
  465. </if>
  466. </update>
  467. <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideo">
  468. update long_articles_crawler_videos
  469. <set>
  470. <if test="contentId != null">
  471. content_id = #{contentId,jdbcType=VARCHAR},
  472. </if>
  473. <if test="outVideoId != null">
  474. out_video_id = #{outVideoId,jdbcType=VARCHAR},
  475. </if>
  476. <if test="platform != null">
  477. platform = #{platform,jdbcType=VARCHAR},
  478. </if>
  479. <if test="videoTitle != null">
  480. video_title = #{videoTitle,jdbcType=VARCHAR},
  481. </if>
  482. <if test="playCount != null">
  483. play_count = #{playCount,jdbcType=INTEGER},
  484. </if>
  485. <if test="likeCount != null">
  486. like_count = #{likeCount,jdbcType=INTEGER},
  487. </if>
  488. <if test="shareCount != null">
  489. share_count = #{shareCount,jdbcType=INTEGER},
  490. </if>
  491. <if test="publishTime != null">
  492. publish_time = #{publishTime,jdbcType=TIMESTAMP},
  493. </if>
  494. <if test="crawlerTime != null">
  495. crawler_time = #{crawlerTime,jdbcType=TIMESTAMP},
  496. </if>
  497. <if test="duration != null">
  498. duration = #{duration,jdbcType=INTEGER},
  499. </if>
  500. <if test="downloadStatus != null">
  501. download_status = #{downloadStatus,jdbcType=INTEGER},
  502. </if>
  503. <if test="videoOssPath != null">
  504. video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
  505. </if>
  506. <if test="coverOssPath != null">
  507. cover_oss_path = #{coverOssPath,jdbcType=VARCHAR},
  508. </if>
  509. <if test="userId != null">
  510. user_id = #{userId,jdbcType=VARCHAR},
  511. </if>
  512. <if test="traceId != null">
  513. trace_id = #{traceId,jdbcType=VARCHAR},
  514. </if>
  515. <if test="score != null">
  516. score = #{score,jdbcType=REAL},
  517. </if>
  518. <if test="isIllegal != null">
  519. is_illegal = #{isIllegal,jdbcType=INTEGER},
  520. </if>
  521. <if test="status != null">
  522. `status` = #{status,jdbcType=INTEGER},
  523. </if>
  524. <if test="auditAccount != null">
  525. audit_account = #{auditAccount,jdbcType=VARCHAR},
  526. </if>
  527. <if test="auditTimestamp != null">
  528. audit_timestamp = #{auditTimestamp,jdbcType=BIGINT},
  529. </if>
  530. <if test="scoreVersion != null">
  531. score_version = #{scoreVersion,jdbcType=TINYINT},
  532. </if>
  533. <if test="videoUrl != null">
  534. video_url = #{videoUrl,jdbcType=LONGVARCHAR},
  535. </if>
  536. <if test="coverUrl != null">
  537. cover_url = #{coverUrl,jdbcType=LONGVARCHAR},
  538. </if>
  539. </set>
  540. where id = #{id,jdbcType=INTEGER}
  541. </update>
  542. <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideo">
  543. update long_articles_crawler_videos
  544. set content_id = #{contentId,jdbcType=VARCHAR},
  545. out_video_id = #{outVideoId,jdbcType=VARCHAR},
  546. platform = #{platform,jdbcType=VARCHAR},
  547. video_title = #{videoTitle,jdbcType=VARCHAR},
  548. play_count = #{playCount,jdbcType=INTEGER},
  549. like_count = #{likeCount,jdbcType=INTEGER},
  550. share_count = #{shareCount,jdbcType=INTEGER},
  551. publish_time = #{publishTime,jdbcType=TIMESTAMP},
  552. crawler_time = #{crawlerTime,jdbcType=TIMESTAMP},
  553. duration = #{duration,jdbcType=INTEGER},
  554. download_status = #{downloadStatus,jdbcType=INTEGER},
  555. video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
  556. cover_oss_path = #{coverOssPath,jdbcType=VARCHAR},
  557. user_id = #{userId,jdbcType=VARCHAR},
  558. trace_id = #{traceId,jdbcType=VARCHAR},
  559. score = #{score,jdbcType=REAL},
  560. is_illegal = #{isIllegal,jdbcType=INTEGER},
  561. `status` = #{status,jdbcType=INTEGER},
  562. audit_account = #{auditAccount,jdbcType=VARCHAR},
  563. audit_timestamp = #{auditTimestamp,jdbcType=BIGINT},
  564. score_version = #{scoreVersion,jdbcType=TINYINT},
  565. video_url = #{videoUrl,jdbcType=LONGVARCHAR},
  566. cover_url = #{coverUrl,jdbcType=LONGVARCHAR}
  567. where id = #{id,jdbcType=INTEGER}
  568. </update>
  569. <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideo">
  570. update long_articles_crawler_videos
  571. set content_id = #{contentId,jdbcType=VARCHAR},
  572. out_video_id = #{outVideoId,jdbcType=VARCHAR},
  573. platform = #{platform,jdbcType=VARCHAR},
  574. video_title = #{videoTitle,jdbcType=VARCHAR},
  575. play_count = #{playCount,jdbcType=INTEGER},
  576. like_count = #{likeCount,jdbcType=INTEGER},
  577. share_count = #{shareCount,jdbcType=INTEGER},
  578. publish_time = #{publishTime,jdbcType=TIMESTAMP},
  579. crawler_time = #{crawlerTime,jdbcType=TIMESTAMP},
  580. duration = #{duration,jdbcType=INTEGER},
  581. download_status = #{downloadStatus,jdbcType=INTEGER},
  582. video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
  583. cover_oss_path = #{coverOssPath,jdbcType=VARCHAR},
  584. user_id = #{userId,jdbcType=VARCHAR},
  585. trace_id = #{traceId,jdbcType=VARCHAR},
  586. score = #{score,jdbcType=REAL},
  587. is_illegal = #{isIllegal,jdbcType=INTEGER},
  588. `status` = #{status,jdbcType=INTEGER},
  589. audit_account = #{auditAccount,jdbcType=VARCHAR},
  590. audit_timestamp = #{auditTimestamp,jdbcType=BIGINT},
  591. score_version = #{scoreVersion,jdbcType=TINYINT}
  592. where id = #{id,jdbcType=INTEGER}
  593. </update>
  594. </mapper>