This commit is contained in:
砂糖
2025-10-07 11:10:56 +08:00

View File

@@ -41,6 +41,39 @@
#{delFlag}
)
</insert>
<update id="updateVMinioObject">
UPDATE v_minio_object
<set>
<if test="bucketName != null">
bucket_name = #{bucketName},
</if>
<if test="objectName != null">
object_name = #{objectName},
</if>
<if test="url != null">
url = #{url},
</if>
<if test="originalName != null">
original_name = #{originalName},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="createBy != null">
create_by = #{createBy},
</if>
<if test="updateBy != null">
update_by = #{updateBy},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
<if test="remark != null">
remark = #{remark}
</if>
</set>
WHERE object_id = #{objectId}
</update>
<select id="selectVMinioObjectById" parameterType="long" resultMap="VMinioObjectResult">
SELECT * FROM v_minio_object WHERE object_id = #{id}
@@ -53,9 +86,19 @@
<select id="selectVMinioObjectByObjectName" parameterType="string" resultMap="VMinioObjectResult">
SELECT * FROM v_minio_object WHERE object_name = #{objectName}
</select>
<select id="selectVMinioObjectList" resultMap="VMinioObjectResult">
SELECT * FROM v_minio_object
</select>
<delete id="deleteVMinioObjectByObjectName" parameterType="string">
DELETE FROM v_minio_object WHERE object_name = #{objectName}
</delete>
<delete id="deleteVMinioObjectByIds">
DELETE FROM v_minio_object WHERE object_id IN
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>