|
@@ -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("请先添加分析课程");
|