|
|
@ -46,6 +46,7 @@ |
|
|
|
<resultMap id="myAdviceListResultMap" type="com.epmet.dto.result.MyAdviceListResultDTO"> |
|
|
|
<id column="id"></id> |
|
|
|
<result property="adviceContent" column="ADVICE_CONTENT"/> |
|
|
|
<result property="adviceType" column="ADVICE_TYPE"/> |
|
|
|
<result property="adviceTime" column="ADVICE_TIME"/> |
|
|
|
<result property="replyContent" column="REPLY_CONTENT"/> |
|
|
|
<result property="replyTime" column="REPLY_TIME"/> |
|
|
@ -53,7 +54,7 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<select id="myAdviceList" resultMap="myAdviceListResultMap"> |
|
|
|
select id,advice_content,advice_time,IFNULL(reply_content,''),IFNULL(reply_time,'') |
|
|
|
select id,advice_type,advice_content,advice_time,IFNULL(reply_content,''),IFNULL(reply_time,'') |
|
|
|
from user_advice |
|
|
|
where del_flag = 0 and user_id = #{userId} |
|
|
|
order by created_time desc |
|
|
|