| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.management.relation.RelationService; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | |
| | | return PREFIX + "tStudentEdit_first.html"; |
| | | } |
| | | |
| | | @Autowired |
| | | private IMenuService menuService; |
| | | |
| | | @Autowired |
| | | private IRelationService relationService; |
| | | @RequestMapping("/tStudent_info/{tStudentId}") |
| | | public String tStudentInfo(@PathVariable("tStudentId") Integer tStudentId, Model model) { |
| | | System.out.println("======>t"+tStudentId); |
| | |
| | | |
| | | |
| | | System.out.println("=======controller====studentClassInfo==="+studentClassInfo); |
| | | |
| | | |
| | | User user = UserExt.getUser(); |
| | | |
| | | List<Relation> list = relationService.list(new QueryWrapper<Relation>().eq("menuid", 391).eq("roleid", user.getRoleid())); |
| | | if (!list.isEmpty()){ |
| | | model.addAttribute("back",false); |
| | | }else { |
| | | model.addAttribute("back",true); |
| | | |
| | | } |
| | | |
| | | return PREFIX + "tStudentEdit.html"; |
| | | } |
| | | |
| | |
| | | insertBackDto.setIds(ids); |
| | | System.out.println("=====insertBackDto========"+insertBackDto); |
| | | |
| | | courseStuddentClient.insertBack(insertBackDto); |
| | | Integer i = courseStuddentClient.insertBack(insertBackDto); |
| | | |
| | | if (i == 1){ |
| | | return ResultUtil.error("当前课程已在退费申请中"); |
| | | } |
| | | //取消排课 |
| | | courseStuddentClient.cancel(ids); |
| | | System.out.println("============学员查询接口========="); |
| | | // courseStuddentClient.cancel(ids); |
| | | // System.out.println("============学员查询接口========="); |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | |
| | | courseStuddentClient.zeroClass(id); |
| | | |
| | | System.out.println("============学员查询接口========="); |
| | | return new ResultUtil<>(0,0,"同意成功",null,null); |
| | | return new ResultUtil<>(0,0,"已同意",null,null); |
| | | } |
| | | |
| | | @RequestMapping("/noStatus/{id}") |
| | |
| | | // courseStuddentClient.zeroClass(id); |
| | | |
| | | System.out.println("============学员查询接口========="); |
| | | return new ResultUtil<>(0,0,"同意成功",null,null); |
| | | return new ResultUtil<>(0,0,"已拒绝",null,null); |
| | | } |
| | | |
| | | /** |