|
@@ -16,10 +16,7 @@ import com.koobietech.eas.dao.dto.EasArcTlsStudentsDto;
|
|
|
import com.koobietech.eas.mbg.mapper.EasArcArchivesMapper;
|
|
|
import com.koobietech.eas.mbg.mapper.EasArcTlsStudentsMapper;
|
|
|
import com.koobietech.eas.mbg.mapper.EasSysStudentMapper;
|
|
|
-import com.koobietech.eas.mbg.model.EasArcArchives;
|
|
|
-import com.koobietech.eas.mbg.model.EasArcTlsStudents;
|
|
|
-import com.koobietech.eas.mbg.model.EasArcTlsStudentsExample;
|
|
|
-import com.koobietech.eas.mbg.model.EasSysStudent;
|
|
|
+import com.koobietech.eas.mbg.model.*;
|
|
|
import com.koobietech.eas.service.EasArchivesFilesService;
|
|
|
import com.koobietech.eas.service.EasStuProfileService;
|
|
|
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
|
@@ -179,6 +176,23 @@ public class EasStuProfileServiceImpl implements EasStuProfileService {
|
|
|
return easSysStudentMapper.selectByExample(null);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<EasSysStudent> getStudentByKeyword(String keyword) {
|
|
|
+ EasSysStudentExample easSysStudentExample = new EasSysStudentExample();
|
|
|
+ EasSysStudentExample.Criteria criteria = easSysStudentExample.createCriteria();
|
|
|
+ criteria.andStudentNameLike("%" + keyword + "%");
|
|
|
+ EasSysStudentExample.Criteria criteria1 = easSysStudentExample.createCriteria();
|
|
|
+ criteria1.andStudentNumberLike("%" + keyword + "%");
|
|
|
+ easSysStudentExample.or(criteria1);
|
|
|
+ EasSysStudentExample.Criteria criteria2 = easSysStudentExample.createCriteria();
|
|
|
+ criteria2.andPhoneLike("%" + keyword + "%");
|
|
|
+ easSysStudentExample.or(criteria2);
|
|
|
+ EasSysStudentExample.Criteria criteria3 = easSysStudentExample.createCriteria();
|
|
|
+ criteria3.andIdEqualTo( Long.valueOf(keyword) );
|
|
|
+ easSysStudentExample.or(criteria3);
|
|
|
+ return easSysStudentMapper.selectByExample(easSysStudentExample);
|
|
|
+ }
|
|
|
+
|
|
|
private Map<String, Object> generateDataMap(EasArcTlsStudents easArcTlsStudents, String studentNumber) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("student_name", easArcTlsStudents.getStudentName());
|