后台服务
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

42 строки
1.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.iformall.mapper.SysNoticeMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.SysNotice">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="type" jdbcType="INTEGER" property="type"/>
  7. <result column="content" jdbcType="VARCHAR" property="content"/>
  8. <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
  9. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
  10. <result column="status" jdbcType="INTEGER" property="status"/>
  11. </resultMap>
  12. <sql id="allColumns">
  13. id,type,content,create_time,update_time,status
  14. </sql>
  15. <sql id="dynamicWhereConditions">
  16. where 1=1
  17. <if test=" null != id ">
  18. and `id` = #{id}
  19. </if>
  20. <if test=" null != type ">
  21. and `type` = #{type}
  22. </if>
  23. <if test=" null != status ">
  24. and `status` = #{status}
  25. </if>
  26. <if test=" null != sortColumns">order by ${sortColumns}</if>
  27. </sql>
  28. <select id="findList" parameterType="com.iformall.domain.po.SysNotice" resultMap="BaseResultMap">
  29. select
  30. <include refid="allColumns"/>
  31. from sys_notice
  32. <include refid="dynamicWhereConditions"/>
  33. </select>
  34. </mapper>