Skip to content

Commit

Permalink
✨ 修正切片xml
Browse files Browse the repository at this point in the history
  • Loading branch information
twelvet-s committed Dec 17, 2024
1 parent 354e8ab commit eecefe9
Showing 1 changed file with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
<result property="vectorId" column="vector_id"/>
<result property="sliceName" column="slice_name"/>
<result property="content" column="content"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="delFlag" column="del_flag"/>
</resultMap>

<sql id="selectAiDocSliceVo">
Expand All @@ -24,10 +21,7 @@
vector_id,
slice_name,
content,
create_by,
create_time,
update_by,
update_time
del_flag
from ai_doc_slice
</sql>

Expand Down Expand Up @@ -55,21 +49,15 @@
<if test="vectorId != null">vector_id,</if>
<if test="sliceName != null">slice_name,</if>
<if test="content != null">content,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="delFlag != null">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="modelId != null">#{modelId},</if>
<if test="docId != null">#{docId},</if>
<if test="vectorId != null">#{vectorId},</if>
<if test="sliceName != null">#{sliceName},</if>
<if test="content != null">#{content},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="delFlag != null">#{delFlag},</if>
</trim>
</insert>

Expand All @@ -90,8 +78,6 @@
<if test="docId != null">doc_id = #{docId},</if>
<if test="sliceName != null">slice_name = #{sliceName},</if>
<if test="content != null">content = #{content},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null and updateTime != ''">update_time = #{updateTime},</if>
</trim>
where slice_id = #{sliceId}
</update>
Expand Down

0 comments on commit eecefe9

Please sign in to comment.