Browse Source

我的建议列表添加ifnull

dev_shibei_match
liushaowen 5 years ago
parent
commit
e834c9b967
  1. 2
      epmet-user/epmet-user-server/src/main/resources/mapper/UserAdviceDao.xml

2
epmet-user/epmet-user-server/src/main/resources/mapper/UserAdviceDao.xml

@ -53,7 +53,7 @@
</resultMap>
<select id="myAdviceList" resultMap="myAdviceListResultMap">
select id,advice_content,advice_time,reply_content,reply_time
select id,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

Loading…
Cancel
Save