From 85ae68bdbd7e373fb6f3e6f5eb04c57e3d86efd0 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: 星期三, 16 十月 2024 10:28:33 +0800
Subject: [PATCH] 补全缺失字段
---
exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/serviceImpl/ThBatchServiceImpl.java | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/serviceImpl/ThBatchServiceImpl.java b/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/serviceImpl/ThBatchServiceImpl.java
index 6306e7f..42a34be 100644
--- a/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/serviceImpl/ThBatchServiceImpl.java
+++ b/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/serviceImpl/ThBatchServiceImpl.java
@@ -1,5 +1,6 @@
package com.gkhy.exam.institutionalaccess.service.serviceImpl;
+import cn.hutool.core.collection.ListUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gkhy.exam.institutionalaccess.entity.ThBatch;
@@ -11,6 +12,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -32,4 +34,30 @@
public List<ThBatchVO> listByPage(ThBatchQuery query) {
return batchMapper.listByPage(query);
}
+
+ @Override
+ public List<ThBatch> getByUuids(List<String> batchUuids) {
+ List<ThBatch> allBatchList = new ArrayList<>();
+ List<List<String>> split = ListUtil.split(batchUuids, 900);
+ for (List<String> splitBatchUuids : split) {
+ List<ThBatch> batchList = batchMapper.getByUuids(splitBatchUuids);
+ allBatchList.addAll(batchList);
+ }
+ return allBatchList;
+ }
+
+ @Override
+ public Integer insertBatch(List<ThBatch> batchList) {
+ return batchMapper.insertBatch(batchList);
+ }
+
+ @Override
+ public Integer updateBatch(List<ThBatch> batchList) {
+ return batchMapper.updateBatch(batchList);
+ }
+
+ @Override
+ public List<ThBatch> getBatchNameByUuids(List<String> batchUuids) {
+ return batchMapper.getBatchNameByUuids(batchUuids);
+ }
}
--
Gitblit v1.9.2