我的回答 第二列 排序
This commit is contained in:
@@ -6,7 +6,8 @@
|
|||||||
SELECT
|
SELECT
|
||||||
DISTINCT
|
DISTINCT
|
||||||
aq.STANDARD_ID,aq.CLASSIFICATION,aq.STANDARD_ENCDOING,
|
aq.STANDARD_ID,aq.CLASSIFICATION,aq.STANDARD_ENCDOING,
|
||||||
aq.STANDARD_NAME
|
aq.STANDARD_NAME,
|
||||||
|
MAX(aq.QUESTION_TIME) as questionTime
|
||||||
FROM ask_questions aq
|
FROM ask_questions aq
|
||||||
LEFT JOIN reply ON aq.ID = reply.ASK_ID
|
LEFT JOIN reply ON aq.ID = reply.ASK_ID
|
||||||
LEFT JOIN ts_user t1 ON t1.USID = aq.QUESTIONER
|
LEFT JOIN ts_user t1 ON t1.USID = aq.QUESTIONER
|
||||||
@@ -37,6 +38,13 @@
|
|||||||
AND reply.ANSWERER = #{askQuestions.answerer}
|
AND reply.ANSWERER = #{askQuestions.answerer}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
GROUP BY
|
||||||
|
aq.STANDARD_ID,
|
||||||
|
aq.CLASSIFICATION,
|
||||||
|
aq.STANDARD_ENCDOING,
|
||||||
|
aq.STANDARD_NAME
|
||||||
|
ORDER BY
|
||||||
|
questionTime DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getAskQuestionsByStandardId" resultType="com.adc.da.slrs.StandardQA.entity.AskQuestions">
|
<select id="getAskQuestionsByStandardId" resultType="com.adc.da.slrs.StandardQA.entity.AskQuestions">
|
||||||
|
|||||||
Reference in New Issue
Block a user