Commit d9609ef7 by 阳浪

4.21bug优化

parent 9c450814
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
SELECT library_id, type, SUM(num) AS number, score SELECT library_id, type, SUM(num) AS number, score
FROM tr_exam_system_question FROM tr_exam_system_question
WHERE exam_id=#{examId} AND state=1 AND IFNULL(num,0) > 0 WHERE exam_id=#{examId} AND state=1 AND IFNULL(num,0) > 0
GROUP BY library_id, type GROUP BY library_id, type,score
</select> </select>
<!-- 获取必答考题,按默认排序 --> <!-- 获取必答考题,按默认排序 -->
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
AND c.answer != '' AND c.answer != ''
WHERE WHERE
a.answer_id = #{answerId} a.answer_id = #{answerId}
GROUP BY
a.sort
ORDER BY ORDER BY
a.sort a.sort
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment