PublishMiniprogramMapper.xml 22 KB

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