zss
2024-12-20 c9e36e23b3f95f6027d78483dfc23021d1ec6261
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.yuanchu.mom.mapper.ManageMeetingMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.ManageMeeting">
        <id column="id" property="id" />
        <result column="meeting_time" property="meetingTime" />
        <result column="place" property="place" />
        <result column="compere" property="compere" />
        <result column="content" property="content" />
        <result column="create_user" property="createUser" />
        <result column="create_time" property="createTime" />
        <result column="update_user" property="updateUser" />
        <result column="update_time" property="updateTime" />
    </resultMap>
    <select id="page" resultType="com.yuanchu.mom.dto.ManageMeetingDto">
        select cmm.* from cnas_manage_meeting  cmm
        <where>
            <if test="startTime != null and startTime != ''">
                meeting_time >= #{startTime}
            </if>
            <if test="endTime != null and endTime != ''">
                and #{endTime} >= meeting_time
            </if>
            <if test="place != null and place != ''">
                and place = #{place}
            </if>
        </where>
    </select>
 
</mapper>