浏览代码

3.1.0-bug

xiaof 2 年之前
父节点
当前提交
123556245a

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

@@ -176,7 +176,7 @@ public class GradeBatchServiceImpl extends ServiceImpl<GradeBatchMapper, GradeBa
     public void downloadFile(Long batchId, HttpServletResponse response) throws IOException {
         GradeBatch gradeBatch = this.getById(batchId);
         QueryWrapper<GradeBatchPaper> queryWrapper = new QueryWrapper<>();
-        queryWrapper.lambda().eq(GradeBatchPaper::getBatchId, batchId);
+        queryWrapper.lambda().eq(GradeBatchPaper::getBatchId, batchId).eq(GradeBatchPaper::getEnable, true);
         List<GradeBatchPaper> gradeBatchPaperList = gradeBatchPaperService.list(queryWrapper);
         if (gradeBatchPaperList.isEmpty()) {
             throw ExceptionResultEnum.ERROR.exception("请先添加分析课程");

+ 1 - 0
distributed-print-business/src/main/resources/mapper/GradeBatchPaperMapper.xml

@@ -64,6 +64,7 @@
                 AND et.course_name like concat('%',#{courseName} ,'%')
             </if>
         </where>
+        order by gbp.create_id
     </select>
 
     <select id="findAbleAnalyzePaper"