ContentPlatformDemandVideoMapper.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  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.api.dao.mapper.contentplatform.ContentPlatformDemandVideoMapper">
  4. <resultMap id="BaseResultMap" type="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="dt" jdbcType="VARCHAR" property="dt" />
  7. <result column="online_action" jdbcType="VARCHAR" property="onlineAction" />
  8. <result column="channel_name" jdbcType="VARCHAR" property="channelName" />
  9. <result column="crowd_segment" jdbcType="VARCHAR" property="crowdSegment" />
  10. <result column="demand_id" jdbcType="VARCHAR" property="demandId" />
  11. <result column="crowd_package" jdbcType="VARCHAR" property="crowdPackage" />
  12. <result column="conversion_target" jdbcType="VARCHAR" property="conversionTarget" />
  13. <result column="partner" jdbcType="VARCHAR" property="partner" />
  14. <result column="account" jdbcType="VARCHAR" property="account" />
  15. <result column="scene_value" jdbcType="VARCHAR" property="sceneValue" />
  16. <result column="demand_strategy" jdbcType="VARCHAR" property="demandStrategy" />
  17. <result column="drive_dimension_time" jdbcType="VARCHAR" property="driveDimensionTime" />
  18. <result column="dimension" jdbcType="VARCHAR" property="dimension" />
  19. <result column="demand_filter_sort_strategy" jdbcType="VARCHAR" property="demandFilterSortStrategy" />
  20. <result column="demand_type" jdbcType="VARCHAR" property="demandType" />
  21. <result column="demand_content_id" jdbcType="VARCHAR" property="demandContentId" />
  22. <result column="demand_content_title" jdbcType="VARCHAR" property="demandContentTitle" />
  23. <result column="demand_content_topic" jdbcType="VARCHAR" property="demandContentTopic" />
  24. <result column="point_type" jdbcType="VARCHAR" property="pointType" />
  25. <result column="standard_element" jdbcType="VARCHAR" property="standardElement" />
  26. <result column="category_name" jdbcType="VARCHAR" property="categoryName" />
  27. <result column="crowd_count" jdbcType="INTEGER" property="crowdCount" />
  28. <result column="video_count" jdbcType="INTEGER" property="videoCount" />
  29. <result column="visit_uv" jdbcType="BIGINT" property="visitUv" />
  30. <result column="uv_ratio" jdbcType="DOUBLE" property="uvRatio" />
  31. <result column="total_rov" jdbcType="DOUBLE" property="totalRov" />
  32. <result column="match_experiment_id" jdbcType="VARCHAR" property="matchExperimentId" />
  33. <result column="video_id" jdbcType="BIGINT" property="videoId" />
  34. <result column="config_code" jdbcType="VARCHAR" property="configCode" />
  35. <result column="score" jdbcType="DOUBLE" property="score" />
  36. <result column="sim" jdbcType="DOUBLE" property="sim" />
  37. <result column="rov" jdbcType="DOUBLE" property="rov" />
  38. <result column="match_text" jdbcType="VARCHAR" property="matchText" />
  39. <result column="title" jdbcType="VARCHAR" property="title" />
  40. <result column="cover" jdbcType="VARCHAR" property="cover" />
  41. <result column="video" jdbcType="VARCHAR" property="video" />
  42. <result column="experiment_id" jdbcType="VARCHAR" property="experimentId" />
  43. <result column="status" jdbcType="INTEGER" property="status" />
  44. <result column="create_timestamp" jdbcType="BIGINT" property="createTimestamp" />
  45. <result column="update_timestamp" jdbcType="BIGINT" property="updateTimestamp" />
  46. </resultMap>
  47. <sql id="Example_Where_Clause">
  48. <where>
  49. <foreach collection="oredCriteria" item="criteria" separator="or">
  50. <if test="criteria.valid">
  51. <trim prefix="(" prefixOverrides="and" suffix=")">
  52. <foreach collection="criteria.criteria" item="criterion">
  53. <choose>
  54. <when test="criterion.noValue">
  55. and ${criterion.condition}
  56. </when>
  57. <when test="criterion.singleValue">
  58. and ${criterion.condition} #{criterion.value}
  59. </when>
  60. <when test="criterion.betweenValue">
  61. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  62. </when>
  63. <when test="criterion.listValue">
  64. and ${criterion.condition}
  65. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  66. #{listItem}
  67. </foreach>
  68. </when>
  69. </choose>
  70. </foreach>
  71. </trim>
  72. </if>
  73. </foreach>
  74. </where>
  75. </sql>
  76. <sql id="Update_By_Example_Where_Clause">
  77. <where>
  78. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  79. <if test="criteria.valid">
  80. <trim prefix="(" prefixOverrides="and" suffix=")">
  81. <foreach collection="criteria.criteria" item="criterion">
  82. <choose>
  83. <when test="criterion.noValue">
  84. and ${criterion.condition}
  85. </when>
  86. <when test="criterion.singleValue">
  87. and ${criterion.condition} #{criterion.value}
  88. </when>
  89. <when test="criterion.betweenValue">
  90. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  91. </when>
  92. <when test="criterion.listValue">
  93. and ${criterion.condition}
  94. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  95. #{listItem}
  96. </foreach>
  97. </when>
  98. </choose>
  99. </foreach>
  100. </trim>
  101. </if>
  102. </foreach>
  103. </where>
  104. </sql>
  105. <sql id="Base_Column_List">
  106. id, dt, online_action, channel_name, crowd_segment, demand_id, crowd_package, conversion_target,
  107. partner, account, scene_value, demand_strategy, drive_dimension_time, dimension,
  108. demand_filter_sort_strategy, demand_type, demand_content_id, demand_content_title,
  109. demand_content_topic, point_type, standard_element, category_name, crowd_count, video_count,
  110. visit_uv, uv_ratio, total_rov, match_experiment_id, video_id, config_code, score,
  111. sim, rov, match_text, title, cover, video, experiment_id, `status`, create_timestamp,
  112. update_timestamp
  113. </sql>
  114. <select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideoExample" resultMap="BaseResultMap">
  115. select
  116. <if test="distinct">
  117. distinct
  118. </if>
  119. <include refid="Base_Column_List" />
  120. from content_platform_demand_video
  121. <if test="_parameter != null">
  122. <include refid="Example_Where_Clause" />
  123. </if>
  124. <if test="orderByClause != null">
  125. order by ${orderByClause}
  126. </if>
  127. <if test="page != null">
  128. limit #{page.offset} , #{page.pageSize}
  129. </if>
  130. </select>
  131. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  132. select
  133. <include refid="Base_Column_List" />
  134. from content_platform_demand_video
  135. where id = #{id,jdbcType=BIGINT}
  136. </select>
  137. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  138. delete from content_platform_demand_video
  139. where id = #{id,jdbcType=BIGINT}
  140. </delete>
  141. <delete id="deleteByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideoExample">
  142. delete from content_platform_demand_video
  143. <if test="_parameter != null">
  144. <include refid="Example_Where_Clause" />
  145. </if>
  146. </delete>
  147. <insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
  148. insert into content_platform_demand_video (id, dt, online_action,
  149. channel_name, crowd_segment, demand_id,
  150. crowd_package, conversion_target, partner,
  151. account, scene_value, demand_strategy,
  152. drive_dimension_time, dimension, demand_filter_sort_strategy,
  153. demand_type, demand_content_id, demand_content_title,
  154. demand_content_topic, point_type, standard_element,
  155. category_name, crowd_count, video_count,
  156. visit_uv, uv_ratio, total_rov,
  157. match_experiment_id, video_id, config_code,
  158. score, sim, rov, match_text,
  159. title, cover, video,
  160. experiment_id, `status`, create_timestamp,
  161. update_timestamp)
  162. values (#{id,jdbcType=BIGINT}, #{dt,jdbcType=VARCHAR}, #{onlineAction,jdbcType=VARCHAR},
  163. #{channelName,jdbcType=VARCHAR}, #{crowdSegment,jdbcType=VARCHAR}, #{demandId,jdbcType=VARCHAR},
  164. #{crowdPackage,jdbcType=VARCHAR}, #{conversionTarget,jdbcType=VARCHAR}, #{partner,jdbcType=VARCHAR},
  165. #{account,jdbcType=VARCHAR}, #{sceneValue,jdbcType=VARCHAR}, #{demandStrategy,jdbcType=VARCHAR},
  166. #{driveDimensionTime,jdbcType=VARCHAR}, #{dimension,jdbcType=VARCHAR}, #{demandFilterSortStrategy,jdbcType=VARCHAR},
  167. #{demandType,jdbcType=VARCHAR}, #{demandContentId,jdbcType=VARCHAR}, #{demandContentTitle,jdbcType=VARCHAR},
  168. #{demandContentTopic,jdbcType=VARCHAR}, #{pointType,jdbcType=VARCHAR}, #{standardElement,jdbcType=VARCHAR},
  169. #{categoryName,jdbcType=VARCHAR}, #{crowdCount,jdbcType=INTEGER}, #{videoCount,jdbcType=INTEGER},
  170. #{visitUv,jdbcType=BIGINT}, #{uvRatio,jdbcType=DOUBLE}, #{totalRov,jdbcType=DOUBLE},
  171. #{matchExperimentId,jdbcType=VARCHAR}, #{videoId,jdbcType=BIGINT}, #{configCode,jdbcType=VARCHAR},
  172. #{score,jdbcType=DOUBLE}, #{sim,jdbcType=DOUBLE}, #{rov,jdbcType=DOUBLE}, #{matchText,jdbcType=VARCHAR},
  173. #{title,jdbcType=VARCHAR}, #{cover,jdbcType=VARCHAR}, #{video,jdbcType=VARCHAR},
  174. #{experimentId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTimestamp,jdbcType=BIGINT},
  175. #{updateTimestamp,jdbcType=BIGINT})
  176. </insert>
  177. <insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
  178. insert into content_platform_demand_video
  179. <trim prefix="(" suffix=")" suffixOverrides=",">
  180. <if test="id != null">
  181. id,
  182. </if>
  183. <if test="dt != null">
  184. dt,
  185. </if>
  186. <if test="onlineAction != null">
  187. online_action,
  188. </if>
  189. <if test="channelName != null">
  190. channel_name,
  191. </if>
  192. <if test="crowdSegment != null">
  193. crowd_segment,
  194. </if>
  195. <if test="demandId != null">
  196. demand_id,
  197. </if>
  198. <if test="crowdPackage != null">
  199. crowd_package,
  200. </if>
  201. <if test="conversionTarget != null">
  202. conversion_target,
  203. </if>
  204. <if test="partner != null">
  205. partner,
  206. </if>
  207. <if test="account != null">
  208. account,
  209. </if>
  210. <if test="sceneValue != null">
  211. scene_value,
  212. </if>
  213. <if test="demandStrategy != null">
  214. demand_strategy,
  215. </if>
  216. <if test="driveDimensionTime != null">
  217. drive_dimension_time,
  218. </if>
  219. <if test="dimension != null">
  220. dimension,
  221. </if>
  222. <if test="demandFilterSortStrategy != null">
  223. demand_filter_sort_strategy,
  224. </if>
  225. <if test="demandType != null">
  226. demand_type,
  227. </if>
  228. <if test="demandContentId != null">
  229. demand_content_id,
  230. </if>
  231. <if test="demandContentTitle != null">
  232. demand_content_title,
  233. </if>
  234. <if test="demandContentTopic != null">
  235. demand_content_topic,
  236. </if>
  237. <if test="pointType != null">
  238. point_type,
  239. </if>
  240. <if test="standardElement != null">
  241. standard_element,
  242. </if>
  243. <if test="categoryName != null">
  244. category_name,
  245. </if>
  246. <if test="crowdCount != null">
  247. crowd_count,
  248. </if>
  249. <if test="videoCount != null">
  250. video_count,
  251. </if>
  252. <if test="visitUv != null">
  253. visit_uv,
  254. </if>
  255. <if test="uvRatio != null">
  256. uv_ratio,
  257. </if>
  258. <if test="totalRov != null">
  259. total_rov,
  260. </if>
  261. <if test="matchExperimentId != null">
  262. match_experiment_id,
  263. </if>
  264. <if test="videoId != null">
  265. video_id,
  266. </if>
  267. <if test="configCode != null">
  268. config_code,
  269. </if>
  270. <if test="score != null">
  271. score,
  272. </if>
  273. <if test="sim != null">
  274. sim,
  275. </if>
  276. <if test="rov != null">
  277. rov,
  278. </if>
  279. <if test="matchText != null">
  280. match_text,
  281. </if>
  282. <if test="title != null">
  283. title,
  284. </if>
  285. <if test="cover != null">
  286. cover,
  287. </if>
  288. <if test="video != null">
  289. video,
  290. </if>
  291. <if test="experimentId != null">
  292. experiment_id,
  293. </if>
  294. <if test="status != null">
  295. `status`,
  296. </if>
  297. <if test="createTimestamp != null">
  298. create_timestamp,
  299. </if>
  300. <if test="updateTimestamp != null">
  301. update_timestamp,
  302. </if>
  303. </trim>
  304. <trim prefix="values (" suffix=")" suffixOverrides=",">
  305. <if test="id != null">
  306. #{id,jdbcType=BIGINT},
  307. </if>
  308. <if test="dt != null">
  309. #{dt,jdbcType=VARCHAR},
  310. </if>
  311. <if test="onlineAction != null">
  312. #{onlineAction,jdbcType=VARCHAR},
  313. </if>
  314. <if test="channelName != null">
  315. #{channelName,jdbcType=VARCHAR},
  316. </if>
  317. <if test="crowdSegment != null">
  318. #{crowdSegment,jdbcType=VARCHAR},
  319. </if>
  320. <if test="demandId != null">
  321. #{demandId,jdbcType=VARCHAR},
  322. </if>
  323. <if test="crowdPackage != null">
  324. #{crowdPackage,jdbcType=VARCHAR},
  325. </if>
  326. <if test="conversionTarget != null">
  327. #{conversionTarget,jdbcType=VARCHAR},
  328. </if>
  329. <if test="partner != null">
  330. #{partner,jdbcType=VARCHAR},
  331. </if>
  332. <if test="account != null">
  333. #{account,jdbcType=VARCHAR},
  334. </if>
  335. <if test="sceneValue != null">
  336. #{sceneValue,jdbcType=VARCHAR},
  337. </if>
  338. <if test="demandStrategy != null">
  339. #{demandStrategy,jdbcType=VARCHAR},
  340. </if>
  341. <if test="driveDimensionTime != null">
  342. #{driveDimensionTime,jdbcType=VARCHAR},
  343. </if>
  344. <if test="dimension != null">
  345. #{dimension,jdbcType=VARCHAR},
  346. </if>
  347. <if test="demandFilterSortStrategy != null">
  348. #{demandFilterSortStrategy,jdbcType=VARCHAR},
  349. </if>
  350. <if test="demandType != null">
  351. #{demandType,jdbcType=VARCHAR},
  352. </if>
  353. <if test="demandContentId != null">
  354. #{demandContentId,jdbcType=VARCHAR},
  355. </if>
  356. <if test="demandContentTitle != null">
  357. #{demandContentTitle,jdbcType=VARCHAR},
  358. </if>
  359. <if test="demandContentTopic != null">
  360. #{demandContentTopic,jdbcType=VARCHAR},
  361. </if>
  362. <if test="pointType != null">
  363. #{pointType,jdbcType=VARCHAR},
  364. </if>
  365. <if test="standardElement != null">
  366. #{standardElement,jdbcType=VARCHAR},
  367. </if>
  368. <if test="categoryName != null">
  369. #{categoryName,jdbcType=VARCHAR},
  370. </if>
  371. <if test="crowdCount != null">
  372. #{crowdCount,jdbcType=INTEGER},
  373. </if>
  374. <if test="videoCount != null">
  375. #{videoCount,jdbcType=INTEGER},
  376. </if>
  377. <if test="visitUv != null">
  378. #{visitUv,jdbcType=BIGINT},
  379. </if>
  380. <if test="uvRatio != null">
  381. #{uvRatio,jdbcType=DOUBLE},
  382. </if>
  383. <if test="totalRov != null">
  384. #{totalRov,jdbcType=DOUBLE},
  385. </if>
  386. <if test="matchExperimentId != null">
  387. #{matchExperimentId,jdbcType=VARCHAR},
  388. </if>
  389. <if test="videoId != null">
  390. #{videoId,jdbcType=BIGINT},
  391. </if>
  392. <if test="configCode != null">
  393. #{configCode,jdbcType=VARCHAR},
  394. </if>
  395. <if test="score != null">
  396. #{score,jdbcType=DOUBLE},
  397. </if>
  398. <if test="sim != null">
  399. #{sim,jdbcType=DOUBLE},
  400. </if>
  401. <if test="rov != null">
  402. #{rov,jdbcType=DOUBLE},
  403. </if>
  404. <if test="matchText != null">
  405. #{matchText,jdbcType=VARCHAR},
  406. </if>
  407. <if test="title != null">
  408. #{title,jdbcType=VARCHAR},
  409. </if>
  410. <if test="cover != null">
  411. #{cover,jdbcType=VARCHAR},
  412. </if>
  413. <if test="video != null">
  414. #{video,jdbcType=VARCHAR},
  415. </if>
  416. <if test="experimentId != null">
  417. #{experimentId,jdbcType=VARCHAR},
  418. </if>
  419. <if test="status != null">
  420. #{status,jdbcType=INTEGER},
  421. </if>
  422. <if test="createTimestamp != null">
  423. #{createTimestamp,jdbcType=BIGINT},
  424. </if>
  425. <if test="updateTimestamp != null">
  426. #{updateTimestamp,jdbcType=BIGINT},
  427. </if>
  428. </trim>
  429. </insert>
  430. <select id="countByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideoExample" resultType="java.lang.Long">
  431. select count(*) from content_platform_demand_video
  432. <if test="_parameter != null">
  433. <include refid="Example_Where_Clause" />
  434. </if>
  435. </select>
  436. <update id="updateByExampleSelective" parameterType="map">
  437. update content_platform_demand_video
  438. <set>
  439. <if test="record.id != null">
  440. id = #{record.id,jdbcType=BIGINT},
  441. </if>
  442. <if test="record.dt != null">
  443. dt = #{record.dt,jdbcType=VARCHAR},
  444. </if>
  445. <if test="record.onlineAction != null">
  446. online_action = #{record.onlineAction,jdbcType=VARCHAR},
  447. </if>
  448. <if test="record.channelName != null">
  449. channel_name = #{record.channelName,jdbcType=VARCHAR},
  450. </if>
  451. <if test="record.crowdSegment != null">
  452. crowd_segment = #{record.crowdSegment,jdbcType=VARCHAR},
  453. </if>
  454. <if test="record.demandId != null">
  455. demand_id = #{record.demandId,jdbcType=VARCHAR},
  456. </if>
  457. <if test="record.crowdPackage != null">
  458. crowd_package = #{record.crowdPackage,jdbcType=VARCHAR},
  459. </if>
  460. <if test="record.conversionTarget != null">
  461. conversion_target = #{record.conversionTarget,jdbcType=VARCHAR},
  462. </if>
  463. <if test="record.partner != null">
  464. partner = #{record.partner,jdbcType=VARCHAR},
  465. </if>
  466. <if test="record.account != null">
  467. account = #{record.account,jdbcType=VARCHAR},
  468. </if>
  469. <if test="record.sceneValue != null">
  470. scene_value = #{record.sceneValue,jdbcType=VARCHAR},
  471. </if>
  472. <if test="record.demandStrategy != null">
  473. demand_strategy = #{record.demandStrategy,jdbcType=VARCHAR},
  474. </if>
  475. <if test="record.driveDimensionTime != null">
  476. drive_dimension_time = #{record.driveDimensionTime,jdbcType=VARCHAR},
  477. </if>
  478. <if test="record.dimension != null">
  479. dimension = #{record.dimension,jdbcType=VARCHAR},
  480. </if>
  481. <if test="record.demandFilterSortStrategy != null">
  482. demand_filter_sort_strategy = #{record.demandFilterSortStrategy,jdbcType=VARCHAR},
  483. </if>
  484. <if test="record.demandType != null">
  485. demand_type = #{record.demandType,jdbcType=VARCHAR},
  486. </if>
  487. <if test="record.demandContentId != null">
  488. demand_content_id = #{record.demandContentId,jdbcType=VARCHAR},
  489. </if>
  490. <if test="record.demandContentTitle != null">
  491. demand_content_title = #{record.demandContentTitle,jdbcType=VARCHAR},
  492. </if>
  493. <if test="record.demandContentTopic != null">
  494. demand_content_topic = #{record.demandContentTopic,jdbcType=VARCHAR},
  495. </if>
  496. <if test="record.pointType != null">
  497. point_type = #{record.pointType,jdbcType=VARCHAR},
  498. </if>
  499. <if test="record.standardElement != null">
  500. standard_element = #{record.standardElement,jdbcType=VARCHAR},
  501. </if>
  502. <if test="record.categoryName != null">
  503. category_name = #{record.categoryName,jdbcType=VARCHAR},
  504. </if>
  505. <if test="record.crowdCount != null">
  506. crowd_count = #{record.crowdCount,jdbcType=INTEGER},
  507. </if>
  508. <if test="record.videoCount != null">
  509. video_count = #{record.videoCount,jdbcType=INTEGER},
  510. </if>
  511. <if test="record.visitUv != null">
  512. visit_uv = #{record.visitUv,jdbcType=BIGINT},
  513. </if>
  514. <if test="record.uvRatio != null">
  515. uv_ratio = #{record.uvRatio,jdbcType=DOUBLE},
  516. </if>
  517. <if test="record.totalRov != null">
  518. total_rov = #{record.totalRov,jdbcType=DOUBLE},
  519. </if>
  520. <if test="record.matchExperimentId != null">
  521. match_experiment_id = #{record.matchExperimentId,jdbcType=VARCHAR},
  522. </if>
  523. <if test="record.videoId != null">
  524. video_id = #{record.videoId,jdbcType=BIGINT},
  525. </if>
  526. <if test="record.configCode != null">
  527. config_code = #{record.configCode,jdbcType=VARCHAR},
  528. </if>
  529. <if test="record.score != null">
  530. score = #{record.score,jdbcType=DOUBLE},
  531. </if>
  532. <if test="record.sim != null">
  533. sim = #{record.sim,jdbcType=DOUBLE},
  534. </if>
  535. <if test="record.rov != null">
  536. rov = #{record.rov,jdbcType=DOUBLE},
  537. </if>
  538. <if test="record.matchText != null">
  539. match_text = #{record.matchText,jdbcType=VARCHAR},
  540. </if>
  541. <if test="record.title != null">
  542. title = #{record.title,jdbcType=VARCHAR},
  543. </if>
  544. <if test="record.cover != null">
  545. cover = #{record.cover,jdbcType=VARCHAR},
  546. </if>
  547. <if test="record.video != null">
  548. video = #{record.video,jdbcType=VARCHAR},
  549. </if>
  550. <if test="record.experimentId != null">
  551. experiment_id = #{record.experimentId,jdbcType=VARCHAR},
  552. </if>
  553. <if test="record.status != null">
  554. `status` = #{record.status,jdbcType=INTEGER},
  555. </if>
  556. <if test="record.createTimestamp != null">
  557. create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
  558. </if>
  559. <if test="record.updateTimestamp != null">
  560. update_timestamp = #{record.updateTimestamp,jdbcType=BIGINT},
  561. </if>
  562. </set>
  563. <if test="_parameter != null">
  564. <include refid="Update_By_Example_Where_Clause" />
  565. </if>
  566. </update>
  567. <update id="updateByExample" parameterType="map">
  568. update content_platform_demand_video
  569. set id = #{record.id,jdbcType=BIGINT},
  570. dt = #{record.dt,jdbcType=VARCHAR},
  571. online_action = #{record.onlineAction,jdbcType=VARCHAR},
  572. channel_name = #{record.channelName,jdbcType=VARCHAR},
  573. crowd_segment = #{record.crowdSegment,jdbcType=VARCHAR},
  574. demand_id = #{record.demandId,jdbcType=VARCHAR},
  575. crowd_package = #{record.crowdPackage,jdbcType=VARCHAR},
  576. conversion_target = #{record.conversionTarget,jdbcType=VARCHAR},
  577. partner = #{record.partner,jdbcType=VARCHAR},
  578. account = #{record.account,jdbcType=VARCHAR},
  579. scene_value = #{record.sceneValue,jdbcType=VARCHAR},
  580. demand_strategy = #{record.demandStrategy,jdbcType=VARCHAR},
  581. drive_dimension_time = #{record.driveDimensionTime,jdbcType=VARCHAR},
  582. dimension = #{record.dimension,jdbcType=VARCHAR},
  583. demand_filter_sort_strategy = #{record.demandFilterSortStrategy,jdbcType=VARCHAR},
  584. demand_type = #{record.demandType,jdbcType=VARCHAR},
  585. demand_content_id = #{record.demandContentId,jdbcType=VARCHAR},
  586. demand_content_title = #{record.demandContentTitle,jdbcType=VARCHAR},
  587. demand_content_topic = #{record.demandContentTopic,jdbcType=VARCHAR},
  588. point_type = #{record.pointType,jdbcType=VARCHAR},
  589. standard_element = #{record.standardElement,jdbcType=VARCHAR},
  590. category_name = #{record.categoryName,jdbcType=VARCHAR},
  591. crowd_count = #{record.crowdCount,jdbcType=INTEGER},
  592. video_count = #{record.videoCount,jdbcType=INTEGER},
  593. visit_uv = #{record.visitUv,jdbcType=BIGINT},
  594. uv_ratio = #{record.uvRatio,jdbcType=DOUBLE},
  595. total_rov = #{record.totalRov,jdbcType=DOUBLE},
  596. match_experiment_id = #{record.matchExperimentId,jdbcType=VARCHAR},
  597. video_id = #{record.videoId,jdbcType=BIGINT},
  598. config_code = #{record.configCode,jdbcType=VARCHAR},
  599. score = #{record.score,jdbcType=DOUBLE},
  600. sim = #{record.sim,jdbcType=DOUBLE},
  601. rov = #{record.rov,jdbcType=DOUBLE},
  602. match_text = #{record.matchText,jdbcType=VARCHAR},
  603. title = #{record.title,jdbcType=VARCHAR},
  604. cover = #{record.cover,jdbcType=VARCHAR},
  605. video = #{record.video,jdbcType=VARCHAR},
  606. experiment_id = #{record.experimentId,jdbcType=VARCHAR},
  607. `status` = #{record.status,jdbcType=INTEGER},
  608. create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
  609. update_timestamp = #{record.updateTimestamp,jdbcType=BIGINT}
  610. <if test="_parameter != null">
  611. <include refid="Update_By_Example_Where_Clause" />
  612. </if>
  613. </update>
  614. <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
  615. update content_platform_demand_video
  616. <set>
  617. <if test="dt != null">
  618. dt = #{dt,jdbcType=VARCHAR},
  619. </if>
  620. <if test="onlineAction != null">
  621. online_action = #{onlineAction,jdbcType=VARCHAR},
  622. </if>
  623. <if test="channelName != null">
  624. channel_name = #{channelName,jdbcType=VARCHAR},
  625. </if>
  626. <if test="crowdSegment != null">
  627. crowd_segment = #{crowdSegment,jdbcType=VARCHAR},
  628. </if>
  629. <if test="demandId != null">
  630. demand_id = #{demandId,jdbcType=VARCHAR},
  631. </if>
  632. <if test="crowdPackage != null">
  633. crowd_package = #{crowdPackage,jdbcType=VARCHAR},
  634. </if>
  635. <if test="conversionTarget != null">
  636. conversion_target = #{conversionTarget,jdbcType=VARCHAR},
  637. </if>
  638. <if test="partner != null">
  639. partner = #{partner,jdbcType=VARCHAR},
  640. </if>
  641. <if test="account != null">
  642. account = #{account,jdbcType=VARCHAR},
  643. </if>
  644. <if test="sceneValue != null">
  645. scene_value = #{sceneValue,jdbcType=VARCHAR},
  646. </if>
  647. <if test="demandStrategy != null">
  648. demand_strategy = #{demandStrategy,jdbcType=VARCHAR},
  649. </if>
  650. <if test="driveDimensionTime != null">
  651. drive_dimension_time = #{driveDimensionTime,jdbcType=VARCHAR},
  652. </if>
  653. <if test="dimension != null">
  654. dimension = #{dimension,jdbcType=VARCHAR},
  655. </if>
  656. <if test="demandFilterSortStrategy != null">
  657. demand_filter_sort_strategy = #{demandFilterSortStrategy,jdbcType=VARCHAR},
  658. </if>
  659. <if test="demandType != null">
  660. demand_type = #{demandType,jdbcType=VARCHAR},
  661. </if>
  662. <if test="demandContentId != null">
  663. demand_content_id = #{demandContentId,jdbcType=VARCHAR},
  664. </if>
  665. <if test="demandContentTitle != null">
  666. demand_content_title = #{demandContentTitle,jdbcType=VARCHAR},
  667. </if>
  668. <if test="demandContentTopic != null">
  669. demand_content_topic = #{demandContentTopic,jdbcType=VARCHAR},
  670. </if>
  671. <if test="pointType != null">
  672. point_type = #{pointType,jdbcType=VARCHAR},
  673. </if>
  674. <if test="standardElement != null">
  675. standard_element = #{standardElement,jdbcType=VARCHAR},
  676. </if>
  677. <if test="categoryName != null">
  678. category_name = #{categoryName,jdbcType=VARCHAR},
  679. </if>
  680. <if test="crowdCount != null">
  681. crowd_count = #{crowdCount,jdbcType=INTEGER},
  682. </if>
  683. <if test="videoCount != null">
  684. video_count = #{videoCount,jdbcType=INTEGER},
  685. </if>
  686. <if test="visitUv != null">
  687. visit_uv = #{visitUv,jdbcType=BIGINT},
  688. </if>
  689. <if test="uvRatio != null">
  690. uv_ratio = #{uvRatio,jdbcType=DOUBLE},
  691. </if>
  692. <if test="totalRov != null">
  693. total_rov = #{totalRov,jdbcType=DOUBLE},
  694. </if>
  695. <if test="matchExperimentId != null">
  696. match_experiment_id = #{matchExperimentId,jdbcType=VARCHAR},
  697. </if>
  698. <if test="videoId != null">
  699. video_id = #{videoId,jdbcType=BIGINT},
  700. </if>
  701. <if test="configCode != null">
  702. config_code = #{configCode,jdbcType=VARCHAR},
  703. </if>
  704. <if test="score != null">
  705. score = #{score,jdbcType=DOUBLE},
  706. </if>
  707. <if test="sim != null">
  708. sim = #{sim,jdbcType=DOUBLE},
  709. </if>
  710. <if test="rov != null">
  711. rov = #{rov,jdbcType=DOUBLE},
  712. </if>
  713. <if test="matchText != null">
  714. match_text = #{matchText,jdbcType=VARCHAR},
  715. </if>
  716. <if test="title != null">
  717. title = #{title,jdbcType=VARCHAR},
  718. </if>
  719. <if test="cover != null">
  720. cover = #{cover,jdbcType=VARCHAR},
  721. </if>
  722. <if test="video != null">
  723. video = #{video,jdbcType=VARCHAR},
  724. </if>
  725. <if test="experimentId != null">
  726. experiment_id = #{experimentId,jdbcType=VARCHAR},
  727. </if>
  728. <if test="status != null">
  729. `status` = #{status,jdbcType=INTEGER},
  730. </if>
  731. <if test="createTimestamp != null">
  732. create_timestamp = #{createTimestamp,jdbcType=BIGINT},
  733. </if>
  734. <if test="updateTimestamp != null">
  735. update_timestamp = #{updateTimestamp,jdbcType=BIGINT},
  736. </if>
  737. </set>
  738. where id = #{id,jdbcType=BIGINT}
  739. </update>
  740. <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
  741. update content_platform_demand_video
  742. set dt = #{dt,jdbcType=VARCHAR},
  743. online_action = #{onlineAction,jdbcType=VARCHAR},
  744. channel_name = #{channelName,jdbcType=VARCHAR},
  745. crowd_segment = #{crowdSegment,jdbcType=VARCHAR},
  746. demand_id = #{demandId,jdbcType=VARCHAR},
  747. crowd_package = #{crowdPackage,jdbcType=VARCHAR},
  748. conversion_target = #{conversionTarget,jdbcType=VARCHAR},
  749. partner = #{partner,jdbcType=VARCHAR},
  750. account = #{account,jdbcType=VARCHAR},
  751. scene_value = #{sceneValue,jdbcType=VARCHAR},
  752. demand_strategy = #{demandStrategy,jdbcType=VARCHAR},
  753. drive_dimension_time = #{driveDimensionTime,jdbcType=VARCHAR},
  754. dimension = #{dimension,jdbcType=VARCHAR},
  755. demand_filter_sort_strategy = #{demandFilterSortStrategy,jdbcType=VARCHAR},
  756. demand_type = #{demandType,jdbcType=VARCHAR},
  757. demand_content_id = #{demandContentId,jdbcType=VARCHAR},
  758. demand_content_title = #{demandContentTitle,jdbcType=VARCHAR},
  759. demand_content_topic = #{demandContentTopic,jdbcType=VARCHAR},
  760. point_type = #{pointType,jdbcType=VARCHAR},
  761. standard_element = #{standardElement,jdbcType=VARCHAR},
  762. category_name = #{categoryName,jdbcType=VARCHAR},
  763. crowd_count = #{crowdCount,jdbcType=INTEGER},
  764. video_count = #{videoCount,jdbcType=INTEGER},
  765. visit_uv = #{visitUv,jdbcType=BIGINT},
  766. uv_ratio = #{uvRatio,jdbcType=DOUBLE},
  767. total_rov = #{totalRov,jdbcType=DOUBLE},
  768. match_experiment_id = #{matchExperimentId,jdbcType=VARCHAR},
  769. video_id = #{videoId,jdbcType=BIGINT},
  770. config_code = #{configCode,jdbcType=VARCHAR},
  771. score = #{score,jdbcType=DOUBLE},
  772. sim = #{sim,jdbcType=DOUBLE},
  773. rov = #{rov,jdbcType=DOUBLE},
  774. match_text = #{matchText,jdbcType=VARCHAR},
  775. title = #{title,jdbcType=VARCHAR},
  776. cover = #{cover,jdbcType=VARCHAR},
  777. video = #{video,jdbcType=VARCHAR},
  778. experiment_id = #{experimentId,jdbcType=VARCHAR},
  779. `status` = #{status,jdbcType=INTEGER},
  780. create_timestamp = #{createTimestamp,jdbcType=BIGINT},
  781. update_timestamp = #{updateTimestamp,jdbcType=BIGINT}
  782. where id = #{id,jdbcType=BIGINT}
  783. </update>
  784. </mapper>