| | |
| | | import com.dsh.account.feignclient.course.CoursePaymentClient; |
| | | import com.dsh.account.feignclient.course.model.TCoursePackagePayment; |
| | | import com.dsh.account.model.QueryDataFee; |
| | | import com.dsh.account.model.Student; |
| | | import com.dsh.account.model.StudentVo; |
| | | import com.dsh.account.service.*; |
| | | import com.dsh.account.util.ResultUtil; |
| | |
| | | student.setInsertTime(new Date()); |
| | | student.setIsDefault(1); |
| | | return studentService.save(student); |
| | | } |
| | | /** |
| | | * 获取有学员的用户ids |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/student/getHasStudentUser") |
| | | public List<Integer> getHasStudentUser(){ |
| | | return studentService.list(new QueryWrapper<TStudent>()).stream().map(TStudent::getAppUserId).distinct().collect(Collectors.toList()); |
| | | } |
| | | /** |
| | | * 获取用户学员列表 |
| | |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/appUser/updateTStudent") |
| | | public void updateTStudent(@RequestBody TStudent student){ |
| | | try { |
| | | studentService.updateById(student); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据id获取数据 |
| | | * @param id |