PlanAccountMapper.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  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="status" jdbcType="INTEGER" property="status" />
  26. <result column="match_status" jdbcType="INTEGER" property="matchStatus" />
  27. <result column="retry_count" jdbcType="INTEGER" property="retryCount" />
  28. <result column="send_count" jdbcType="INTEGER" property="sendCount" />
  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, plan_id, plan_name, account_id, account_name, gh_id, publish_rate, publish_date,
  93. publish_window_start, publish_window_end, publish_time_interval, publish_num, publish_pre_num,
  94. publish_pre_min_num, publish_push_time, push_type, miniprogram_insert_flag, mini_strategy,
  95. miniprogram_use_type, sort_strategy, `status`, match_status, retry_count, send_count,
  96. is_delete, create_time, update_time
  97. </sql>
  98. <select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccountExample" resultMap="BaseResultMap">
  99. select
  100. <if test="distinct">
  101. distinct
  102. </if>
  103. <include refid="Base_Column_List" />
  104. from long_articles_plan_account
  105. <if test="_parameter != null">
  106. <include refid="Example_Where_Clause" />
  107. </if>
  108. <if test="orderByClause != null">
  109. order by ${orderByClause}
  110. </if>
  111. <if test="page != null">
  112. limit #{page.offset} , #{page.pageSize}
  113. </if>
  114. </select>
  115. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  116. select
  117. <include refid="Base_Column_List" />
  118. from long_articles_plan_account
  119. where id = #{id,jdbcType=BIGINT}
  120. </select>
  121. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  122. delete from long_articles_plan_account
  123. where id = #{id,jdbcType=BIGINT}
  124. </delete>
  125. <delete id="deleteByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccountExample">
  126. delete from long_articles_plan_account
  127. <if test="_parameter != null">
  128. <include refid="Example_Where_Clause" />
  129. </if>
  130. </delete>
  131. <insert id="insert" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccount">
  132. insert into long_articles_plan_account (id, plan_id, plan_name,
  133. account_id, account_name, gh_id,
  134. publish_rate, publish_date, publish_window_start,
  135. publish_window_end, publish_time_interval,
  136. publish_num, publish_pre_num, publish_pre_min_num,
  137. publish_push_time, push_type, miniprogram_insert_flag,
  138. mini_strategy, miniprogram_use_type, sort_strategy,
  139. `status`, match_status, retry_count,
  140. send_count, is_delete, create_time,
  141. update_time)
  142. values (#{id,jdbcType=BIGINT}, #{planId,jdbcType=VARCHAR}, #{planName,jdbcType=VARCHAR},
  143. #{accountId,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, #{ghId,jdbcType=VARCHAR},
  144. #{publishRate,jdbcType=INTEGER}, #{publishDate,jdbcType=VARCHAR}, #{publishWindowStart,jdbcType=VARCHAR},
  145. #{publishWindowEnd,jdbcType=VARCHAR}, #{publishTimeInterval,jdbcType=INTEGER},
  146. #{publishNum,jdbcType=INTEGER}, #{publishPreNum,jdbcType=INTEGER}, #{publishPreMinNum,jdbcType=INTEGER},
  147. #{publishPushTime,jdbcType=VARCHAR}, #{pushType,jdbcType=INTEGER}, #{miniprogramInsertFlag,jdbcType=INTEGER},
  148. #{miniStrategy,jdbcType=VARCHAR}, #{miniprogramUseType,jdbcType=INTEGER}, #{sortStrategy,jdbcType=VARCHAR},
  149. #{status,jdbcType=INTEGER}, #{matchStatus,jdbcType=INTEGER}, #{retryCount,jdbcType=INTEGER},
  150. #{sendCount,jdbcType=INTEGER}, #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
  151. #{updateTime,jdbcType=TIMESTAMP})
  152. </insert>
  153. <insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccount">
  154. insert into long_articles_plan_account
  155. <trim prefix="(" suffix=")" suffixOverrides=",">
  156. <if test="id != null">
  157. id,
  158. </if>
  159. <if test="planId != null">
  160. plan_id,
  161. </if>
  162. <if test="planName != null">
  163. plan_name,
  164. </if>
  165. <if test="accountId != null">
  166. account_id,
  167. </if>
  168. <if test="accountName != null">
  169. account_name,
  170. </if>
  171. <if test="ghId != null">
  172. gh_id,
  173. </if>
  174. <if test="publishRate != null">
  175. publish_rate,
  176. </if>
  177. <if test="publishDate != null">
  178. publish_date,
  179. </if>
  180. <if test="publishWindowStart != null">
  181. publish_window_start,
  182. </if>
  183. <if test="publishWindowEnd != null">
  184. publish_window_end,
  185. </if>
  186. <if test="publishTimeInterval != null">
  187. publish_time_interval,
  188. </if>
  189. <if test="publishNum != null">
  190. publish_num,
  191. </if>
  192. <if test="publishPreNum != null">
  193. publish_pre_num,
  194. </if>
  195. <if test="publishPreMinNum != null">
  196. publish_pre_min_num,
  197. </if>
  198. <if test="publishPushTime != null">
  199. publish_push_time,
  200. </if>
  201. <if test="pushType != null">
  202. push_type,
  203. </if>
  204. <if test="miniprogramInsertFlag != null">
  205. miniprogram_insert_flag,
  206. </if>
  207. <if test="miniStrategy != null">
  208. mini_strategy,
  209. </if>
  210. <if test="miniprogramUseType != null">
  211. miniprogram_use_type,
  212. </if>
  213. <if test="sortStrategy != null">
  214. sort_strategy,
  215. </if>
  216. <if test="status != null">
  217. `status`,
  218. </if>
  219. <if test="matchStatus != null">
  220. match_status,
  221. </if>
  222. <if test="retryCount != null">
  223. retry_count,
  224. </if>
  225. <if test="sendCount != null">
  226. send_count,
  227. </if>
  228. <if test="isDelete != null">
  229. is_delete,
  230. </if>
  231. <if test="createTime != null">
  232. create_time,
  233. </if>
  234. <if test="updateTime != null">
  235. update_time,
  236. </if>
  237. </trim>
  238. <trim prefix="values (" suffix=")" suffixOverrides=",">
  239. <if test="id != null">
  240. #{id,jdbcType=BIGINT},
  241. </if>
  242. <if test="planId != null">
  243. #{planId,jdbcType=VARCHAR},
  244. </if>
  245. <if test="planName != null">
  246. #{planName,jdbcType=VARCHAR},
  247. </if>
  248. <if test="accountId != null">
  249. #{accountId,jdbcType=VARCHAR},
  250. </if>
  251. <if test="accountName != null">
  252. #{accountName,jdbcType=VARCHAR},
  253. </if>
  254. <if test="ghId != null">
  255. #{ghId,jdbcType=VARCHAR},
  256. </if>
  257. <if test="publishRate != null">
  258. #{publishRate,jdbcType=INTEGER},
  259. </if>
  260. <if test="publishDate != null">
  261. #{publishDate,jdbcType=VARCHAR},
  262. </if>
  263. <if test="publishWindowStart != null">
  264. #{publishWindowStart,jdbcType=VARCHAR},
  265. </if>
  266. <if test="publishWindowEnd != null">
  267. #{publishWindowEnd,jdbcType=VARCHAR},
  268. </if>
  269. <if test="publishTimeInterval != null">
  270. #{publishTimeInterval,jdbcType=INTEGER},
  271. </if>
  272. <if test="publishNum != null">
  273. #{publishNum,jdbcType=INTEGER},
  274. </if>
  275. <if test="publishPreNum != null">
  276. #{publishPreNum,jdbcType=INTEGER},
  277. </if>
  278. <if test="publishPreMinNum != null">
  279. #{publishPreMinNum,jdbcType=INTEGER},
  280. </if>
  281. <if test="publishPushTime != null">
  282. #{publishPushTime,jdbcType=VARCHAR},
  283. </if>
  284. <if test="pushType != null">
  285. #{pushType,jdbcType=INTEGER},
  286. </if>
  287. <if test="miniprogramInsertFlag != null">
  288. #{miniprogramInsertFlag,jdbcType=INTEGER},
  289. </if>
  290. <if test="miniStrategy != null">
  291. #{miniStrategy,jdbcType=VARCHAR},
  292. </if>
  293. <if test="miniprogramUseType != null">
  294. #{miniprogramUseType,jdbcType=INTEGER},
  295. </if>
  296. <if test="sortStrategy != null">
  297. #{sortStrategy,jdbcType=VARCHAR},
  298. </if>
  299. <if test="status != null">
  300. #{status,jdbcType=INTEGER},
  301. </if>
  302. <if test="matchStatus != null">
  303. #{matchStatus,jdbcType=INTEGER},
  304. </if>
  305. <if test="retryCount != null">
  306. #{retryCount,jdbcType=INTEGER},
  307. </if>
  308. <if test="sendCount != null">
  309. #{sendCount,jdbcType=INTEGER},
  310. </if>
  311. <if test="isDelete != null">
  312. #{isDelete,jdbcType=INTEGER},
  313. </if>
  314. <if test="createTime != null">
  315. #{createTime,jdbcType=TIMESTAMP},
  316. </if>
  317. <if test="updateTime != null">
  318. #{updateTime,jdbcType=TIMESTAMP},
  319. </if>
  320. </trim>
  321. </insert>
  322. <select id="countByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccountExample" resultType="java.lang.Long">
  323. select count(*) from long_articles_plan_account
  324. <if test="_parameter != null">
  325. <include refid="Example_Where_Clause" />
  326. </if>
  327. </select>
  328. <update id="updateByExampleSelective" parameterType="map">
  329. update long_articles_plan_account
  330. <set>
  331. <if test="record.id != null">
  332. id = #{record.id,jdbcType=BIGINT},
  333. </if>
  334. <if test="record.planId != null">
  335. plan_id = #{record.planId,jdbcType=VARCHAR},
  336. </if>
  337. <if test="record.planName != null">
  338. plan_name = #{record.planName,jdbcType=VARCHAR},
  339. </if>
  340. <if test="record.accountId != null">
  341. account_id = #{record.accountId,jdbcType=VARCHAR},
  342. </if>
  343. <if test="record.accountName != null">
  344. account_name = #{record.accountName,jdbcType=VARCHAR},
  345. </if>
  346. <if test="record.ghId != null">
  347. gh_id = #{record.ghId,jdbcType=VARCHAR},
  348. </if>
  349. <if test="record.publishRate != null">
  350. publish_rate = #{record.publishRate,jdbcType=INTEGER},
  351. </if>
  352. <if test="record.publishDate != null">
  353. publish_date = #{record.publishDate,jdbcType=VARCHAR},
  354. </if>
  355. <if test="record.publishWindowStart != null">
  356. publish_window_start = #{record.publishWindowStart,jdbcType=VARCHAR},
  357. </if>
  358. <if test="record.publishWindowEnd != null">
  359. publish_window_end = #{record.publishWindowEnd,jdbcType=VARCHAR},
  360. </if>
  361. <if test="record.publishTimeInterval != null">
  362. publish_time_interval = #{record.publishTimeInterval,jdbcType=INTEGER},
  363. </if>
  364. <if test="record.publishNum != null">
  365. publish_num = #{record.publishNum,jdbcType=INTEGER},
  366. </if>
  367. <if test="record.publishPreNum != null">
  368. publish_pre_num = #{record.publishPreNum,jdbcType=INTEGER},
  369. </if>
  370. <if test="record.publishPreMinNum != null">
  371. publish_pre_min_num = #{record.publishPreMinNum,jdbcType=INTEGER},
  372. </if>
  373. <if test="record.publishPushTime != null">
  374. publish_push_time = #{record.publishPushTime,jdbcType=VARCHAR},
  375. </if>
  376. <if test="record.pushType != null">
  377. push_type = #{record.pushType,jdbcType=INTEGER},
  378. </if>
  379. <if test="record.miniprogramInsertFlag != null">
  380. miniprogram_insert_flag = #{record.miniprogramInsertFlag,jdbcType=INTEGER},
  381. </if>
  382. <if test="record.miniStrategy != null">
  383. mini_strategy = #{record.miniStrategy,jdbcType=VARCHAR},
  384. </if>
  385. <if test="record.miniprogramUseType != null">
  386. miniprogram_use_type = #{record.miniprogramUseType,jdbcType=INTEGER},
  387. </if>
  388. <if test="record.sortStrategy != null">
  389. sort_strategy = #{record.sortStrategy,jdbcType=VARCHAR},
  390. </if>
  391. <if test="record.status != null">
  392. `status` = #{record.status,jdbcType=INTEGER},
  393. </if>
  394. <if test="record.matchStatus != null">
  395. match_status = #{record.matchStatus,jdbcType=INTEGER},
  396. </if>
  397. <if test="record.retryCount != null">
  398. retry_count = #{record.retryCount,jdbcType=INTEGER},
  399. </if>
  400. <if test="record.sendCount != null">
  401. send_count = #{record.sendCount,jdbcType=INTEGER},
  402. </if>
  403. <if test="record.isDelete != null">
  404. is_delete = #{record.isDelete,jdbcType=INTEGER},
  405. </if>
  406. <if test="record.createTime != null">
  407. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  408. </if>
  409. <if test="record.updateTime != null">
  410. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  411. </if>
  412. </set>
  413. <if test="_parameter != null">
  414. <include refid="Update_By_Example_Where_Clause" />
  415. </if>
  416. </update>
  417. <update id="updateByExample" parameterType="map">
  418. update long_articles_plan_account
  419. set id = #{record.id,jdbcType=BIGINT},
  420. plan_id = #{record.planId,jdbcType=VARCHAR},
  421. plan_name = #{record.planName,jdbcType=VARCHAR},
  422. account_id = #{record.accountId,jdbcType=VARCHAR},
  423. account_name = #{record.accountName,jdbcType=VARCHAR},
  424. gh_id = #{record.ghId,jdbcType=VARCHAR},
  425. publish_rate = #{record.publishRate,jdbcType=INTEGER},
  426. publish_date = #{record.publishDate,jdbcType=VARCHAR},
  427. publish_window_start = #{record.publishWindowStart,jdbcType=VARCHAR},
  428. publish_window_end = #{record.publishWindowEnd,jdbcType=VARCHAR},
  429. publish_time_interval = #{record.publishTimeInterval,jdbcType=INTEGER},
  430. publish_num = #{record.publishNum,jdbcType=INTEGER},
  431. publish_pre_num = #{record.publishPreNum,jdbcType=INTEGER},
  432. publish_pre_min_num = #{record.publishPreMinNum,jdbcType=INTEGER},
  433. publish_push_time = #{record.publishPushTime,jdbcType=VARCHAR},
  434. push_type = #{record.pushType,jdbcType=INTEGER},
  435. miniprogram_insert_flag = #{record.miniprogramInsertFlag,jdbcType=INTEGER},
  436. mini_strategy = #{record.miniStrategy,jdbcType=VARCHAR},
  437. miniprogram_use_type = #{record.miniprogramUseType,jdbcType=INTEGER},
  438. sort_strategy = #{record.sortStrategy,jdbcType=VARCHAR},
  439. `status` = #{record.status,jdbcType=INTEGER},
  440. match_status = #{record.matchStatus,jdbcType=INTEGER},
  441. retry_count = #{record.retryCount,jdbcType=INTEGER},
  442. send_count = #{record.sendCount,jdbcType=INTEGER},
  443. is_delete = #{record.isDelete,jdbcType=INTEGER},
  444. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  445. update_time = #{record.updateTime,jdbcType=TIMESTAMP}
  446. <if test="_parameter != null">
  447. <include refid="Update_By_Example_Where_Clause" />
  448. </if>
  449. </update>
  450. <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccount">
  451. update long_articles_plan_account
  452. <set>
  453. <if test="planId != null">
  454. plan_id = #{planId,jdbcType=VARCHAR},
  455. </if>
  456. <if test="planName != null">
  457. plan_name = #{planName,jdbcType=VARCHAR},
  458. </if>
  459. <if test="accountId != null">
  460. account_id = #{accountId,jdbcType=VARCHAR},
  461. </if>
  462. <if test="accountName != null">
  463. account_name = #{accountName,jdbcType=VARCHAR},
  464. </if>
  465. <if test="ghId != null">
  466. gh_id = #{ghId,jdbcType=VARCHAR},
  467. </if>
  468. <if test="publishRate != null">
  469. publish_rate = #{publishRate,jdbcType=INTEGER},
  470. </if>
  471. <if test="publishDate != null">
  472. publish_date = #{publishDate,jdbcType=VARCHAR},
  473. </if>
  474. <if test="publishWindowStart != null">
  475. publish_window_start = #{publishWindowStart,jdbcType=VARCHAR},
  476. </if>
  477. <if test="publishWindowEnd != null">
  478. publish_window_end = #{publishWindowEnd,jdbcType=VARCHAR},
  479. </if>
  480. <if test="publishTimeInterval != null">
  481. publish_time_interval = #{publishTimeInterval,jdbcType=INTEGER},
  482. </if>
  483. <if test="publishNum != null">
  484. publish_num = #{publishNum,jdbcType=INTEGER},
  485. </if>
  486. <if test="publishPreNum != null">
  487. publish_pre_num = #{publishPreNum,jdbcType=INTEGER},
  488. </if>
  489. <if test="publishPreMinNum != null">
  490. publish_pre_min_num = #{publishPreMinNum,jdbcType=INTEGER},
  491. </if>
  492. <if test="publishPushTime != null">
  493. publish_push_time = #{publishPushTime,jdbcType=VARCHAR},
  494. </if>
  495. <if test="pushType != null">
  496. push_type = #{pushType,jdbcType=INTEGER},
  497. </if>
  498. <if test="miniprogramInsertFlag != null">
  499. miniprogram_insert_flag = #{miniprogramInsertFlag,jdbcType=INTEGER},
  500. </if>
  501. <if test="miniStrategy != null">
  502. mini_strategy = #{miniStrategy,jdbcType=VARCHAR},
  503. </if>
  504. <if test="miniprogramUseType != null">
  505. miniprogram_use_type = #{miniprogramUseType,jdbcType=INTEGER},
  506. </if>
  507. <if test="sortStrategy != null">
  508. sort_strategy = #{sortStrategy,jdbcType=VARCHAR},
  509. </if>
  510. <if test="status != null">
  511. `status` = #{status,jdbcType=INTEGER},
  512. </if>
  513. <if test="matchStatus != null">
  514. match_status = #{matchStatus,jdbcType=INTEGER},
  515. </if>
  516. <if test="retryCount != null">
  517. retry_count = #{retryCount,jdbcType=INTEGER},
  518. </if>
  519. <if test="sendCount != null">
  520. send_count = #{sendCount,jdbcType=INTEGER},
  521. </if>
  522. <if test="isDelete != null">
  523. is_delete = #{isDelete,jdbcType=INTEGER},
  524. </if>
  525. <if test="createTime != null">
  526. create_time = #{createTime,jdbcType=TIMESTAMP},
  527. </if>
  528. <if test="updateTime != null">
  529. update_time = #{updateTime,jdbcType=TIMESTAMP},
  530. </if>
  531. </set>
  532. where id = #{id,jdbcType=BIGINT}
  533. </update>
  534. <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccount">
  535. update long_articles_plan_account
  536. set plan_id = #{planId,jdbcType=VARCHAR},
  537. plan_name = #{planName,jdbcType=VARCHAR},
  538. account_id = #{accountId,jdbcType=VARCHAR},
  539. account_name = #{accountName,jdbcType=VARCHAR},
  540. gh_id = #{ghId,jdbcType=VARCHAR},
  541. publish_rate = #{publishRate,jdbcType=INTEGER},
  542. publish_date = #{publishDate,jdbcType=VARCHAR},
  543. publish_window_start = #{publishWindowStart,jdbcType=VARCHAR},
  544. publish_window_end = #{publishWindowEnd,jdbcType=VARCHAR},
  545. publish_time_interval = #{publishTimeInterval,jdbcType=INTEGER},
  546. publish_num = #{publishNum,jdbcType=INTEGER},
  547. publish_pre_num = #{publishPreNum,jdbcType=INTEGER},
  548. publish_pre_min_num = #{publishPreMinNum,jdbcType=INTEGER},
  549. publish_push_time = #{publishPushTime,jdbcType=VARCHAR},
  550. push_type = #{pushType,jdbcType=INTEGER},
  551. miniprogram_insert_flag = #{miniprogramInsertFlag,jdbcType=INTEGER},
  552. mini_strategy = #{miniStrategy,jdbcType=VARCHAR},
  553. miniprogram_use_type = #{miniprogramUseType,jdbcType=INTEGER},
  554. sort_strategy = #{sortStrategy,jdbcType=VARCHAR},
  555. `status` = #{status,jdbcType=INTEGER},
  556. match_status = #{matchStatus,jdbcType=INTEGER},
  557. retry_count = #{retryCount,jdbcType=INTEGER},
  558. send_count = #{sendCount,jdbcType=INTEGER},
  559. is_delete = #{isDelete,jdbcType=INTEGER},
  560. create_time = #{createTime,jdbcType=TIMESTAMP},
  561. update_time = #{updateTime,jdbcType=TIMESTAMP}
  562. where id = #{id,jdbcType=BIGINT}
  563. </update>
  564. </mapper>