jiangping
2023-10-16 d7fe8ae3888c8e2b1eea3c1e3769be0d42a21cc9
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?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="doumeemes.dao.ext.MultifilesExtMapper">
 
  <!-- 管理页面查询 -->
  <resultMap id="MultifilesExtListVO" type="doumeemes.dao.ext.vo.MultifilesExtListVO" autoMapping="true">
    <id column="ID" jdbcType="INTEGER" property="id"/>
  </resultMap>
  <select id="selectList" parameterType="doumeemes.dao.ext.dto.QueryMultifilesExtDTO" resultMap="MultifilesExtListVO">
    SELECT
      `multifiles`.`ID`,
      `multifiles`.`DELETED`,
      `multifiles`.`CREATE_USER`,
      `multifiles`.`CREATE_TIME`,
      `multifiles`.`UPDATE_USER`,
      `multifiles`.`UPDATE_TIME`,
      `multifiles`.`REMARK`,
      `multifiles`.`ROOT_DEPART_ID`,
      `multifiles`.`COM_DEPART_ID`,
      `multifiles`.`FILEURL`,
      `multifiles`.`TYPE`,
      `multifiles`.`FILENAME`,
      `multifiles`.`FILESIZE`,
      `multifiles`.`OBJID`,
      `multifiles`.`OBJTYPE`
    FROM `multifiles` `multifiles`
    <where>
      <if test="id != null">
        AND `multifiles`.`ID` = #{id}
      </if>
      <if test="deleted != null">
        AND `multifiles`.`DELETED` = #{deleted}
      </if>
      <if test="createUser != null">
        AND `multifiles`.`CREATE_USER` = #{createUser}
      </if>
      <if test="createTime != null">
        AND `multifiles`.`CREATE_TIME` = #{createTime}
      </if>
      <if test="updateUser != null">
        AND `multifiles`.`UPDATE_USER` = #{updateUser}
      </if>
      <if test="updateTime != null">
        AND `multifiles`.`UPDATE_TIME` = #{updateTime}
      </if>
      <if test="remark != null and remark != ''">
        AND `multifiles`.`REMARK` = #{remark}
      </if>
      <if test="rootDepartId != null">
        AND `multifiles`.`ROOT_DEPART_ID` = #{rootDepartId}
      </if>
      <if test="comDepartId != null">
        AND `multifiles`.`COM_DEPART_ID` = #{comDepartId}
      </if>
      <if test="fileurl != null and fileurl != ''">
        AND `multifiles`.`FILEURL` = #{fileurl}
      </if>
      <if test="type != null">
        AND `multifiles`.`TYPE` = #{type}
      </if>
      <if test="filename != null and filename != ''">
        AND `multifiles`.`FILENAME` = #{filename}
      </if>
      <if test="filesize != null">
        AND `multifiles`.`FILESIZE` = #{filesize}
      </if>
      <if test="objid != null">
        AND `multifiles`.`OBJID` = #{objid}
      </if>
      <if test="objtype != null">
        AND `multifiles`.`OBJTYPE` = #{objtype}
      </if>
    </where>
  </select>
</mapper>