|
@@ -5,20 +5,20 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="video_id" jdbcType="BIGINT" property="videoId" />
|
|
<result column="video_id" jdbcType="BIGINT" property="videoId" />
|
|
|
<result column="config_code" jdbcType="VARCHAR" property="configCode" />
|
|
<result column="config_code" jdbcType="VARCHAR" property="configCode" />
|
|
|
|
|
+ <result column="embedding" jdbcType="VARCHAR" property="embedding" />
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
|
|
<result column="point_index" jdbcType="INTEGER" property="pointIndex" />
|
|
<result column="point_index" jdbcType="INTEGER" property="pointIndex" />
|
|
|
|
|
+ <result column="text" jdbcType="VARCHAR" property="text" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -52,7 +52,6 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -86,15 +85,13 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
- id, video_id, config_code, created_at, updated_at, point_index
|
|
|
|
|
|
|
+ id, video_id, config_code, embedding, created_at, updated_at, point_index, "text"
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.videoVector.model.po.pgVector.VideoVectorExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.videoVector.model.po.pgVector.VideoVectorExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -113,7 +110,6 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -124,7 +120,6 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
delete from video_vectors
|
|
delete from video_vectors
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -133,7 +128,6 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
delete from video_vectors
|
|
delete from video_vectors
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -144,18 +138,18 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
- insert into video_vectors (video_id, config_code, created_at,
|
|
|
|
|
- updated_at, point_index)
|
|
|
|
|
- values (#{videoId,jdbcType=BIGINT}, #{configCode,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP},
|
|
|
|
|
- #{updatedAt,jdbcType=TIMESTAMP}, #{pointIndex,jdbcType=INTEGER})
|
|
|
|
|
|
|
+ insert into video_vectors (video_id, config_code, embedding,
|
|
|
|
|
+ created_at, updated_at, point_index,
|
|
|
|
|
+ "text")
|
|
|
|
|
+ values (#{videoId,jdbcType=BIGINT}, #{configCode,jdbcType=VARCHAR}, #{embedding,jdbcType=VARCHAR},
|
|
|
|
|
+ #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{pointIndex,jdbcType=INTEGER},
|
|
|
|
|
+ #{text,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.tzld.videoVector.model.po.pgVector.VideoVector" useGeneratedKeys="true">
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.tzld.videoVector.model.po.pgVector.VideoVector" useGeneratedKeys="true">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
insert into video_vectors
|
|
insert into video_vectors
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -165,6 +159,9 @@
|
|
|
<if test="configCode != null">
|
|
<if test="configCode != null">
|
|
|
config_code,
|
|
config_code,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="embedding != null">
|
|
|
|
|
+ embedding,
|
|
|
|
|
+ </if>
|
|
|
<if test="createdAt != null">
|
|
<if test="createdAt != null">
|
|
|
created_at,
|
|
created_at,
|
|
|
</if>
|
|
</if>
|
|
@@ -174,6 +171,9 @@
|
|
|
<if test="pointIndex != null">
|
|
<if test="pointIndex != null">
|
|
|
point_index,
|
|
point_index,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="text != null">
|
|
|
|
|
+ "text",
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="videoId != null">
|
|
<if test="videoId != null">
|
|
@@ -182,6 +182,9 @@
|
|
|
<if test="configCode != null">
|
|
<if test="configCode != null">
|
|
|
#{configCode,jdbcType=VARCHAR},
|
|
#{configCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="embedding != null">
|
|
|
|
|
+ #{embedding,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="createdAt != null">
|
|
<if test="createdAt != null">
|
|
|
#{createdAt,jdbcType=TIMESTAMP},
|
|
#{createdAt,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
@@ -191,13 +194,15 @@
|
|
|
<if test="pointIndex != null">
|
|
<if test="pointIndex != null">
|
|
|
#{pointIndex,jdbcType=INTEGER},
|
|
#{pointIndex,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="text != null">
|
|
|
|
|
+ #{text,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.videoVector.model.po.pgVector.VideoVectorExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.tzld.videoVector.model.po.pgVector.VideoVectorExample" resultType="java.lang.Long">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
select count(*) from video_vectors
|
|
select count(*) from video_vectors
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -208,7 +213,6 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
update video_vectors
|
|
update video_vectors
|
|
|
<set>
|
|
<set>
|
|
@@ -221,6 +225,9 @@
|
|
|
<if test="record.configCode != null">
|
|
<if test="record.configCode != null">
|
|
|
config_code = #{record.configCode,jdbcType=VARCHAR},
|
|
config_code = #{record.configCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.embedding != null">
|
|
|
|
|
+ embedding = #{record.embedding,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="record.createdAt != null">
|
|
<if test="record.createdAt != null">
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
@@ -230,6 +237,9 @@
|
|
|
<if test="record.pointIndex != null">
|
|
<if test="record.pointIndex != null">
|
|
|
point_index = #{record.pointIndex,jdbcType=INTEGER},
|
|
point_index = #{record.pointIndex,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.text != null">
|
|
|
|
|
+ "text" = #{record.text,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -239,15 +249,16 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
update video_vectors
|
|
update video_vectors
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
video_id = #{record.videoId,jdbcType=BIGINT},
|
|
video_id = #{record.videoId,jdbcType=BIGINT},
|
|
|
config_code = #{record.configCode,jdbcType=VARCHAR},
|
|
config_code = #{record.configCode,jdbcType=VARCHAR},
|
|
|
|
|
+ embedding = #{record.embedding,jdbcType=VARCHAR},
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
- point_index = #{record.pointIndex,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ point_index = #{record.pointIndex,jdbcType=INTEGER},
|
|
|
|
|
+ "text" = #{record.text,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
@@ -256,7 +267,6 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
update video_vectors
|
|
update video_vectors
|
|
|
<set>
|
|
<set>
|
|
@@ -266,6 +276,9 @@
|
|
|
<if test="configCode != null">
|
|
<if test="configCode != null">
|
|
|
config_code = #{configCode,jdbcType=VARCHAR},
|
|
config_code = #{configCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="embedding != null">
|
|
|
|
|
+ embedding = #{embedding,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="createdAt != null">
|
|
<if test="createdAt != null">
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
@@ -275,6 +288,9 @@
|
|
|
<if test="pointIndex != null">
|
|
<if test="pointIndex != null">
|
|
|
point_index = #{pointIndex,jdbcType=INTEGER},
|
|
point_index = #{pointIndex,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="text != null">
|
|
|
|
|
+ "text" = #{text,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
@@ -282,15 +298,15 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Apr 29 19:29:43 CST 2026.
|
|
|
|
|
-->
|
|
-->
|
|
|
update video_vectors
|
|
update video_vectors
|
|
|
set video_id = #{videoId,jdbcType=BIGINT},
|
|
set video_id = #{videoId,jdbcType=BIGINT},
|
|
|
config_code = #{configCode,jdbcType=VARCHAR},
|
|
config_code = #{configCode,jdbcType=VARCHAR},
|
|
|
|
|
+ embedding = #{embedding,jdbcType=VARCHAR},
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
- point_index = #{pointIndex,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ point_index = #{pointIndex,jdbcType=INTEGER},
|
|
|
|
|
+ "text" = #{text,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
-
|
|
|
|
|
</mapper>
|
|
</mapper>
|