|
|
|
@ -20,12 +20,14 @@ import com.sztzjy.trade.mapper.StuUserMapper;
|
|
|
|
|
import com.sztzjy.trade.mapper.TeacherOpenCourseStudentSigninLogMapper;
|
|
|
|
|
import com.sztzjy.trade.mapper.TeacherOpenCourseStudentSigninSettingMapper;
|
|
|
|
|
import com.sztzjy.trade.service.TeacherOpenCourseStudentSigninService;
|
|
|
|
|
import com.sztzjy.trade.util.ConvertUtil;
|
|
|
|
|
import com.sztzjy.trade.util.ResultEntity;
|
|
|
|
|
import com.sztzjy.trade.util.excel.FilePortUtil;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
@ -123,10 +125,86 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
openCourseStudentSigninSetting.setTeacherOpenCourseStudentSigninSettingStartStatus(String.valueOf(StartStatusEnum.END));
|
|
|
|
|
openCourseStudentSigninSetting.setTeacherOpenCourseStudentSigninSettingEndTime(new Date());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
teacherOpenCourseStudentSigninSettingMapper.updateByPrimaryKeySelective(openCourseStudentSigninSetting);
|
|
|
|
|
|
|
|
|
|
//根据ID查询签到用户 把未签到用户添加到记录表
|
|
|
|
|
String[] split = openCourseStudentSigninSetting.getSchoolClassIds().split(",");;
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
//查询所有学生
|
|
|
|
|
|
|
|
|
|
List<String> collect = Arrays.stream(split).collect(Collectors.toList());
|
|
|
|
|
//根据班级列表查询对应所有用户数据
|
|
|
|
|
StuUserExample stuUserExample = new StuUserExample();
|
|
|
|
|
stuUserExample.createCriteria().andClassIdIn(collect).andRoleIdEqualTo(4);
|
|
|
|
|
List<StuUser> stuUserList = stuUserMapper.selectByExample(stuUserExample);
|
|
|
|
|
if (stuUserList.isEmpty()) {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "暂无该班级");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
TeacherOpenCourseStudentSigninLogExample example = new TeacherOpenCourseStudentSigninLogExample();
|
|
|
|
|
example.createCriteria().andTeacherOpenCourseStudentSigninSettingIdEqualTo(tchEndSignDTO.getTeacherOpenCourseStudentSigninSettingId());
|
|
|
|
|
|
|
|
|
|
List<TeacherOpenCourseStudentSigninLog> courseStudentSigninLogs = teacherOpenCourseStudentSigninLogMapper.selectByExample(example);
|
|
|
|
|
if (!courseStudentSigninLogs.isEmpty()) {
|
|
|
|
|
List<StuUser> list = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
stuUserList.forEach(stuUser -> {
|
|
|
|
|
courseStudentSigninLogs.forEach(item->{
|
|
|
|
|
|
|
|
|
|
if (item.getUserId().equals(stuUser.getUserId())) {
|
|
|
|
|
list.add(stuUser);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stuUserList.removeAll(list);
|
|
|
|
|
|
|
|
|
|
for (StuUser stuUser : stuUserList) {
|
|
|
|
|
TeacherOpenCourseStudentSigninLog build = TeacherOpenCourseStudentSigninLog.builder()
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingId(tchEndSignDTO.getTeacherOpenCourseStudentSigninSettingId())
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingSessionTime(openCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingSessionTime())
|
|
|
|
|
.studentId(stuUser.getStudentId())
|
|
|
|
|
.teacherOpenCourseId(1L)
|
|
|
|
|
.schoolClassId(Convert.toLong(stuUser.getClassId()))
|
|
|
|
|
.teacherOpenCourseStudentSigninLogAddTime(openCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingAddTime())
|
|
|
|
|
.teacherOpenCourseStudentSigninLogType(openCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingType())
|
|
|
|
|
.teacherOpenCourseStudentSigninLogTag(20)
|
|
|
|
|
.userId(Convert.toLong(stuUser.getUserId())).build();
|
|
|
|
|
teacherOpenCourseStudentSigninLogMapper.insertSelective(build);
|
|
|
|
|
|
|
|
|
|
//写入学习记录中
|
|
|
|
|
updateLearningRecord(build);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
|
|
for (StuUser stuUser : stuUserList) {
|
|
|
|
|
TeacherOpenCourseStudentSigninLog build = TeacherOpenCourseStudentSigninLog.builder()
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingId(tchEndSignDTO.getTeacherOpenCourseStudentSigninSettingId())
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingSessionTime(openCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingSessionTime())
|
|
|
|
|
.studentId(stuUser.getStudentId())
|
|
|
|
|
.teacherOpenCourseId(1L)
|
|
|
|
|
.schoolClassId(Convert.toLong(stuUser.getClassId()))
|
|
|
|
|
.teacherOpenCourseStudentSigninLogAddTime(openCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingAddTime())
|
|
|
|
|
.teacherOpenCourseStudentSigninLogType(openCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingType())
|
|
|
|
|
.teacherOpenCourseStudentSigninLogTag(20)
|
|
|
|
|
.userId(Convert.toLong(stuUser.getUserId())).build();
|
|
|
|
|
teacherOpenCourseStudentSigninLogMapper.insertSelective(build);
|
|
|
|
|
|
|
|
|
|
//写入学习记录中
|
|
|
|
|
updateLearningRecord(build);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -145,13 +223,10 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
//签到表ID
|
|
|
|
|
vo.setTeacherOpenCourseStudentSigninSettingId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
|
|
|
|
|
// 定义要随机抽取的数量
|
|
|
|
|
int numberOfUsersToSelect = 6;
|
|
|
|
|
|
|
|
|
|
String[] split = tchManualSignDTO.getClassIds().split(",");
|
|
|
|
|
|
|
|
|
|
for (String classId : split) {
|
|
|
|
|
numberOfUsersToSelect += 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<String> collect = Arrays.stream(split).collect(Collectors.toList());
|
|
|
|
|
//根据班级列表查询对应所有用户数据
|
|
|
|
|
StuUserExample stuUserExample = new StuUserExample();
|
|
|
|
@ -165,9 +240,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查列表大小是否大于等于要抽取的数量
|
|
|
|
|
if (stuUserList.size() < numberOfUsersToSelect) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (stuUserList.size() < tchManualSignDTO.getRandomNumber()) {
|
|
|
|
|
// 抽取指定数量的元素
|
|
|
|
|
List<StuUser> selectedUsers = stuUserList.subList(0, stuUserList.size());
|
|
|
|
|
vo.setUserList(selectedUsers);
|
|
|
|
@ -177,7 +250,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
// 抽取指定数量的元素
|
|
|
|
|
List<StuUser> selectedUsers = stuUserList.subList(0, numberOfUsersToSelect);
|
|
|
|
|
List<StuUser> selectedUsers = stuUserList.subList(0, tchManualSignDTO.getRandomNumber());
|
|
|
|
|
vo.setUserList(selectedUsers);
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, vo);
|
|
|
|
|
}
|
|
|
|
@ -193,6 +266,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@Async
|
|
|
|
|
public ResultEntity manualSignSure(TchManualSignDTO tchManualSignDTO) {
|
|
|
|
|
//查询是否为多次插入
|
|
|
|
|
TeacherOpenCourseStudentSigninSetting teacherOpenCourseStudentSigninSetting =
|
|
|
|
@ -208,7 +282,15 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
//创建签到表
|
|
|
|
|
TeacherOpenCourseStudentSigninSetting openCourseStudentSigninSetting = new TeacherOpenCourseStudentSigninSetting();
|
|
|
|
|
openCourseStudentSigninSetting.setTeacherOpenCourseStudentSigninSettingSessionTime(tchManualSignDTO.getTeacherOpenCourseStudentSigninSettingSessionTime());
|
|
|
|
|
openCourseStudentSigninSetting.setTeacherOpenCourseStudentSigninSettingId(tchManualSignDTO.getTeacherOpenCourseStudentSigninSettingId());
|
|
|
|
|
|
|
|
|
|
int i = UUID.randomUUID().hashCode();
|
|
|
|
|
if (i<0)
|
|
|
|
|
{
|
|
|
|
|
i = -1;
|
|
|
|
|
}
|
|
|
|
|
final int i2 = i;
|
|
|
|
|
|
|
|
|
|
openCourseStudentSigninSetting.setTeacherOpenCourseStudentSigninSettingId((long) i);
|
|
|
|
|
openCourseStudentSigninSetting.setTeacherOpenCourseId(tchManualSignDTO.getTeacherOpenCourseId());
|
|
|
|
|
openCourseStudentSigninSetting.setSchoolClassIds(tchManualSignDTO.getClassIds());
|
|
|
|
|
openCourseStudentSigninSetting.setTeacherOpenCourseStudentSigninSettingAddTime((new Date()));
|
|
|
|
@ -218,6 +300,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
openCourseStudentSigninSetting.setTeacherOpenCourseStudentSigninSettingEndTime(new Date());
|
|
|
|
|
openCourseStudentSigninSetting.setTeacherOpenCourseStudentSigninSettingType(Constant.MANUAL);
|
|
|
|
|
openCourseStudentSigninSetting.setUserId(tchManualSignDTO.getUserId());
|
|
|
|
|
openCourseStudentSigninSetting.setOrgId(Long.valueOf(tchManualSignDTO.getOrgId()));
|
|
|
|
|
|
|
|
|
|
teacherOpenCourseStudentSigninSettingMapper.insertSelective(openCourseStudentSigninSetting);
|
|
|
|
|
|
|
|
|
@ -228,7 +311,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
|
|
|
|
|
//判断是否缺勤或者签到
|
|
|
|
|
TeacherOpenCourseStudentSigninLog studentSigninLog = TeacherOpenCourseStudentSigninLog.builder()
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingId(tchManualSignDTO.getTeacherOpenCourseStudentSigninSettingId())
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingId((long) i2)
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingSessionTime(tchManualSignDTO.getTeacherOpenCourseStudentSigninSettingSessionTime())
|
|
|
|
|
.studentId(item.getStudentId())
|
|
|
|
|
.teacherOpenCourseStudentSigninLogTag(item.getTeacherOpenCourseStudentSigninLogTag())
|
|
|
|
@ -253,7 +336,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuUserExample userExample = new StuUserExample();
|
|
|
|
|
userExample.createCriteria().andClassIdIn(Arrays.stream(split).collect(Collectors.toList()));
|
|
|
|
|
userExample.createCriteria().andClassIdIn(Arrays.stream(split).collect(Collectors.toList())).andRoleIdEqualTo(4);
|
|
|
|
|
//查询多个班级所有学生
|
|
|
|
|
List<StuUser> stuUserList = stuUserMapper.selectByExample(userExample);
|
|
|
|
|
if (stuUserList.isEmpty()) {
|
|
|
|
@ -275,7 +358,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
.teacherOpenCourseStudentSigninLogAddTime(list.get(0).getTeacherOpenCourseStudentSigninLogAddTime())
|
|
|
|
|
.teacherOpenCourseStudentSigninLogTag(10)
|
|
|
|
|
.userId(Convert.toLong(stuUser.getUserId()))
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingId(tchManualSignDTO.getTeacherOpenCourseStudentSigninSettingId())
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingId((long) i2)
|
|
|
|
|
.teacherOpenCourseStudentSigninSettingSessionTime(tchManualSignDTO.getTeacherOpenCourseStudentSigninSettingSessionTime())
|
|
|
|
|
.teacherOpenCourseId(tchManualSignDTO.getTeacherOpenCourseId())
|
|
|
|
|
.schoolClassId(Long.parseLong(stuUser.getClassId())).build();
|
|
|
|
@ -365,6 +448,12 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
int missStudent = 0;
|
|
|
|
|
double totalAttendRate = 0.0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int summarySum = 0;
|
|
|
|
|
int summarySignCount = 0;
|
|
|
|
|
int summaryMissStudent = 0;
|
|
|
|
|
int summaryAttendRate = 0;
|
|
|
|
|
|
|
|
|
|
// 开启分页,确保分页在数据库查询之前
|
|
|
|
|
PageHelper.startPage(page, size);
|
|
|
|
|
//根据课程ID查询所有签到数据
|
|
|
|
@ -386,7 +475,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//合计老师开启签到次数
|
|
|
|
|
sum = teacherOpenCourseStudentSigninSettingList.size();
|
|
|
|
|
summarySum = teacherOpenCourseStudentSigninSettingList.size();
|
|
|
|
|
|
|
|
|
|
//存储记录表List
|
|
|
|
|
List<TeacherSigninSettingDTO> teacherSigninSettingDTOS = new ArrayList<>();
|
|
|
|
@ -402,7 +491,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
|
|
|
|
|
//查询每个班级人数
|
|
|
|
|
StuUserExample stuUserExample = new StuUserExample();
|
|
|
|
|
stuUserExample.createCriteria().andClassIdIn(Arrays.stream(split).collect(Collectors.toList()));
|
|
|
|
|
stuUserExample.createCriteria().andClassIdIn(Arrays.stream(split).collect(Collectors.toList())).andRoleIdEqualTo(4);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//总人数
|
|
|
|
@ -412,8 +501,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
TeacherOpenCourseStudentSigninLogExample studentSigninLogExample = new TeacherOpenCourseStudentSigninLogExample();
|
|
|
|
|
|
|
|
|
|
studentSigninLogExample.createCriteria()
|
|
|
|
|
.andTeacherOpenCourseStudentSigninSettingIdEqualTo
|
|
|
|
|
(openCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingId());
|
|
|
|
|
.andTeacherOpenCourseStudentSigninSettingIdEqualTo(openCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingId());
|
|
|
|
|
|
|
|
|
|
List<TeacherOpenCourseStudentSigninLog> teacherOpenCourseStudentSigninLogList =
|
|
|
|
|
teacherOpenCourseStudentSigninLogMapper.selectByExample(studentSigninLogExample);
|
|
|
|
@ -427,23 +515,31 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//缺勤签到人数
|
|
|
|
|
int missSizeManual = teacherOpenCourseStudentSigninLogList.stream()
|
|
|
|
|
.filter(item -> item.getTeacherOpenCourseStudentSigninLogType().equals(Constant.MANUAL))
|
|
|
|
|
.filter(item -> item.getTeacherOpenCourseStudentSigninLogTag() == 20)
|
|
|
|
|
.collect(Collectors.toList()).size();
|
|
|
|
|
// int missSizeManual = teacherOpenCourseStudentSigninLogList.stream()
|
|
|
|
|
// .filter(item -> item.getTeacherOpenCourseStudentSigninLogType().equals(Constant.MANUAL))
|
|
|
|
|
// .filter(item -> item.getTeacherOpenCourseStudentSigninLogTag() == 20)
|
|
|
|
|
// .collect(Collectors.toList()).size();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//签到人数
|
|
|
|
|
int size1 = teacherOpenCourseStudentSigninLogList.stream().filter(item -> item.getTeacherOpenCourseStudentSigninLogTag() == 10).collect(Collectors.toList()).size();
|
|
|
|
|
|
|
|
|
|
summarySignCount = summarySignCount+size1;
|
|
|
|
|
summaryMissStudent = summaryMissStudent+ (countByClass - size1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 先转换为浮点数进行除法运算
|
|
|
|
|
double result = (double) missSizeManual / countByClass;
|
|
|
|
|
double result = (double) size1 / countByClass;
|
|
|
|
|
|
|
|
|
|
// 四舍五入保留两位小数
|
|
|
|
|
//总到课率
|
|
|
|
|
double roundedResult = Math.round(result * 100.0) / 100.0;
|
|
|
|
|
|
|
|
|
|
teacherSigninSettingDTO.setSum(countByClass);
|
|
|
|
|
teacherSigninSettingDTO.setSignCount(countByClass - missSizeManual);
|
|
|
|
|
teacherSigninSettingDTO.setMissStudent(missSizeManual);
|
|
|
|
|
teacherSigninSettingDTO.setTotalAttendRate(roundedResult);
|
|
|
|
|
teacherSigninSettingDTO.setSignCount(size1);
|
|
|
|
|
teacherSigninSettingDTO.setMissStudent(countByClass - size1);
|
|
|
|
|
summaryAttendRate = summaryAttendRate+(int) (roundedResult * 100);
|
|
|
|
|
teacherSigninSettingDTO.setTotalAttendRate(roundedResult * 100);
|
|
|
|
|
teacherSigninSettingDTO.setClassName(classString(teacherSigninSettingDTO.getSchoolClassIds()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -464,6 +560,9 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
|
|
|
|
|
missStudent = +info;
|
|
|
|
|
|
|
|
|
|
summarySignCount = summarySignCount +size1;
|
|
|
|
|
summaryMissStudent =summaryMissStudent + (countByClass - size1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TeacherSigninSettingDTO teacherSigninSettingDTO = new TeacherSigninSettingDTO();
|
|
|
|
|
|
|
|
|
@ -486,7 +585,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
|
|
|
|
|
//合计到课率
|
|
|
|
|
totalAttendRate = +roundedResult;
|
|
|
|
|
|
|
|
|
|
summaryAttendRate = summaryAttendRate+(int) (roundedResult * 100);
|
|
|
|
|
teacherSigninSettingDTO.setTotalAttendRate(roundedResult);
|
|
|
|
|
teacherSigninSettingDTO.setClassName(classString(teacherSigninSettingDTO.getSchoolClassIds()));
|
|
|
|
|
teacherSigninSettingDTOS.add(teacherSigninSettingDTO);
|
|
|
|
@ -513,8 +612,10 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
// 包装分页后的结果列表
|
|
|
|
|
PageInfo<TeacherSigninSettingDTO> teacherSigninSettingDTOPageInfo = new PageInfo<>(teacherSigninSettingDTOS);
|
|
|
|
|
|
|
|
|
|
summaryAttendRate = summaryAttendRate / summarySum;
|
|
|
|
|
|
|
|
|
|
TchSignInfoDTO tchSignInfoDTO = TchSignInfoDTO.builder().signCount(signCount).sum(sum).missStudent(missStudent).totalAttendRate(totalAttendRate)
|
|
|
|
|
|
|
|
|
|
TchSignInfoDTO tchSignInfoDTO = TchSignInfoDTO.builder().signCount(summarySignCount).sum(summarySum).missStudent(summaryMissStudent).totalAttendRate(summaryAttendRate)
|
|
|
|
|
.signinSettingList(teacherSigninSettingDTOPageInfo).build();
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, tchSignInfoDTO);
|
|
|
|
|
|
|
|
|
@ -775,7 +876,7 @@ public class TeacherOpenCourseStudentSigninServiceImpl implements TeacherOpenCou
|
|
|
|
|
//查询班级所有用户
|
|
|
|
|
String[] split = classIds.split(",");
|
|
|
|
|
StuUserExample userExample = new StuUserExample();
|
|
|
|
|
userExample.createCriteria().andClassIdIn(Arrays.stream(split).collect(Collectors.toList()));
|
|
|
|
|
userExample.createCriteria().andClassIdIn(Arrays.stream(split).collect(Collectors.toList())).andRoleIdEqualTo(4);
|
|
|
|
|
List<StuUser> stuUserList = stuUserMapper.selectByExample(userExample);
|
|
|
|
|
if (stuUserList.isEmpty()) {
|
|
|
|
|
return null;
|
|
|
|
|