zhanghua
16 小时以前 be0fc5c20dde87d7abb53f6537ba64743cd4cf52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?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="cn.lili.modules.lmk.mapper.LmkFileMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="cn.lili.modules.lmk.domain.entity.LmkFile">
        <id column="id" property="id"/>
        <result column="file_key" property="fileKey" />
        <result column="file_type" property="fileType" />
        <result column="file_size" property="fileSize" />
        <result column="original_filename" property="originalFileName" />
    </resultMap>
 
 
 
 
 
 
 
    <select id="getByFileKey" resultMap="BaseResultMap">
        SELECT
            LF.file_key,
            LF.file_type,
            LF.file_size,
            LF.original_filename,
            LF.deleted_flag,
            LF.id
        FROM
            lmk_file LF
        WHERE
            LF.file_key = #{flieKey} AND LF.delete_flag = 0
    </select>
 
 
</mapper>