12345678910111213141516171819202122232425262728293031 |
- <?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.miaxis.feed.mapper.FeedBackMapper">
- <resultMap type="FeedBack" id="FeedBackResult">
- <result property="id" column="id" />
- <result property="type" column="type" />
- <result property="content" column="content" />
- <result property="phone" column="phone" />
- <result property="imgIds" column="img_ids" />
- <result property="createTime" column="create_time" />
- <result property="updateTime" column="update_time" />
- </resultMap>
- <sql id="selectFeedBackVo">
- select * from feed_back
- </sql>
- <select id="selectFeedBackList" parameterType="FeedBack" resultMap="FeedBackResult">
- <include refid="selectFeedBackVo"/>
- <where>
- <if test="type != null "> and type = #{type}</if>
- <if test="content != null and content != ''"> and content = #{content}</if>
- <if test="phone != null and phone != ''"> and phone = #{phone}</if>
- <if test="imgIds != null and imgIds != ''"> and img_ids = #{imgIds}</if>
- </where>
- </select>
- </mapper>
|