xiatian 1 year ago
parent
commit
52ed28ba77

+ 2 - 1
stmms-biz/src/main/java/cn/com/qmth/stmms/biz/exam/service/impl/InspectedServiceImpl.java

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