update user_advice
set
reply_content = #{replyContent},
reply_user_id = #{replyUserId},
reply_time = now(),
gov_content = #{govContent},
reply_user_name = (select real_name from oper_user where user_id = #{replyUserId} and del_flag = 0),
updated_by = #{replyUserId},
updated_time = now()
where id = #{adviceId} and del_flag = 0