|
@@ -323,7 +323,7 @@ public class CourseStudyController {
|
323
|
323
|
if (CollectionUtil.isNotEmpty(courseList)) {
|
324
|
324
|
int finishSize = 0;
|
325
|
325
|
List<Long> ids = courseList.stream().map(CourseAppListDTO::getId).collect(Collectors.toList());
|
326
|
|
- List<QkjStudyRecordApp> recordApps = qkjStudyRecordAppDao.findByObjIdsAndType(ids, 2);
|
|
326
|
+ List<QkjStudyRecordApp> recordApps = qkjStudyRecordAppDao.findByMemCardAndObjIdsAndType(memCard, ids, 2);
|
327
|
327
|
if (CollectionUtil.isNotEmpty(recordApps)) {
|
328
|
328
|
for (QkjStudyRecordApp qkjStudyRecordApp : recordApps) {
|
329
|
329
|
if (Objects.equals(qkjStudyRecordApp.getStudyAccomplish(), 1)) {
|
|
@@ -332,7 +332,7 @@ public class CourseStudyController {
|
332
|
332
|
}
|
333
|
333
|
}
|
334
|
334
|
log.info("joinTheoryExamination courseList:{} finishSize:{}", courseList.size(), finishSize);
|
335
|
|
- finishCourse = courseList.size() == finishSize;
|
|
335
|
+ finishCourse = finishSize == courseList.size();
|
336
|
336
|
}
|
337
|
337
|
QkjExamineRecordApp recordApp = qkjExamineRecordAppDao.getByMemCard(memCard, 2);
|
338
|
338
|
JoinExaminationDTO build = JoinExaminationDTO.builder()
|
|
@@ -355,7 +355,7 @@ public class CourseStudyController {
|
355
|
355
|
if (CollectionUtil.isNotEmpty(courseList)) {
|
356
|
356
|
int finishSize = 0;
|
357
|
357
|
List<Long> ids = courseList.stream().map(CourseAppListDTO::getId).collect(Collectors.toList());
|
358
|
|
- List<QkjStudyRecordApp> recordApps = qkjStudyRecordAppDao.findByObjIdsAndType(ids, 2);
|
|
358
|
+ List<QkjStudyRecordApp> recordApps = qkjStudyRecordAppDao.findByMemCardAndObjIdsAndType(memCard, ids, 2);
|
359
|
359
|
if (CollectionUtil.isNotEmpty(recordApps)) {
|
360
|
360
|
for (QkjStudyRecordApp qkjStudyRecordApp : recordApps) {
|
361
|
361
|
if (Objects.equals(qkjStudyRecordApp.getStudyAccomplish(), 1)) {
|