jiangping
2023-08-17 6365ab0a976afdd247742c9b3dca15deb3a7a7a1
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
<?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.SystemExternalExtMapper">
 
  <!-- 管理页面查询 -->
  <resultMap id="SystemExternalExtListVO" type="doumeemes.dao.ext.vo.SystemExternalExtListVO" autoMapping="true">
    <id column="ID" jdbcType="INTEGER" property="id"/>
  </resultMap>
  <select id="selectList" parameterType="doumeemes.dao.ext.dto.QuerySystemExternalExtDTO" resultMap="SystemExternalExtListVO">
    SELECT
      `a`.`ID`,
      `a`.`DELETED`,
      `a`.`CREATE_USER`,
      `a`.`CREATE_TIME`,
      `a`.`UPDATE_USER`,
      `a`.`UPDATE_TIME`,
      `a`.`NAME`,
      `a`.`INFO`,
      `a`.`ACCOUNT_ID`,
      `a`.`ACCOUNT_KEY`,
      `a`.`DETAILS`,
      `a`.`TYPE`
    FROM `system_external` `a`
    <where>
      <if test="id != null">
        AND `a`.`ID` = #{id}
      </if>
      <if test="deleted != null">
        AND `a`.`DELETED` = #{deleted}
      </if>
      <if test="createUser != null">
        AND `a`.`CREATE_USER` = #{createUser}
      </if>
      <if test="createTime != null">
        AND `a`.`CREATE_TIME` = #{createTime}
      </if>
      <if test="updateUser != null">
        AND `a`.`UPDATE_USER` = #{updateUser}
      </if>
      <if test="updateTime != null">
        AND `a`.`UPDATE_TIME` = #{updateTime}
      </if>
      <if test="name != null and name != ''">
        AND `a`.`NAME` = #{name}
      </if>
      <if test="info != null and info != ''">
        AND `a`.`INFO` = #{info}
      </if>
      <if test="accountId != null and accountId != ''">
        AND `a`.`ACCOUNT_ID` = #{accountId}
      </if>
      <if test="accountKey != null and accountKey != ''">
        AND `a`.`ACCOUNT_KEY` = #{accountKey}
      </if>
      <if test="details != null and details != ''">
        AND `a`.`DETAILS` = #{details}
      </if>
      <if test="type != null">
        AND `a`.`TYPE` = #{type}
      </if>
    </where>
  </select>
</mapper>