| | |
| | | import com.dsh.account.model.QueryDataFee; |
| | | import com.dsh.account.model.Student; |
| | | import com.dsh.account.model.StudentVo; |
| | | import com.dsh.account.model.updateTimeDto; |
| | | import com.dsh.account.service.*; |
| | | import com.dsh.account.util.ResultUtil; |
| | | import com.dsh.account.util.TokenUtil; |
| | |
| | | studentService.updateById(student); |
| | | |
| | | } |
| | | @ResponseBody |
| | | @PostMapping("/student/getById") |
| | | public Date getById(@RequestBody Integer tStudentId) { |
| | | return studentService.getById(tStudentId).getValidity(); |
| | | |
| | | } |
| | | @ResponseBody |
| | | @PostMapping("/student/update1") |
| | | public void update(@RequestBody updateTimeDto updateTimeDto) { |
| | | |
| | | TStudent student = new TStudent(); |
| | | student.setId(updateTimeDto.getTStudentId()); |
| | | student.setValidity(updateTimeDto.getDate()); |
| | | studentService.updateById(student); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |