wl
2022-10-24 9969bea2a8c1eab64c12a51a2d24d65e5b6c0dd0
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
<?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.ycl.mapper.zf.VideowarmEventsreportMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ycl.entity.zf.VideoWarnEventsReport">
        <id column="id" property="id" />
        <result column="event_name" property="eventName" />
        <result column="event_type" property="eventType" />
        <result column="associated_shop" property="associatedShops" />
        <result column="event_location" property="eventLocation" />
        <result column="event_region" property="eventRegion" />
        <result column="media" property="media" />
        <result column="content" property="content" />
        <result column="event_time" property="eventTime" />
        <result column="create_time" property="createTime" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, event_name, event_type, associated_shop, event_location, event_region, media, content, event_time, create_time
    </sql>
 
 
    <select id="selectPageVo" resultType="com.ycl.entity.zf.VideoWarnEventsReport">
        SELECT * FROM ums_videowarm_eventsreport
        <where>
            <if test="eventName!=null and eventName!=''" >
                event_name=#{eventName}
            </if>
            <if test="eventType!=null and eventType!=''" >
                event_type=#{eventType}
            </if>
            <if test="eventLocation!=null and eventLocation!=''" >
                event_location=#{eventLocation}
            </if>
            <if test="eventRegion!=null and eventRegion!=''" >
                event_region=#{eventRegion}
            </if>
            <if test="startTime!=null and startTime!=''and endTime!=null and endTime!=''" >
                create_time between #{startTime} and #{endTime}
            </if>
        </where>
    </select>
 
</mapper>