同步学生信息修改

This commit is contained in:
2026-01-05 16:19:19 +08:00
parent 179783c2b9
commit 29c99d13d3
5 changed files with 51 additions and 6 deletions

View File

@@ -9,10 +9,7 @@ import com.srs.comprehensive.service.ISrsClassService;
import com.srs.comprehensive.service.ISrsMajorsService;
import com.srs.comprehensive.service.SyncDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
@@ -72,6 +69,13 @@ public class SyncDataController extends BaseController {
iSrsClassService.synchronousMYSQL(list);//同步班级
return success();
}
@RequestMapping("/getStudentInfo")
public AjaxResult getStudentInfoList(@RequestParam("pageNum")Integer pageNum,
@RequestParam("pageSize") Integer pageSize,
@RequestParam(value = "stuNo", required = false)String stuNo){
int studentInfoNumber = syncDataService.getStudentInfoNumber();
List<Map> list=syncDataService.getStudentInfoList(pageNum,pageSize,stuNo);
return success(list).put("total", studentInfoNumber);
}
}