|
@@ -258,9 +258,8 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
}*/
|
|
|
String month = DateUtil.format(new Date(), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
studentOperatingVisitDao.deleteByUserId(month);
|
|
|
- List<Student> updateStudentList = studentDao.queryByOperatingTag(1);
|
|
|
- if (!CollectionUtils.isEmpty(updateStudentList)) {
|
|
|
- List<Integer> operatingUserIds = updateStudentList.stream().map(e -> e.getUserId()).collect(Collectors.toList());
|
|
|
+ List<Integer> operatingUserIds = studentDao.queryByOperatingTag(1);
|
|
|
+ if (!CollectionUtils.isEmpty(operatingUserIds)) {
|
|
|
List<Integer> userIds = studentOperatingVisitDao.queryUserIds(month);
|
|
|
operatingUserIds.removeAll(userIds);
|
|
|
if(!CollectionUtils.isEmpty(operatingUserIds)){
|