Selaa lähdekoodia

bug:考试印品范围对应查询

caozixuan 2 vuotta sitten
vanhempi
commit
3157b67b47

+ 1 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ExamCardServiceImpl.java

@@ -475,7 +475,7 @@ public class ExamCardServiceImpl extends ServiceImpl<ExamCardMapper, ExamCard> i
         if (examCardDetail == null) {
             throw ExceptionResultEnum.ERROR.exception("题卡内容不存在");
         }
-// 复制题卡内容
+        // 复制题卡内容
         ExamCardDetail copyExamCardDetail = new ExamCardDetail();
         BeanUtils.copyProperties(examCardDetail, copyExamCardDetail);
         copyExamCardDetail.setId(SystemConstant.getDbUuid());

+ 5 - 0
distributed-print-business/src/main/resources/mapper/BasicPrintConfigMapper.xml

@@ -52,8 +52,13 @@
             *
         FROM
             basic_print_config a
+                JOIN
+            basic_template_org b ON a.school_id = b.school_id
+                AND a.id = b.rule_id
         WHERE
             a.school_id = #{schoolId}
           AND a.exam_id = #{examId}
+          AND b.org_id = #{orgId}
+          AND b.type = #{type}
     </select>
 </mapper>