yin 2 月之前
父节点
当前提交
c5524e8e37
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      teachcloud-mark/src/main/resources/mapper/ScanPackageMapper.xml

+ 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>