|
@@ -1,82 +0,0 @@
|
|
|
-<?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.file.mapper.UploadFileMapper">
|
|
|
-
|
|
|
- <resultMap type="com.ruoyi.file.service.UploadFile" id="UploadFileResult">
|
|
|
- <result property="id" column="id"/>
|
|
|
- <result property="name" column="name"/>
|
|
|
- <result property="fileName" column="file_name"/>
|
|
|
- <result property="fileSuffix" column="file_suffix"/>
|
|
|
- <result property="type" column="type"/>
|
|
|
- <result property="domain" column="domain"/>
|
|
|
- <result property="path" column="path"/>
|
|
|
- <result property="pathExt" column="path_ext"/>
|
|
|
- <result property="size" column="size"/>
|
|
|
- <result property="bussinessId" column="bussiness_id"/>
|
|
|
- <result property="status" column="status"/>
|
|
|
- <result property="createTime" column="create_time"/>
|
|
|
- <result property="createBy" column="create_by"/>
|
|
|
- <result property="updateTime" column="update_time"/>
|
|
|
- <result property="updateBy" column="update_by"/>
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <insert id="insertUploadFile" parameterType="com.ruoyi.file.service.UploadFile">
|
|
|
- insert into upload_file
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">id,</if>
|
|
|
- <if test="name != null">name,</if>
|
|
|
- <if test="fileName != null">file_name,</if>
|
|
|
- <if test="fileSuffix != null">file_suffix,</if>
|
|
|
- <if test="type != null">type,</if>
|
|
|
- <if test="domain != null">domain,</if>
|
|
|
- <if test="path != null">path,</if>
|
|
|
- <if test="pathExt != null">path_ext,</if>
|
|
|
- <if test="size != null">size,</if>
|
|
|
- <if test="bussinessId != null">bussiness_id,</if>
|
|
|
- <if test="status != null">status,</if>
|
|
|
- <if test="createTime != null">create_time,</if>
|
|
|
- <if test="createBy != null">create_by,</if>
|
|
|
- <if test="updateTime != null">update_time,</if>
|
|
|
- <if test="updateBy != null">update_by,</if>
|
|
|
- </trim>
|
|
|
- values
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">#{id},</if>
|
|
|
- <if test="name != null">#{name},</if>
|
|
|
- <if test="fileName != null">#{fileName},</if>
|
|
|
- <if test="fileSuffix != null">#{fileSuffix},</if>
|
|
|
- <if test="type != null">#{type},</if>
|
|
|
- <if test="domain != null">#{domain},</if>
|
|
|
- <if test="path != null">#{path},</if>
|
|
|
- <if test="pathExt != null">#{pathExt},</if>
|
|
|
- <if test="size != null">#{size},</if>
|
|
|
- <if test="bussinessId != null">#{bussinessId},</if>
|
|
|
- <if test="status != null">#{status},</if>
|
|
|
- <if test="createTime != null">#{createTime},</if>
|
|
|
- <if test="createBy != null">#{createBy},</if>
|
|
|
- <if test="updateTime != null">#{updateTime},</if>
|
|
|
- <if test="updateBy != null">#{updateBy},</if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
-
|
|
|
- <select id="selectOne" resultMap="UploadFileResult">
|
|
|
- select
|
|
|
- <include refid="UploadFile_Column_List"/>
|
|
|
- from upload_file
|
|
|
- where 1=1
|
|
|
- <if test="id != null">
|
|
|
- and id = #{id}
|
|
|
- </if>
|
|
|
- <if test="bussinessId != null">
|
|
|
- and bussiness_id = #{bussinessId}
|
|
|
- </if>
|
|
|
- <if test="status != null">
|
|
|
- and status = #{status}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-</mapper>
|