SaeMeetingMapper.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.zhgd.scs.mapper.SaeMeetingMapper">
  6. <resultMap id="BaseResultMap" type="com.zhgd.scs.domain.SaeMeeting">
  7. <id property="id" column="id" jdbcType="BIGINT"/>
  8. <result property="projectId" column="project_id" jdbcType="BIGINT"/>
  9. <result property="name" column="name" jdbcType="VARCHAR"/>
  10. <result property="content" column="content" jdbcType="VARCHAR"/>
  11. <result property="startTime" column="start_time" jdbcType="TIMESTAMP"/>
  12. <result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
  13. <result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
  14. </resultMap>
  15. <select id="pagelist" resultType="com.zhgd.scs.domain.vo.SaeMeetingVo">
  16. SELECT m.*
  17. FROM sae_meeting m
  18. WHERE 1=1
  19. <if test="column!=null and column!= ''">
  20. ${column}
  21. </if>
  22. <if test="personName!=null and personName!= ''">
  23. AND m.person_name LIKE concat('%',#{personName},'%')
  24. </if>
  25. <if test="startDate!=null and endDate!=null">
  26. AND m.start_time BETWEEN #{startDate} AND #{endDate}
  27. </if>
  28. </select>
  29. </mapper>