|
@@ -101,7 +101,8 @@ public class InspectedServiceImpl extends BaseQueryService<ExamStudent> implemen
|
|
|
+ "%' or bu.name like '" + query.getInspectorName() + "%'))");
|
|
|
}
|
|
|
if (query.getInspectRound()!=null) {
|
|
|
- whereSql.append(" and s.inspect_count="+ query.getInspectRound());
|
|
|
+ whereSql.append(" and exists (select 1 from eb_inspect_history ei where ei.student_id = s.id and ei.inspect_round="
|
|
|
+ + query.getInspectRound() + ")");
|
|
|
}
|
|
|
if (query.getInspectUnrepeated() != null && query.getInspectUnrepeated()) {
|
|
|
whereSql.append(" and not exists (select 1 from eb_inspect_history ei where ei.student_id = s.id and ei.inspector_id="
|