| | |
| | | |
| | | /** |
| | | * 添加学员 |
| | | * |
| | | * @return |
| | | */ |
| | | @RequestMapping("/base/student/addStudent") |
| | |
| | | student.setIsDefault(1); |
| | | return studentService.save(student); |
| | | } |
| | | |
| | | /** |
| | | * 获取有学员的用户ids |
| | | * |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | |
| | | public List<Integer> getHasStudentUser(){ |
| | | return studentService.list(new QueryWrapper<TStudent>()).stream().map(TStudent::getAppUserId).distinct().collect(Collectors.toList()); |
| | | } |
| | | |
| | | /** |
| | | * 获取用户学员列表 |
| | | * |
| | | * @param appUserId |
| | | * @return |
| | | */ |
| | |
| | | studentService.updateById(student); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | |
| | | |
| | | /** |
| | | * 根据电话号码学员信息 |
| | | * |
| | | * @param phone |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 根据id获取数据 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据名称模糊搜索学员 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | |
| | | public List<TStudent> queryStudentListByName(@RequestBody String name){ |
| | | return studentService.list(new QueryWrapper<TStudent>().eq("state", 1).like("name", name)); |
| | | } |
| | | |
| | | /** |
| | | * 根据名称模糊搜索学员 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | |
| | | |
| | | @Resource |
| | | private CoursePaymentClient paymentClient; |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/student/giftSelect") |
| | | public List<SelectDto> giftSelect(@RequestBody GiftSearchDto giftSearchDto){ |
| | |
| | | List<TAppUser> list = appUserService.list(new LambdaQueryWrapper<TAppUser>().eq(TAppUser::getInsertType, 1)); |
| | | return list.stream().map(TAppUser::getId).collect(Collectors.toList()); |
| | | } |
| | | |
| | | @PostMapping("/student/getUserYYs") |
| | | @ResponseBody |
| | | public List<Integer> getUserYYs(@RequestBody Integer id){ |
| | | List<TAppUser> list = appUserService.list(new LambdaQueryWrapper<TAppUser>().eq(TAppUser::getInsertType, 2).eq(TAppUser::getAddUserId,id)); |
| | | return list.stream().map(TAppUser::getId).collect(Collectors.toList()); |
| | | } |
| | | |
| | | @PostMapping("/student/getUserStore") |
| | | @ResponseBody |
| | | public List<Integer> getUserStore(@RequestBody Integer id){ |
| | | List<TAppUser> list = appUserService.list(new LambdaQueryWrapper<TAppUser>().eq(TAppUser::getInsertType, 3).eq(TAppUser::getAddUserId,id)); |
| | | return list.stream().map(TAppUser::getId).collect(Collectors.toList()); |
| | | } |
| | | |
| | | @PostMapping("/student/getUserYys") |
| | | @ResponseBody |
| | | public List<Integer> getUserYys(@RequestBody Integer id){ |
| | | List<TAppUser> list = appUserService.list(new LambdaQueryWrapper<TAppUser>().eq(TAppUser::getInsertType, 2).eq(TAppUser::getAddUserId,id)); |
| | | return list.stream().map(TAppUser::getId).collect(Collectors.toList()); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/student/getUserPtVip") |
| | | public List<Integer> getUserPtVip(){ |
| | | List<TAppUser> list = appUserService.list(new LambdaQueryWrapper<TAppUser>().eq(TAppUser::getInsertType, 1).eq(TAppUser::getIsVip,1)); |
| | | return list.stream().map(TAppUser::getId).collect(Collectors.toList()); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | |
| | | return map; |
| | | |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/student/stuPt") |
| | | public HashMap<String, Object> stuPt(){ |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/student/stuYys") |
| | | public HashMap<String, Object> stuYys(@RequestBody Integer id){ |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private EvaluateStudentService evaluateStudentService; |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/student/save") |
| | | public void save(@RequestBody EvaluateStudent evaluateStudent) { |
| | |
| | | evaluateStudentService.saveOrUpdate(evaluateStudent); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | |
| | | return map; |
| | | |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/student/userAndVipStore") |
| | | public HashMap<String, Object> userAndVipStore(@RequestBody Integer id){ |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @PostMapping("/student/queryFee") |
| | | public HashMap<String, Object> queryFee(@RequestBody QueryDataFee queryDataFee){ |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | |
| | | map.put("fee2",sum1); |
| | | |
| | | |
| | | |
| | | |
| | | return map; |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/student/queryUserAge") |
| | |
| | | return map; |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | @PostMapping("/student/queryUserAge1") |
| | | public HashMap<String, Object> queryUserAge1(){ |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | |
| | | return map; |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | @PostMapping("/student/queryUserAgeYys") |
| | | public HashMap<String, Object> queryUserAgeYys(@RequestBody Integer id){ |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | |
| | | return map; |
| | | |
| | | } |
| | | |
| | | @PostMapping("/student/queryUserAgeStore") |
| | | public HashMap<String, Object> queryUserAgeStore(Integer id){ |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | |
| | | return map; |
| | | |
| | | } |
| | | |
| | | @PostMapping("/student/queryUserAgeYys1") |
| | | public HashMap<String, Object> queryUserAgeYys1(@RequestBody Integer id){ |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | @PostMapping("/student/queryUserAgeStore1") |
| | | public HashMap<String, Object> queryUserAgeStore1(@RequestBody Integer id){ |
| | | HashMap<String, Object> map = new HashMap<>(); |