|
@@ -161,9 +161,11 @@ public class StudentAttendanceServiceImpl extends ServiceImpl<StudentAttendanceM
|
|
|
QueryWrapper<MusicGroupStudentFee> musicGroupStudentFeeQueryWrapper = new QueryWrapper<MusicGroupStudentFee>();
|
|
|
musicGroupStudentFeeQueryWrapper.lambda().eq(true, MusicGroupStudentFee::getMusicGroupId, classGroup.getMusicGroupId())
|
|
|
.eq(true, MusicGroupStudentFee::getUserId, item.getUserId());
|
|
|
- if (Optional.of(musicGroupStudentFeeService.getOne(musicGroupStudentFeeQueryWrapper)).get()
|
|
|
- .getContinuousAbsenteeismTimes() > 1) {
|
|
|
- resp.setTruant(true);
|
|
|
+ MusicGroupStudentFee musicGroupStudentFee = musicGroupStudentFeeService.getOne(musicGroupStudentFeeQueryWrapper);
|
|
|
+ if (Objects.nonNull(musicGroupStudentFee) && Objects.nonNull(musicGroupStudentFee.getContinuousAbsenteeismTimes())) {
|
|
|
+ if (musicGroupStudentFee.getContinuousAbsenteeismTimes() > 1) {
|
|
|
+ resp.setTruant(true);
|
|
|
+ }
|
|
|
}
|
|
|
//到课天数
|
|
|
QueryWrapper<StudentAttendance> normalWrapper = new QueryWrapper<>();
|