<?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.dd.admin.business.file.mapper.FileMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.dd.admin.business.file.entity.File">
        <id column="FILE_ID" property="fileId" />
        <result column="PARENT_ID" property="parentId" />
        <result column="FILE_BUCKET" property="fileBucket" />
        <result column="FILE_NAME" property="fileName" />
        <result column="FILE_SUFFIX" property="fileSuffix" />
        <result column="FILE_SIZE_KB" property="fileSizeKb" />
        <result column="FINAL_NAME" property="finalName" />
        <result column="FILE_PATH" property="filePath" />
        <result column="FILE_TYPE" property="fileType" />
        <result column="FILE_SYS_PATH" property="fileSysPath" />
        <result column="CREATE_TIME" property="createTime" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        FILE_ID, PARENT_ID, FILE_BUCKET, FILE_NAME, FILE_SUFFIX, FILE_SIZE_KB, FINAL_NAME, FILE_PATH, FILE_TYPE, FILE_SYS_PATH, CREATE_TIME
    </sql>

    <select id="selectFilePage" resultType="com.dd.admin.business.file.domain.FileVo">
        select
        *
        from business_file where 1 = 1
    </select>

    <select id="selectFileList" resultType="com.dd.admin.business.file.domain.FileVo">
        select
        *
        from business_file where 1 = 1
    </select>
</mapper>
