Merge remote-tracking branch 'origin/driver' into driver

This commit is contained in:
Lx 2025-04-17 18:30:19 +08:00
commit 104eb28c18

View File

@ -83,8 +83,9 @@ public class ProcessServiceImpl extends ServiceImpl<ProcessMapper, Process> impl
Long userId = SecurityFrameworkUtils.getLoginUserId();
LambdaQueryWrapper<Process> queryWrapper = new LambdaQueryWrapper<Process>()
.eq(Process::getCoachId, userId)
.notIn(Process::getSubject, Arrays.asList(1, 4))
//状态不等于2-已完成的科目
.ne(Process::getStatus, "2")
// .ne(Process::getStatus, "2")
.groupBy(Process::getCourseId).groupBy(Process::getSubject);
return this.list(queryWrapper);
}
@ -110,7 +111,7 @@ public class ProcessServiceImpl extends ServiceImpl<ProcessMapper, Process> impl
}
//状态等于1-训练中的
queryWrapper.eq(Process::getStatus, "1")
.isNull(Process::getExamStatus)
.and(wrapper -> wrapper.isNull(Process::getExamStatus).or().eq(Process::getExamStatus, "0"))
.groupBy(Process::getUserId)
.orderByDesc(BaseDO::getCreateTime);
return this.page(page, queryWrapper);