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
33
34
35
36
<?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.fuzhou.mapper.HikEventMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ruoyi.fuzhou.domain.HikEvent">
        <result column="ID" property="id" />
        <result column="SEND_TIME" property="sendTime" />
        <result column="HAPPEN_TIME" property="happenTime" />
        <result column="EVENT_TYPE" property="eventType" />
        <result column="SRC_INDEX" property="srcIndex" />
        <result column="SRC_NAME" property="srcName" />
        <result column="SRC_TYPE" property="srcType" />
        <result column="IP_ADDRESS" property="ipAddress" />
        <result column="PORT_NO" property="portNo" />
        <result column="CAMERA_INDEX_CODE" property="cameraIndexCode" />
        <result column="CAMERA_ADDRESS" property="cameraAddress" />
        <result column="IMAGE_URL" property="imageUrl" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID, SEND_TIME, HAPPEN_TIME, EVENT_TYPE, SRC_INDEX, SRC_NAME, SRC_TYPE, IP_ADDRESS, PORT_NO, CAMERA_INDEX_CODE, CAMERA_ADDRESS, IMAGE_URL
    </sql>
 
    <select id="getPageList" resultMap="BaseResultMap">
        select * from HIK_EVENT
        order by SEND_TIME DESC
        limit #{pageSize} offset #{offset}
    </select>
 
    <select id="getTotal" resultType="java.lang.Integer">
        select count(1) from  HIK_EVENT
    </select>
 
</mapper>