1234567891011121314151617181920212223242526272829303132 |
- <?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.zhgd.scs.mapper.SaeMeetingMapper">
- <resultMap id="BaseResultMap" type="com.zhgd.scs.domain.SaeMeeting">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="projectId" column="project_id" jdbcType="BIGINT"/>
- <result property="name" column="name" jdbcType="VARCHAR"/>
- <result property="content" column="content" jdbcType="VARCHAR"/>
- <result property="startTime" column="start_time" jdbcType="TIMESTAMP"/>
- <result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
- <result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
- </resultMap>
- <select id="pagelist" resultType="com.zhgd.scs.domain.vo.SaeMeetingVo">
- SELECT m.*
- FROM sae_meeting m
- WHERE 1=1
- <if test="column!=null and column!= ''">
- ${column}
- </if>
- <if test="personName!=null and personName!= ''">
- AND m.person_name LIKE concat('%',#{personName},'%')
- </if>
- <if test="startDate!=null and endDate!=null">
- AND m.start_time BETWEEN #{startDate} AND #{endDate}
- </if>
- </select>
- </mapper>
|