| | |
| | | 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.ThExamRecord; |
| | |
| | | import com.ruoyi.common.enums.coalmineEnums.DeleteStatusEnum; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | @Service("ThExamRecordService") |
| | |
| | | public List<ThExamRecordVO> listByPage(ThExamRecordQuery query) { |
| | | return thExamRecordMapper.listByPage(query); |
| | | } |
| | | |
| | | @Override |
| | | public List<ThExamRecord> getByUuids(List<String> examUuids) { |
| | | List<ThExamRecord> allExamRecordList = new ArrayList<>(); |
| | | List<List<String>> split = ListUtil.split(examUuids, 900); |
| | | for (List<String> list : split) { |
| | | List<ThExamRecord> examRecordList = thExamRecordMapper.getByUuids(list); |
| | | allExamRecordList.addAll(examRecordList); |
| | | } |
| | | |
| | | return allExamRecordList; |
| | | } |
| | | @Override |
| | | public Integer insertBatch(List<ThExamRecord> examRecordList){ |
| | | return baseMapper.insertBatch(examRecordList); |
| | | } |
| | | } |