Merge remote-tracking branch 'origin/beetlsql3-dev' into beetlsql3-dev

beetlsql3-dev
Mlxa0324 2 years ago
commit e124ed849c

@ -106,7 +106,7 @@ public class StudentHandsOnTaskReportService extends CoreBaseService<StudentHand
return JsonResult.fail("");
}
Student student = studentService.getByUserId(coreUser.getId());
studentHandsOnTaskReportQuery.setStudentId(student.getId());
studentHandsOnTaskReportQuery.setStudentId(student.getStudentId());
String msg = "";
StudentHandsOnTaskReport studentHandsOnTaskReport = studentHandsOnTaskReportQuery.pojo();
@ -115,12 +115,12 @@ public class StudentHandsOnTaskReportService extends CoreBaseService<StudentHand
return JsonResult.success();
}
StudentHandsOnTaskReport studentHandsOnTaskReport1 = this.sqlManager.lambdaQuery(StudentHandsOnTaskReport.class)
.andEq(StudentHandsOnTaskReport::getHandsOnTaskId, handsOnTaskId).singleSimple();
.andEq(StudentHandsOnTaskReport::getHandsOnTaskId, handsOnTaskId).andEq(StudentHandsOnTaskReport::getStudentId, student.getStudentId()).singleSimple();
if (studentHandsOnTaskReport1 != null) {
BigDecimal reportScore = studentHandsOnTaskReportQuery.getReportScore();
TeacherOpenCourseHandsOnSimulationTasks single = tasksService.createLambdaQuery()
.andEq(TeacherOpenCourseHandsOnSimulationTasks::getTaskId, studentHandsOnTaskReport.getHandsOnTaskId()).single();
if (single != null) {
if (single != null && reportScore != null) {
try{
String taskScore = single.getTaskScore();
int i = NumberUtil.parseInt(taskScore);

Loading…
Cancel
Save