| | |
| | | package com.dsh.account.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.account.dto.CreateHistoryDto; |
| | | import com.dsh.account.dto.GetHistoryDto; |
| | | import com.dsh.account.dto.StudentSearch; |
| | | import com.dsh.account.dto.TStudentDto; |
| | | import com.dsh.account.entity.TStudent; |
| | |
| | | System.out.println("===?==》"+id); |
| | | return studentService.listOne(id); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/student/update") |
| | | public void update(@RequestBody TStudent tStudent){ |
| | | System.out.println("======tStudent======"+tStudent); |
| | | studentService.updateById(tStudent); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/student/createHistory") |
| | | public void createHistory(@RequestBody CreateHistoryDto createHistoryDto){ |
| | | createHistoryDto.setDate(new Date()); |
| | | studentService.createHistory(createHistoryDto); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/student/getHisory") |
| | | public List<GetHistoryDto> getHisory(){ |
| | | |
| | | List<GetHistoryDto> getHistoryDtos = studentService.getHistory(); |
| | | |
| | | return getHistoryDtos; |
| | | } |
| | | } |