| | |
| | | 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.ThBatchCourse; |
| | | import com.gkhy.exam.institutionalaccess.entity.ThStudentCourse; |
| | | import com.gkhy.exam.institutionalaccess.mapper.ThBatchCourseMapper; |
| | | import com.gkhy.exam.institutionalaccess.model.vo.ThBatchCourseVO; |
| | | import com.gkhy.exam.institutionalaccess.service.ThBatchCourseService; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ThBatchCourseVO> getListByBatchUuids(List<String> batchUuids) { |
| | | return batchCourseMapper.getListByBatchUuids(batchUuids); |
| | | public List<ThBatchCourse> getListByBatchUuids(List<String> batchUuids) { |
| | | List<ThBatchCourse> allBatchCourseList = new ArrayList<>(); |
| | | List<List<String>> split = ListUtil.split(batchUuids, 900); |
| | | for (List<String> list : split) { |
| | | List<ThBatchCourse> thBatchCourseList = batchCourseMapper.getByBatchUuids(list); |
| | | allBatchCourseList.addAll(thBatchCourseList); |
| | | } |
| | | return allBatchCourseList; |
| | | } |
| | | @Override |
| | | public List<ThBatchCourseVO> getListByBatchUuid(String batchUuid) { |
| | |
| | | return batchCourseMapper.selectList(new LambdaQueryWrapper<ThBatchCourse>() |
| | | .eq(ThBatchCourse::getInstitutionId,institutionId).eq(ThBatchCourse::getDelFlag,DeleteStatusEnum.NO.getStatus())); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByBatchUuid(String batchUuid) { |
| | | batchCourseMapper.deleteByBatchUuid(batchUuid); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertBatch(List<ThBatchCourse> courseList) { |
| | | return batchCourseMapper.insertBatch(courseList); |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateBatch(List<ThBatchCourse> courseList) { |
| | | return batchCourseMapper.updateBatch(courseList); |
| | | } |
| | | } |