| | |
| | | package com.qxueyou.scc.controller; |
| | | |
| | | import com.qxueyou.scc.admin.classes.model.ClsClass; |
| | | import com.qxueyou.scc.admin.schoolRoll.ISchoolRollService; |
| | | import com.qxueyou.scc.base.model.Pager; |
| | | import com.qxueyou.scc.base.model.Result; |
| | |
| | | |
| | | return new Result(true,"success", CollectionUtils.newObjectMap("schoolRollList", |
| | | QBeanUtils.listBean2ListMap(schoolRollList, |
| | | CollectionUtils.newStringMap("name", "studentName", "studentNo", "studentNo","sex","sex", "status", |
| | | "status", "createTime", "createTime")), |
| | | CollectionUtils.newStringMap("name", "studentName","studentId","studentId", "studentNo", "studentNo","sex","sex", "status", |
| | | "status", "createTime", "createTime","mobilePhone","mobilePhone","studentNumber","studentNumber")), |
| | | "schoolrollCount", count)); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "给学员分配班级", notes = "") |
| | | @PutMapping(value = "/updateSchoolClass") |
| | | public String updateSchoolClass(String StudentId,String ClassId) { |
| | | return iSchoolRollService.updateSchool(StudentId, ClassId); |
| | | @GetMapping(value = "/updateSchoolClass") |
| | | public Result updateSchoolClass(String [] studentIds,String classId) { |
| | | return iSchoolRollService.updateSchool(studentIds, classId); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "审核学员并生成学号", notes = "") |
| | | @PutMapping(value = "/auditStudent") |
| | | public Boolean auditStudent(String StudentId) { |
| | | return iSchoolRollService.auditStudent(StudentId); |
| | | @GetMapping(value = "/auditStudent") |
| | | public Result auditStudent(String studentIds) { |
| | | return iSchoolRollService.loopStudentIds(studentIds.split(",")); |
| | | } |
| | | |
| | | /** |
| | |
| | | iSchoolRollService.deriveStudentMessage(); |
| | | } |
| | | |
| | | /** |
| | | * 查询班级 |
| | | * |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "查询班级", notes = "") |
| | | @GetMapping(value = "/findClass") |
| | | public Result findClass() { |
| | | List<ClsClass> aClass = iSchoolRollService.findClass(); |
| | | return new Result(true,"success",CollectionUtils.newObjectMap("schoolRollList", QBeanUtils.listBean2ListMap(aClass, |
| | | CollectionUtils.newStringMap("name","classname","classId","classId")) |
| | | )); |
| | | } |
| | | |
| | | } |