ContentPlatformDemandVideoMapper.xml 35 KB

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