This commit is contained in:
Lx 2025-05-12 17:08:06 +08:00
parent faa12a4329
commit 0111bb8b01
3 changed files with 9 additions and 3 deletions

View File

@ -416,7 +416,7 @@ public class ProcessServiceImpl extends ServiceImpl<ProcessMapper, Process> impl
// .set(process.getUserName() != null, Process::getUserName, process.getUserName())
.set(process.getExamStatus() != null, Process::getExamStatus, process.getExamStatus())
.set(process.getExamScore() != null, Process::getExamScore, process.getExamScore())
.set(Process::getExamNum, process.getExamNum() + 1)
.set(process.getRemark() != null, Process::getRemark, process.getRemark())
.set(process.getExamTime() != null, Process::getExamTime, process.getExamTime())
.set(process.getImages() != null, Process::getImages, process.getImages()));
@ -564,7 +564,8 @@ public class ProcessServiceImpl extends ServiceImpl<ProcessMapper, Process> impl
public void autoAssignCoach(ProcessNewVO request){
Long userId = SecurityFrameworkUtils.getLoginUserId();
AdminUserRespDTO user = userApi.getUser(userId);
String userName = user.getNickname();
// String userName = user.getNickname();
String userName= request.getUserName();
String mobile = user.getMobile();
DlDriveSchoolCourseVO dlDriveSchoolCourseVO = courseService.queryDetailById(request.getCourseId());

View File

@ -28,6 +28,11 @@ public class ProcessNewVO {
*/
private Long userId;
/**
* 学员名称
*/
private String userName;
/**
* 教练ID
*/

View File

@ -306,7 +306,7 @@ public class ExamBatchItemServiceImpl extends ServiceImpl<ExamBatchItemMapper, E
process.setExamTime(examBatch.getStartTime());
process.setRemark(examBatchVO.getRemark());
//已完成
process.setExamNum(process.getExamNum() + 1);
process.setExamStatus(examBatchVO.getIfPass() ? "1" : "0");
processService.updateById(process);