| | |
| | | |
| | | |
| | | import com.dsh.course.dto.*; |
| | | import com.dsh.course.entity.EvaluateStudent; |
| | | import com.dsh.course.feignClient.account.AppUserClient; |
| | | import com.dsh.course.feignClient.account.StudentClient; |
| | | import com.dsh.course.feignClient.account.model.TAppUser; |
| | |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/addcom/{id}") |
| | | @ResponseBody |
| | | public ResultUtil addcom(@PathVariable("id") Integer id,String content,String image) { |
| | | |
| | | EvaluateStudent evaluateStudent = new EvaluateStudent(); |
| | | evaluateStudent.setStudentId(id); |
| | | evaluateStudent.setContent(content); |
| | | evaluateStudent.setImgs(image); |
| | | // evaluateStudent.setInsertTime(new Date()); |
| | | |
| | | |
| | | appUserClient.save(evaluateStudent); |
| | | // evaluateStudentService.save(evaluateStudent); |
| | | |
| | | |
| | | |
| | | return new ResultUtil<>(0,0,"保存成功",null,null); |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping("/updatecom") |
| | | @ResponseBody |
| | | public ResultUtil updatecom(Integer id,String content,String images) { |
| | | |
| | | EvaluateStudent evaluateStudent = new EvaluateStudent(); |
| | | evaluateStudent.setId(id); |
| | | evaluateStudent.setContent(content); |
| | | evaluateStudent.setImgs(images); |
| | | appUserClient.save(evaluateStudent); |
| | | |
| | | // evaluateStudentService.updateById(evaluateStudent); |
| | | |
| | | |
| | | |
| | | return new ResultUtil<>(0,0,"修改成功",null,null); |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/comdel/{id}") |
| | | @ResponseBody |
| | | public ResultUtil comdel(@PathVariable("id") Integer id) { |
| | | |
| | | |
| | | appUserClient.comdel(id); |
| | | |
| | | // evaluateStudentService.removeById(id); |
| | | |
| | | |
| | | |
| | | return new ResultUtil<>(0,0,"删除成功",null,null); |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/frozen") |
| | | @ResponseBody |
| | | |
| | | public ResultUtil forzen(Integer id,Integer state){ |
| | | |
| | | TStudent student = new TStudent(); |
| | | student.setId(id); |
| | | student.setState(state); |
| | | |
| | | |
| | | studentClient.frozen(student); |
| | | |
| | | |
| | | return ResultUtil.success(); |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取列表 |
| | | */ |