13693261870
2025-07-02 6708810c4de34dfb9513061432d656f91d56ee3a
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
<?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.manage.mapper.DpEquipmentTypeMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ruoyi.manage.domain.DpEquipmentType">
        <id column="ID" property="id" />
        <result column="TYPE_NAME" property="typeName" />
        <result column="DESCRIPTION" property="description" />
        <result column="FILE_PATH" property="filePath" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID, TYPE_NAME, DESCRIPTION, FILE_PATH
    </sql>
 
    <select id="getTotal" resultType="java.lang.Integer">
        select count(1) from DP_EQUIPMENT_TYPE
    </select>
 
    <select id="getPageList" resultType="com.ruoyi.manage.domain.DpEquipmentType">
        select * from DP_EQUIPMENT_TYPE
        <where>
            <if test="typeName != null and typeName != ''">
                and TYPE_NAME like concat('%',#{typeName},'%')
            </if>
        </where>
        order by ID DESC limit #{pageSize} offset #{offset}
    </select>
 
</mapper>