<?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.mindskip.xzs.repository.FeedbackMapper">
|
|
<resultMap id="BaseResultMap" type="com.mindskip.xzs.domain.Feedback">
|
<id property="id" column="id" jdbcType="INTEGER"/>
|
<result property="questionId" column="question_id" jdbcType="INTEGER"/>
|
<result property="contentId" column="content_id" jdbcType="INTEGER"/>
|
<result property="describe" column="describe" jdbcType="VARCHAR"/>
|
<result property="userId" column="user_id" jdbcType="INTEGER"/>
|
<result property="fix" column="fix" jdbcType="BIT"/>
|
<result property="fixTime" column="fix_time" jdbcType="TIMESTAMP"/>
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
id,question_id,content_id,
|
describe,user_id,fix,
|
fix_time
|
</sql>
|
|
<select id="feedbackPage" resultType="com.mindskip.xzs.domain.vo.FeedbackVO">
|
select a.*,
|
b.content as questionTitle,
|
c.real_name as userName
|
from t_feedback a
|
left join t_text_content b on a.content_id = b.id
|
left join t_user c on a.user_id = c.id and c.deleted = 0
|
where a.deleted = 0
|
order by id desc
|
</select>
|
</mapper>
|