Browse Source

识别跳过

ywx^2
雍文秀 8 months ago
parent
commit
131efb7f2f
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/main/resources/EPaperVerifyMapper.xml

+ 3
- 1
src/main/resources/EPaperVerifyMapper.xml View File

58
     <!--识别跳过-->
58
     <!--识别跳过-->
59
     <update id="correctSkip">
59
     <update id="correctSkip">
60
         UPDATE e_paper_student0608 ps LEFT JOIN e_paper_student ps2 ON ps.epsid=ps2.epsid
60
         UPDATE e_paper_student0608 ps LEFT JOIN e_paper_student ps2 ON ps.epsid=ps2.epsid
61
-        SET ps.verified=#{ps.verified},ps.samed=1,ps2.verified=#{ps.verified} WHERE ps.epid=#{ps.epid} and ps.studentid=#{ps.studentid}
61
+        SET ps.verified=#{ps.verified},ps.samed=1
62
+        <if test="ps.verified!=null and ps.verified==1">,ps2.verified=#{ps.verified}</if>
63
+        WHERE ps.epid=#{ps.epid} and ps.studentid=#{ps.studentid}
62
     </update>
64
     </update>
63
 
65
 
64
     <!--获取原试卷中试题正确答案-->
66
     <!--获取原试卷中试题正确答案-->

Loading…
Cancel
Save