xuhy
2026-03-27 0923c2a6f1a7b4d28e39f566f9ff27557e2bf250
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
<?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.ruoyi.system.mapper.TLargeOrganizationMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeOrganization">
        <id column="id" property="id" />
        <result column="organization_name" property="organizationName" />
        <result column="organization_person" property="organizationPerson" />
        <result column="address" property="address" />
        <result column="contact_number" property="contactNumber" />
        <result column="business_scope" property="businessScope" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
        <result column="create_by" property="createBy" />
        <result column="update_by" property="updateBy" />
        <result column="disabled" property="disabled" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, organization_name, organization_person, address, contact_number, business_scope, create_time, update_time, create_by, update_by, disabled
    </sql>
    <select id="pageList" resultType="com.ruoyi.system.model.TLargeOrganization">
        select
        <include refid="Base_Column_List"/>
            from t_large_organization
        <where>
            <if test="query.organizationName != null and query.organizationName != ''">
                and organization_name like concat('%',#{query.organizationName},'%')
            </if>
            and disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>
        ORDER BY create_time DESC
    </select>
 
</mapper>