FeedBackMapper.xml 1.3 KB

12345678910111213141516171819202122232425262728293031
  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.miaxis.feed.mapper.FeedBackMapper">
  6. <resultMap type="FeedBack" id="FeedBackResult">
  7. <result property="id" column="id" />
  8. <result property="type" column="type" />
  9. <result property="content" column="content" />
  10. <result property="phone" column="phone" />
  11. <result property="imgIds" column="img_ids" />
  12. <result property="createTime" column="create_time" />
  13. <result property="updateTime" column="update_time" />
  14. </resultMap>
  15. <sql id="selectFeedBackVo">
  16. select * from feed_back
  17. </sql>
  18. <select id="selectFeedBackList" parameterType="FeedBack" resultMap="FeedBackResult">
  19. <include refid="selectFeedBackVo"/>
  20. <where>
  21. <if test="type != null "> and type = #{type}</if>
  22. <if test="content != null and content != ''"> and content = #{content}</if>
  23. <if test="phone != null and phone != ''"> and phone = #{phone}</if>
  24. <if test="imgIds != null and imgIds != ''"> and img_ids = #{imgIds}</if>
  25. </where>
  26. </select>
  27. </mapper>