wl
2022-09-20 4e260f558428dd81c4dd8981a965cdaa0ebf12de
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.platform.zf.VideowarmEventsreportMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ycl.entity.platform.zf.VideowarmEventsreport">
        <id column="id" property="id" />
        <result column="eventName" property="eventName" />
        <result column="eventType" property="eventType" />
        <result column="associatedShops" property="associatedShops" />
        <result column="eventLocaation" property="eventLocaation" />
        <result column="eventRegion" property="eventRegion" />
        <result column="videoOrImage" property="videoOrImage" />
        <result column="contentDesc" property="contentDesc" />
        <result column="eventTime" property="eventTime" />
        <result column="cTime" property="cTime" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, eventName, eventType, associatedShops, eventLocaation, eventRegion, videoOrImage, contentDesc, eventTime, cTime
    </sql>
 
 
    <select id="selectPageVo" resultType="com.ycl.entity.platform.zf.VideowarmEventsreport">
        SELECT * FROM ums_videowarm_eventsreport
        <where>
            <if test="eventName!=null and eventName!=''" >
                eventName=#{eventName}
            </if>
            <if test="eventType!=null and eventType!=''" >
                eventType=#{eventType}
            </if>
            <if test="eventLocation!=null and eventLocation!=''" >
                eventLocation=#{eventLocation}
            </if>
            <if test="eventRegion!=null and eventRegion!=''" >
                eventRegion=#{eventRegion}
            </if>
            <if test="startTime!=null and startTime!=''and endTime!=null and endTime!=''" >
                ctime between #{startTime} and #{endTime}
            </if>
        </where>
    </select>
 
</mapper>