问答中心 跳转回填提问和回答问题

This commit is contained in:
gaojiabao
2023-04-11 10:47:53 +08:00
parent 0ecf6a0acd
commit 06e9c0a3e7
3 changed files with 4 additions and 17 deletions
@@ -269,26 +269,13 @@
<select id="selectByRId" resultType="java.lang.String">
SELECT reply.ANSWERER
FROM reply
LEFT JOIN ts_user t2 ON t2.USID = reply.ANSWERER
<where>
<if test="id != null and id !=''">
AND reply.ASK_ID = #{id}
</if>
limit 1
</where>
where ASK_ID = #{id} and answerer = #{userId};
</select>
<select id="selectBYAQId" resultType="java.lang.String">
SELECT ask_questions.QUESTIONER
FROM ask_questions
LEFT JOIN ts_user t2 ON t2.USID = ask_questions.QUESTIONER
left join reply on reply.ASK_ID = ask_questions.ID
<where>
<if test="id != null and id !=''">
AND reply.ASK_ID = #{id}
</if>
limit 1
</where>
where id = #{id}
</select>
<select id="getAskQuestionsById" resultType="com.adc.da.slrs.StandardQA.entity.Reply">