|
@@ -329,9 +329,9 @@ public class ExamRecordServiceImpl implements ExamRecordService {
|
|
|
//是否有虚拟设备
|
|
|
if (query.getHasVirtual() != null) {
|
|
|
if (query.getHasVirtual()) {
|
|
|
- sql.append(" and record_data.id in (select t1.id from ec_oe_exam_record_data t1 left join ec_oe_exam_capture t2 on t1.id=t2.exam_record_data_id where t1.exam_id = " + query.getExamId()+" and t2.has_virtual_camera=1 ");
|
|
|
+ sql.append(" and record_data.id in (select t1.id from ec_oe_exam_record_data t1 left join ec_oe_exam_capture t2 on t1.id=t2.exam_record_data_id where t1.exam_id = " + query.getExamId()+" and t2.has_virtual_camera=1 )");
|
|
|
} else {
|
|
|
- sql.append(" and record_data.id in (select t1.id from ec_oe_exam_record_data t1 left join ec_oe_exam_capture t2 on t1.id=t2.exam_record_data_id where t1.exam_id = " + query.getExamId()+" and (t2.has_virtual_camera=0 oe t2.has_virtual_camera is null) ");
|
|
|
+ sql.append(" and record_data.id in (select t1.id from ec_oe_exam_record_data t1 left join ec_oe_exam_capture t2 on t1.id=t2.exam_record_data_id where t1.exam_id = " + query.getExamId()+" and (t2.has_virtual_camera=0 oe t2.has_virtual_camera is null) )");
|
|
|
}
|
|
|
}
|
|
|
return sql;
|