ContentPlatformDemandVideoMapper.xml 32 KB

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