| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.account.dto.*; |
| | | import com.dsh.account.entity.Coach; |
| | | import com.dsh.account.entity.GiftSearchDto; |
| | | import com.dsh.account.entity.TStudent; |
| | | import com.dsh.account.feignclient.course.CoursePaymentClient; |
| | |
| | | @Autowired |
| | | private TokenUtil tokenUtil; |
| | | |
| | | |
| | | /** |
| | | * 添加学员 |
| | | * @return |
| | | */ |
| | | @RequestMapping("/base/student/addStudent") |
| | | public Object addStudent(@RequestBody TStudent student){ |
| | | student.setInsertTime(new Date()); |
| | | student.setIsDefault(1); |
| | | return studentService.save(student); |
| | | } |
| | | /** |
| | | * 获取用户学员列表 |
| | | * @param appUserId |
| | |
| | | public List<TStudent> queryStudentListByName(@RequestBody String name){ |
| | | return studentService.list(new QueryWrapper<TStudent>().eq("state", 1).like("name", name)); |
| | | } |
| | | /** |
| | | * 根据名称模糊搜索学员 |
| | | * @param name |
| | | * @return |
| | | */ |
| | | @PostMapping("/student/queryTStudentListByName") |
| | | public List<TStudent> queryTStudentListByName(@RequestBody String name){ |
| | | return studentService.list(new QueryWrapper<TStudent>().eq("state", 1).like("name", name)); |
| | | } |
| | | |
| | | /** |
| | | * web端查找学员 |