PlanAccountMapper.xml 24 KB

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