You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
3.8 KiB
84 lines
3.8 KiB
3 years ago
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<!DOCTYPE mapper
|
||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
<mapper namespace="com.ruoyi.archives.mapper.FileUploadListMapper">
|
||
|
|
||
|
<resultMap type="FileUploadList" id="FileUploadListResult">
|
||
|
<result property="id" column="id" />
|
||
|
<result property="fileId" column="file_id" />
|
||
|
<result property="path" column="path" />
|
||
|
<result property="suffixType" column="suffix_type" />
|
||
|
<result property="createTime" column="create_time" />
|
||
|
<result property="createId" column="create_id" />
|
||
|
<result property="fileName" column="file_name"/>
|
||
|
<result property="fileType" column="file_type"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<sql id="selectFileUploadListVo">
|
||
|
select id, file_id, path, suffix_type, create_time, create_id,file_name,file_type from "PUBLIC"."file_upload_list"
|
||
|
</sql>
|
||
|
|
||
|
<select id="selectFileUploadListList" parameterType="FileUploadList" resultMap="FileUploadListResult">
|
||
|
<include refid="selectFileUploadListVo"/>
|
||
|
<where>
|
||
|
<if test="fileId != null "> and file_id = #{fileId}</if>
|
||
|
<if test="path != null and path != ''"> and path = #{path}</if>
|
||
|
<if test="suffixType != null and suffixType != ''"> and suffix_type = #{suffixType}</if>
|
||
|
<if test="createId != null "> and create_id = #{createId}</if>
|
||
|
<if test="fileType!=null">and file_type=#{fileType}</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
<select id="selectFileUploadListById" parameterType="Long" resultMap="FileUploadListResult">
|
||
|
<include refid="selectFileUploadListVo"/>
|
||
|
where id = #{id}
|
||
|
</select>
|
||
|
|
||
|
<insert id="insertFileUploadList" parameterType="FileUploadList" useGeneratedKeys="true" keyProperty="id">
|
||
|
insert into "PUBLIC"."file_upload_list"
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="fileId != null">file_id,</if>
|
||
|
<if test="path != null">path,</if>
|
||
|
<if test="suffixType != null">suffix_type,</if>
|
||
|
<if test="fileName!=null">file_Name,</if>
|
||
|
<if test="createTime != null">create_time,</if>
|
||
|
<if test="createId != null">create_id,</if>
|
||
|
<if test="fileType != null">file_type,</if>
|
||
|
</trim>
|
||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
<if test="fileId != null">#{fileId},</if>
|
||
|
<if test="path != null">#{path},</if>
|
||
|
<if test="suffixType != null">#{suffixType},</if>
|
||
|
<if test="fileName!=null">#{fileName},</if>
|
||
|
<if test="createTime != null">#{createTime},</if>
|
||
|
<if test="createId != null">#{createId},</if>
|
||
|
<if test="fileType != null">#{fileType},</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
|
||
|
<update id="updateFileUploadList" parameterType="FileUploadList">
|
||
|
update "PUBLIC"."file_upload_list"
|
||
|
<trim prefix="SET" suffixOverrides=",">
|
||
|
<if test="fileId != null">file_id = #{fileId},</if>
|
||
|
<if test="path != null">path = #{path},</if>
|
||
|
<if test="suffixType != null">suffix_type = #{suffixType},</if>
|
||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||
|
<if test="createId != null">create_id = #{createId},</if>
|
||
|
<if test="fileType != null">file_type = #{fileType},</if>
|
||
|
</trim>
|
||
|
where id = #{id}
|
||
|
</update>
|
||
|
|
||
|
<delete id="deleteFileUploadListById" parameterType="Long">
|
||
|
delete from "PUBLIC"."file_upload_list" where id = #{id}
|
||
|
</delete>
|
||
|
|
||
|
<delete id="deleteFileUploadListByIds" parameterType="String">
|
||
|
delete from "PUBLIC"."file_upload_list" where id in
|
||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||
|
#{id}
|
||
|
</foreach>
|
||
|
</delete>
|
||
|
|
||
|
</mapper>
|