我的回答 第二列 排序

This commit is contained in:
yuezhihang
2022-06-21 16:33:15 +08:00
parent 427a51daa9
commit f808150027
@@ -6,7 +6,8 @@
SELECT
DISTINCT
aq.STANDARD_ID,aq.CLASSIFICATION,aq.STANDARD_ENCDOING,
aq.STANDARD_NAME
aq.STANDARD_NAME,
MAX(aq.QUESTION_TIME) as questionTime
FROM ask_questions aq
LEFT JOIN reply ON aq.ID = reply.ASK_ID
LEFT JOIN ts_user t1 ON t1.USID = aq.QUESTIONER
@@ -37,6 +38,13 @@
AND reply.ANSWERER = #{askQuestions.answerer}
</if>
</where>
GROUP BY
aq.STANDARD_ID,
aq.CLASSIFICATION,
aq.STANDARD_ENCDOING,
aq.STANDARD_NAME
ORDER BY
questionTime DESC
</select>
<select id="getAskQuestionsByStandardId" resultType="com.adc.da.slrs.StandardQA.entity.AskQuestions">