|
@@ -164,7 +164,6 @@ public class ExamRecordServiceImpl implements ExamRecordService {
|
|
" LEFT JOIN ec_oe_exam_audit AS audit ON record_data.id = audit.exam_record_data_id " +
|
|
" LEFT JOIN ec_oe_exam_audit AS audit ON record_data.id = audit.exam_record_data_id " +
|
|
" LEFT JOIN ec_oe_exam_score eoes ON record_data.id = eoes.exam_record_data_id " +
|
|
" LEFT JOIN ec_oe_exam_score eoes ON record_data.id = eoes.exam_record_data_id " +
|
|
" LEFT JOIN ec_oe_exam_student eoest ON record_data.exam_student_id = eoest.exam_student_id " +
|
|
" LEFT JOIN ec_oe_exam_student eoest ON record_data.exam_student_id = eoest.exam_student_id " +
|
|
- " left join ec_oe_exam_capture_camera_info camera on record_data.id=camera.exam_record_data_id "+
|
|
|
|
" where 1=1";
|
|
" where 1=1";
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -215,7 +214,6 @@ public class ExamRecordServiceImpl implements ExamRecordService {
|
|
private static final String EXAM_RECORD_FROM_SQL = " from ec_oe_exam_record_data record_data " +
|
|
private static final String EXAM_RECORD_FROM_SQL = " from ec_oe_exam_record_data record_data " +
|
|
" LEFT JOIN ec_oe_exam_process_record AS process ON record_data.id = process.exam_record_data_id " +
|
|
" LEFT JOIN ec_oe_exam_process_record AS process ON record_data.id = process.exam_record_data_id " +
|
|
" LEFT JOIN ec_oe_exam_audit AS audit ON record_data.id = audit.exam_record_data_id " +
|
|
" LEFT JOIN ec_oe_exam_audit AS audit ON record_data.id = audit.exam_record_data_id " +
|
|
- " left join ec_oe_exam_capture_camera_info camera on record_data.id=camera.exam_record_data_id "+
|
|
|
|
" where 1=1";
|
|
" where 1=1";
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -531,7 +529,10 @@ public class ExamRecordServiceImpl implements ExamRecordService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (StringUtils.isNotBlank(query.getVirtualName())) {
|
|
if (StringUtils.isNotBlank(query.getVirtualName())) {
|
|
- sql.append(" and camera.virtual_camera=1 and camera.name='"+query.getVirtualName()+"' ");
|
|
|
|
|
|
+ sql.append(" AND EXISTS( ");
|
|
|
|
+ sql.append(" select 1 from ec_oe_exam_capture_camera_info ci where record_data.id = ci.exam_record_data_id ");
|
|
|
|
+ sql.append(" and ci.virtual_camera=1 and ci.name='"+query.getVirtualName()+"' ");
|
|
|
|
+ sql.append(" ) ");
|
|
}
|
|
}
|
|
|
|
|
|
//ip
|
|
//ip
|