yin 2 hónapja
szülő
commit
c5524e8e37

+ 4 - 4
teachcloud-mark/src/main/resources/mapper/ScanPackageMapper.xml

@@ -38,13 +38,13 @@
 		</if>
         <if test="req.status != null">
 			<if test="req.status ==@com.qmth.teachcloud.common.enums.ScanStatus@SCANNED">
-				and exists (
-				select 1 from scan_package f where t.exam_id=f.exam_id and t.course_paper_id=f.course_paper_id
+				and  t.package_code in (
+				select f.package_code from scan_package f where t.exam_id=f.exam_id and t.course_paper_id=f.course_paper_id
 				)
 			</if>
 			<if test="req.status ==@com.qmth.teachcloud.common.enums.ScanStatus@UNEXIST">
-				and not exists (
-				select 1 from scan_package f where t.exam_id=f.exam_id and t.course_paper_id=f.course_paper_id
+				and t.package_code not in (
+				select f.package_code from scan_package f where t.exam_id=f.exam_id and t.course_paper_id=f.course_paper_id
 				)
 			</if>
 		</if>