| | |
| | | */ |
| | | @RequestMapping("/changelist/{payId}") |
| | | @ResponseBody |
| | | public ResultUtil changelist(@PathVariable("payId") Integer payId, ConsumeQuery consumeQuery) { |
| | | public ResultUtil changelist(@PathVariable("payId") Long payId, ConsumeQuery consumeQuery) { |
| | | consumeQuery.setPayId(payId); |
| | | System.out.println("=======changelist==========="+consumeQuery); |
| | | List<CourseCounsum> courseCounsums = courseStuddentClient.queryCounsum(consumeQuery); |
| | |
| | | model.addAttribute("id", id); |
| | | model.addAttribute("ids", ids); |
| | | |
| | | |
| | | TAppUser tAppUser = appUserClient.queryById(tStudentDto.getAppUserId()); |
| | | model.addAttribute("userName",tAppUser.getName()); |
| | | model.addAttribute("tStudentDto",tStudentDto); |
| | |
| | | payment.setId(Long.valueOf(tCoursePackage.getId())); |
| | | |
| | | BigDecimal cashPayment = payment.getCashPayment(); |
| | | if (cashPayment==null){ |
| | | cashPayment = BigDecimal.ZERO; |
| | | } |
| | | Integer totalClassHours = payment.getTotalClassHours(); |
| | | BigDecimal result = new BigDecimal(0); |
| | | if (totalClassHours!=0) { |
| | |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | //同意退款 |
| | | |
| | | @RequestMapping("/changeStatus/{id}") |
| | | @ResponseBody |
| | | public ResultUtil changeStatus(@PathVariable Integer id) { |
| | |
| | | return new ResultUtil<>(0,0,"同意成功",null,null); |
| | | } |
| | | |
| | | @RequestMapping("/noStatus/{id}") |
| | | @ResponseBody |
| | | public ResultUtil noStatus(@PathVariable Integer id) { |
| | | // InsertBackDto insertBackDto= new InsertBackDto(); |
| | | // insertBackDto.setId(id); |
| | | //// insertBackDto.setIds(ids); |
| | | // System.out.println("=====insertBackDto========"+insertBackDto); |
| | | |
| | | courseStuddentClient.changeStatus(id); |
| | | courseStuddentClient.backStausClass(id); |
| | | // courseStuddentClient.zeroClass(id); |
| | | |
| | | System.out.println("============学员查询接口========="); |
| | | return new ResultUtil<>(0,0,"同意成功",null,null); |
| | | } |
| | | |
| | | /** |
| | | * 学员修改 |
| | |
| | | historyClient.createHistory(historyDto); |
| | | |
| | | |
| | | return ResultUtil.success(); |
| | | return new ResultUtil<>(0,0,"更改成功",null,null); |
| | | |
| | | } |
| | | |
| | |
| | | */ |
| | | @RequestMapping(value = "/getUserSlect/{id}") |
| | | @ResponseBody |
| | | public ResultUtil getUserSlect(@PathVariable("id") Integer payId) { |
| | | public ResultUtil getUserSlect(@PathVariable("id") Long payId) { |
| | | |
| | | List<SelectDto> selectDtos = courseStuddentClient.getSelect(payId); |
| | | Map<String,List<SelectDto>> map = new HashMap<>(); |
| | |
| | | */ |
| | | @RequestMapping(value = "/toClass") |
| | | @ResponseBody |
| | | public ResultUtil toClass( Integer id,Integer toStudentId) { |
| | | public ResultUtil toClass( Long id,Integer toStudentId) { |
| | | ToClassDto toClassDto = new ToClassDto(); |
| | | toClassDto.setToStudentId(toStudentId); |
| | | toClassDto.setId(id); |
| | |
| | | System.out.println("========ToHoliDto========="+resultUtil); |
| | | |
| | | |
| | | if (resultUtil==""){ |
| | | if (resultUtil==""||resultUtil==null){ |
| | | return new ResultUtil<>(0,0,"报名成功"); |
| | | }else |
| | | return new ResultUtil<>(0,0,"报名成功,以下学员剩余课时不足"+resultUtil); |
| | | }else{ |
| | | return new ResultUtil<>(0,0,"报名成功,以下学员剩余课时不足"+resultUtil);} |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | if (resultUtil==""){ |
| | | return new ResultUtil<>(0,0,"报名成功"); |
| | | }else |
| | | return new ResultUtil<>(0,0,"报名成功,以下学员剩余课时不足"+resultUtil); |
| | | }else{ |
| | | return new ResultUtil<>(0,0,"报名成功,以下学员剩余课时不足"+resultUtil);} |
| | | } |
| | | |
| | | //赠课 |
| | | |
| | | @RequestMapping(value = "/giftTo") |
| | | @ResponseBody |
| | | public ResultUtil toClagiftToss( Integer id,Integer toStudentId) { |
| | | public ResultUtil toClagiftToss( Long id,Integer toStudentId) { |
| | | ToClassDto toClassDto = new ToClassDto(); |
| | | toClassDto.setToStudentId(toStudentId); |
| | | toClassDto.setId(id); |