|
@@ -103,7 +103,8 @@ public class InspectedServiceImpl extends BaseQueryService<ExamStudent> implemen
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(query.getInspectorName())) {
|
|
|
whereSql.append(" and exists (select 1 from eb_inspect_history ei left join b_user bu on ei.inspector_id=bu.id "
|
|
|
- +" where ei.student_id = s.id and bu.login_name like '"+query.getInspectorName()+"%')");
|
|
|
+ +" where ei.student_id = s.id and (bu.login_name like '"+query.getInspectorName()+"%' or bu.name like '"+
|
|
|
+ query.getInspectorName()+"%'))");
|
|
|
}
|
|
|
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="+query.getInspectorId()+")");
|