| | |
| | | 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.ThStudyAuth; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ThStudyAuth> getListByStudyDetaiIds(List<String> detailUuids) { |
| | | return thStudyAuthMapper.selectList(new LambdaQueryWrapper<ThStudyAuth>().in(ThStudyAuth::getStudyDetailUuid, detailUuids)); |
| | | public List<ThStudyAuth> getByStudyDetaiUuids(List<String> studyUuids) { |
| | | List<ThStudyAuth> allAuthList = new ArrayList<>(); |
| | | List<List<String>> split = ListUtil.split(studyUuids, 900); |
| | | for (List<String> list : split) { |
| | | List<ThStudyAuth> authList = thStudyAuthMapper.getByStudyDetaiUuids(list); |
| | | allAuthList.addAll(authList); |
| | | } |
| | | |
| | | return allAuthList; |
| | | } |
| | | |
| | | @Override |
| | | public Integer insetBatch(List<ThStudyAuth> thStudyAuthList) { |
| | | return baseMapper.insertBatch(thStudyAuthList); |
| | | } |
| | | |
| | | |
| | | } |