同步学生信息

This commit is contained in:
2026-03-03 11:56:07 +08:00
parent f5f9004201
commit 5bb0569720
4 changed files with 38 additions and 36 deletions

View File

@@ -72,9 +72,10 @@ public class SyncDataController extends BaseController {
@RequestMapping("/getStudentInfo")
public AjaxResult getStudentInfoList(@RequestParam("pageNum")Integer pageNum,
@RequestParam("pageSize") Integer pageSize,
@RequestParam(value = "stuNo", required = false)String stuNo){
int studentInfoNumber = syncDataService.getStudentInfoNumber(null);
List<Map> list=syncDataService.getStudentInfoList(pageNum,pageSize,stuNo,null);
@RequestParam(value = "stuNo", required = false)String stuNo,
@RequestParam(value = "gradeCode", required = false)String gradeCode){
int studentInfoNumber = syncDataService.getStudentInfoNumber(gradeCode);
List<Map> list=syncDataService.getStudentInfoList(pageNum,pageSize,stuNo,gradeCode);
return success(list).put("total", studentInfoNumber);
}
//同步学生
@@ -92,8 +93,8 @@ public class SyncDataController extends BaseController {
stuNoList.addAll(maps);
list.clear();
}
//iSrsStudentService.addStudentData(stuNoList);//添加到学生表
//iSrsStudentService.Usertb();//同步到用户表
iSrsStudentService.addStudentData(stuNoList);//添加到学生表
iSrsStudentService.Usertb();//同步到用户表
return success();
}