Commit 44d1ce9e by 梅存智

图片

parent 041c96a1
......@@ -158,7 +158,7 @@
(SELECT MAX(score) FROM tr_exam_answer b WHERE a.id=b.exam_id AND b.state=2) AS score,
CASE WHEN NOW() > a.end_time THEN 7 ELSE
(SELECT CASE WHEN IFNULL(MAX(score),-1)=-1 THEN 0 ELSE CASE WHEN MAX(score)>=a.qualified_score THEN 6 ELSE 5 END END AS score FROM tr_exam_answer b WHERE a.id=b.exam_id AND b.state=2)
END AS handle,a.image AS logoImg
END AS handle,a.image
from exam a where 1=1 and a.site_id = #{siteId}
<if test="ids!=null">
AND a.id IN
......
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