<?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.sandu.ximon.dao.mapper.PlatformFileMapper">
|
|
<resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.PlatformFile">
|
<id property="fileId" column="file_id" jdbcType="BIGINT"/>
|
<result property="fileName" column="file_name" jdbcType="VARCHAR"/>
|
<result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
|
<result property="fileSize" column="file_size" jdbcType="BIGINT"/>
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
file_id
|
,file_name,file_size,
|
create_time,update_time
|
</sql>
|
|
|
<select id="fileList" resultType="com.sandu.ximon.dao.bo.PlatformFileListBo">
|
SELECT
|
*
|
FROM
|
platform_file t1
|
<where>
|
<if test="fileIdList!=null">
|
t1.file_id IN
|
<foreach collection="fileIdList" open="(" close=")" item="fileId" separator=",">
|
#{fileId}
|
</foreach>
|
</if>
|
</where>
|
</select>
|
</mapper>
|