CreativeVideoSummarizeMapper.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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.featurestools.dao.mapper.CreativeVideoSummarizeMapper">
  4. <resultMap id="BaseResultMap" type="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarize">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="creative_video_understander_id" jdbcType="BIGINT" property="creativeVideoUnderstanderId" />
  7. <result column="creative_id" jdbcType="BIGINT" property="creativeId" />
  8. <result column="feature_name" jdbcType="VARCHAR" property="featureName" />
  9. <result column="ai_word_split" jdbcType="VARCHAR" property="aiWordSplit" />
  10. <result column="nlp_word_split" jdbcType="VARCHAR" property="nlpWordSplit" />
  11. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  12. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  13. </resultMap>
  14. <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarize">
  15. <result column="embedding" jdbcType="LONGVARCHAR" property="embedding" />
  16. </resultMap>
  17. <sql id="Example_Where_Clause">
  18. <where>
  19. <foreach collection="oredCriteria" item="criteria" separator="or">
  20. <if test="criteria.valid">
  21. <trim prefix="(" prefixOverrides="and" suffix=")">
  22. <foreach collection="criteria.criteria" item="criterion">
  23. <choose>
  24. <when test="criterion.noValue">
  25. and ${criterion.condition}
  26. </when>
  27. <when test="criterion.singleValue">
  28. and ${criterion.condition} #{criterion.value}
  29. </when>
  30. <when test="criterion.betweenValue">
  31. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  32. </when>
  33. <when test="criterion.listValue">
  34. and ${criterion.condition}
  35. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  36. #{listItem}
  37. </foreach>
  38. </when>
  39. </choose>
  40. </foreach>
  41. </trim>
  42. </if>
  43. </foreach>
  44. </where>
  45. </sql>
  46. <sql id="Update_By_Example_Where_Clause">
  47. <where>
  48. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  49. <if test="criteria.valid">
  50. <trim prefix="(" prefixOverrides="and" suffix=")">
  51. <foreach collection="criteria.criteria" item="criterion">
  52. <choose>
  53. <when test="criterion.noValue">
  54. and ${criterion.condition}
  55. </when>
  56. <when test="criterion.singleValue">
  57. and ${criterion.condition} #{criterion.value}
  58. </when>
  59. <when test="criterion.betweenValue">
  60. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  61. </when>
  62. <when test="criterion.listValue">
  63. and ${criterion.condition}
  64. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  65. #{listItem}
  66. </foreach>
  67. </when>
  68. </choose>
  69. </foreach>
  70. </trim>
  71. </if>
  72. </foreach>
  73. </where>
  74. </sql>
  75. <sql id="Base_Column_List">
  76. id, creative_video_understander_id, creative_id, feature_name, ai_word_split, nlp_word_split,
  77. create_time, update_time
  78. </sql>
  79. <sql id="Blob_Column_List">
  80. embedding
  81. </sql>
  82. <select id="selectByExampleWithBLOBs" parameterType="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarizeExample" resultMap="ResultMapWithBLOBs">
  83. select
  84. <if test="distinct">
  85. distinct
  86. </if>
  87. <include refid="Base_Column_List" />
  88. ,
  89. <include refid="Blob_Column_List" />
  90. from creative_video_understander_summarize
  91. <if test="_parameter != null">
  92. <include refid="Example_Where_Clause" />
  93. </if>
  94. <if test="orderByClause != null">
  95. order by ${orderByClause}
  96. </if>
  97. <if test="page != null">
  98. limit #{page.offset} , #{page.pageSize}
  99. </if>
  100. </select>
  101. <select id="selectByExample" parameterType="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarizeExample" resultMap="BaseResultMap">
  102. select
  103. <if test="distinct">
  104. distinct
  105. </if>
  106. <include refid="Base_Column_List" />
  107. from creative_video_understander_summarize
  108. <if test="_parameter != null">
  109. <include refid="Example_Where_Clause" />
  110. </if>
  111. <if test="orderByClause != null">
  112. order by ${orderByClause}
  113. </if>
  114. <if test="page != null">
  115. limit #{page.offset} , #{page.pageSize}
  116. </if>
  117. </select>
  118. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
  119. select
  120. <include refid="Base_Column_List" />
  121. ,
  122. <include refid="Blob_Column_List" />
  123. from creative_video_understander_summarize
  124. where id = #{id,jdbcType=BIGINT}
  125. </select>
  126. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  127. delete from creative_video_understander_summarize
  128. where id = #{id,jdbcType=BIGINT}
  129. </delete>
  130. <delete id="deleteByExample" parameterType="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarizeExample">
  131. delete from creative_video_understander_summarize
  132. <if test="_parameter != null">
  133. <include refid="Example_Where_Clause" />
  134. </if>
  135. </delete>
  136. <insert id="insert" parameterType="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarize">
  137. insert into creative_video_understander_summarize (id, creative_video_understander_id, creative_id,
  138. feature_name, ai_word_split, nlp_word_split,
  139. create_time, update_time, embedding
  140. )
  141. values (#{id,jdbcType=BIGINT}, #{creativeVideoUnderstanderId,jdbcType=BIGINT}, #{creativeId,jdbcType=BIGINT},
  142. #{featureName,jdbcType=VARCHAR}, #{aiWordSplit,jdbcType=VARCHAR}, #{nlpWordSplit,jdbcType=VARCHAR},
  143. #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{embedding,jdbcType=LONGVARCHAR}
  144. )
  145. </insert>
  146. <insert id="insertSelective" parameterType="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarize">
  147. insert into creative_video_understander_summarize
  148. <trim prefix="(" suffix=")" suffixOverrides=",">
  149. <if test="id != null">
  150. id,
  151. </if>
  152. <if test="creativeVideoUnderstanderId != null">
  153. creative_video_understander_id,
  154. </if>
  155. <if test="creativeId != null">
  156. creative_id,
  157. </if>
  158. <if test="featureName != null">
  159. feature_name,
  160. </if>
  161. <if test="aiWordSplit != null">
  162. ai_word_split,
  163. </if>
  164. <if test="nlpWordSplit != null">
  165. nlp_word_split,
  166. </if>
  167. <if test="createTime != null">
  168. create_time,
  169. </if>
  170. <if test="updateTime != null">
  171. update_time,
  172. </if>
  173. <if test="embedding != null">
  174. embedding,
  175. </if>
  176. </trim>
  177. <trim prefix="values (" suffix=")" suffixOverrides=",">
  178. <if test="id != null">
  179. #{id,jdbcType=BIGINT},
  180. </if>
  181. <if test="creativeVideoUnderstanderId != null">
  182. #{creativeVideoUnderstanderId,jdbcType=BIGINT},
  183. </if>
  184. <if test="creativeId != null">
  185. #{creativeId,jdbcType=BIGINT},
  186. </if>
  187. <if test="featureName != null">
  188. #{featureName,jdbcType=VARCHAR},
  189. </if>
  190. <if test="aiWordSplit != null">
  191. #{aiWordSplit,jdbcType=VARCHAR},
  192. </if>
  193. <if test="nlpWordSplit != null">
  194. #{nlpWordSplit,jdbcType=VARCHAR},
  195. </if>
  196. <if test="createTime != null">
  197. #{createTime,jdbcType=TIMESTAMP},
  198. </if>
  199. <if test="updateTime != null">
  200. #{updateTime,jdbcType=TIMESTAMP},
  201. </if>
  202. <if test="embedding != null">
  203. #{embedding,jdbcType=LONGVARCHAR},
  204. </if>
  205. </trim>
  206. </insert>
  207. <select id="countByExample" parameterType="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarizeExample" resultType="java.lang.Long">
  208. select count(*) from creative_video_understander_summarize
  209. <if test="_parameter != null">
  210. <include refid="Example_Where_Clause" />
  211. </if>
  212. </select>
  213. <update id="updateByExampleSelective" parameterType="map">
  214. update creative_video_understander_summarize
  215. <set>
  216. <if test="record.id != null">
  217. id = #{record.id,jdbcType=BIGINT},
  218. </if>
  219. <if test="record.creativeVideoUnderstanderId != null">
  220. creative_video_understander_id = #{record.creativeVideoUnderstanderId,jdbcType=BIGINT},
  221. </if>
  222. <if test="record.creativeId != null">
  223. creative_id = #{record.creativeId,jdbcType=BIGINT},
  224. </if>
  225. <if test="record.featureName != null">
  226. feature_name = #{record.featureName,jdbcType=VARCHAR},
  227. </if>
  228. <if test="record.aiWordSplit != null">
  229. ai_word_split = #{record.aiWordSplit,jdbcType=VARCHAR},
  230. </if>
  231. <if test="record.nlpWordSplit != null">
  232. nlp_word_split = #{record.nlpWordSplit,jdbcType=VARCHAR},
  233. </if>
  234. <if test="record.createTime != null">
  235. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  236. </if>
  237. <if test="record.updateTime != null">
  238. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  239. </if>
  240. <if test="record.embedding != null">
  241. embedding = #{record.embedding,jdbcType=LONGVARCHAR},
  242. </if>
  243. </set>
  244. <if test="_parameter != null">
  245. <include refid="Update_By_Example_Where_Clause" />
  246. </if>
  247. </update>
  248. <update id="updateByExampleWithBLOBs" parameterType="map">
  249. update creative_video_understander_summarize
  250. set id = #{record.id,jdbcType=BIGINT},
  251. creative_video_understander_id = #{record.creativeVideoUnderstanderId,jdbcType=BIGINT},
  252. creative_id = #{record.creativeId,jdbcType=BIGINT},
  253. feature_name = #{record.featureName,jdbcType=VARCHAR},
  254. ai_word_split = #{record.aiWordSplit,jdbcType=VARCHAR},
  255. nlp_word_split = #{record.nlpWordSplit,jdbcType=VARCHAR},
  256. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  257. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  258. embedding = #{record.embedding,jdbcType=LONGVARCHAR}
  259. <if test="_parameter != null">
  260. <include refid="Update_By_Example_Where_Clause" />
  261. </if>
  262. </update>
  263. <update id="updateByExample" parameterType="map">
  264. update creative_video_understander_summarize
  265. set id = #{record.id,jdbcType=BIGINT},
  266. creative_video_understander_id = #{record.creativeVideoUnderstanderId,jdbcType=BIGINT},
  267. creative_id = #{record.creativeId,jdbcType=BIGINT},
  268. feature_name = #{record.featureName,jdbcType=VARCHAR},
  269. ai_word_split = #{record.aiWordSplit,jdbcType=VARCHAR},
  270. nlp_word_split = #{record.nlpWordSplit,jdbcType=VARCHAR},
  271. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  272. update_time = #{record.updateTime,jdbcType=TIMESTAMP}
  273. <if test="_parameter != null">
  274. <include refid="Update_By_Example_Where_Clause" />
  275. </if>
  276. </update>
  277. <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarize">
  278. update creative_video_understander_summarize
  279. <set>
  280. <if test="creativeVideoUnderstanderId != null">
  281. creative_video_understander_id = #{creativeVideoUnderstanderId,jdbcType=BIGINT},
  282. </if>
  283. <if test="creativeId != null">
  284. creative_id = #{creativeId,jdbcType=BIGINT},
  285. </if>
  286. <if test="featureName != null">
  287. feature_name = #{featureName,jdbcType=VARCHAR},
  288. </if>
  289. <if test="aiWordSplit != null">
  290. ai_word_split = #{aiWordSplit,jdbcType=VARCHAR},
  291. </if>
  292. <if test="nlpWordSplit != null">
  293. nlp_word_split = #{nlpWordSplit,jdbcType=VARCHAR},
  294. </if>
  295. <if test="createTime != null">
  296. create_time = #{createTime,jdbcType=TIMESTAMP},
  297. </if>
  298. <if test="updateTime != null">
  299. update_time = #{updateTime,jdbcType=TIMESTAMP},
  300. </if>
  301. <if test="embedding != null">
  302. embedding = #{embedding,jdbcType=LONGVARCHAR},
  303. </if>
  304. </set>
  305. where id = #{id,jdbcType=BIGINT}
  306. </update>
  307. <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarize">
  308. update creative_video_understander_summarize
  309. set creative_video_understander_id = #{creativeVideoUnderstanderId,jdbcType=BIGINT},
  310. creative_id = #{creativeId,jdbcType=BIGINT},
  311. feature_name = #{featureName,jdbcType=VARCHAR},
  312. ai_word_split = #{aiWordSplit,jdbcType=VARCHAR},
  313. nlp_word_split = #{nlpWordSplit,jdbcType=VARCHAR},
  314. create_time = #{createTime,jdbcType=TIMESTAMP},
  315. update_time = #{updateTime,jdbcType=TIMESTAMP},
  316. embedding = #{embedding,jdbcType=LONGVARCHAR}
  317. where id = #{id,jdbcType=BIGINT}
  318. </update>
  319. <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.featurestools.model.po.CreativeVideoSummarize">
  320. update creative_video_understander_summarize
  321. set creative_video_understander_id = #{creativeVideoUnderstanderId,jdbcType=BIGINT},
  322. creative_id = #{creativeId,jdbcType=BIGINT},
  323. feature_name = #{featureName,jdbcType=VARCHAR},
  324. ai_word_split = #{aiWordSplit,jdbcType=VARCHAR},
  325. nlp_word_split = #{nlpWordSplit,jdbcType=VARCHAR},
  326. create_time = #{createTime,jdbcType=TIMESTAMP},
  327. update_time = #{updateTime,jdbcType=TIMESTAMP}
  328. where id = #{id,jdbcType=BIGINT}
  329. </update>
  330. </mapper>