| | |
| | | import org.apache.logging.log4j.LogManager; |
| | | import org.apache.logging.log4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.qxueyou.scc.admin.classes.model.ClsClass; |
| | | import com.qxueyou.scc.admin.classes.model.ClsSubjectChapter; |
| | |
| | | */ |
| | | @Api(tags="班级管理接口") |
| | | @RestController |
| | | @CrossOrigin |
| | | @RequestMapping("/admin/class") |
| | | public class ClassController { |
| | | |
| | |
| | | int count = classService.getClassLstCount(keyword, teacherId, pageType); |
| | | // 转成前端所需字段和结构 |
| | | List<Map<String, Object>> lstResult = QBeanUtils.listBean2ListMap(clsLst, |
| | | CollectionUtils.newStringMap("name", "className", "classId", "classId", "classNumber", "classNumber","classTypes","classTypes", |
| | | CollectionUtils.newStringMap("chargeClassName","chargeClassId","name", "className", "classId", "classId", "classNumber", "classNumber","classTypes","classTypes", |
| | | "studentCount", "studentCount", "createTime", "createTime", "startTime", "startTime", "endTime", |
| | | "endTime", "subjects", "sbjLst")); |
| | | |