| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | import com.yuanchu.limslaboratory.annotation.AuthHandler; |
| | | import com.yuanchu.limslaboratory.pojo.CnasSatisfactionSurvey; |
| | | import com.yuanchu.limslaboratory.pojo.Dto.CnasSatisfactionSurveyPageDto; |
| | | import com.yuanchu.limslaboratory.pojo.vo.CnasSatisfactionSurveyVo; |
| | |
| | | */ |
| | | @ApiOperation(value = "获取满意度调查") |
| | | @GetMapping("/getCnasSatisfactionSurvey") |
| | | @AuthHandler |
| | | public Result<CnasSatisfactionSurveyVo>getCnasSatisfactionSurvey(CnasSatisfactionSurveyPageDto cnasSatisfactionSurveyPageDto){ |
| | | return Result.success(service.getCnasSatisfactionSurvey(cnasSatisfactionSurveyPageDto)); |
| | | } |
| | | |
| | | @GetMapping("/getFillNameAndId") |
| | | @ApiOperation(value = "获取当前录取人") |
| | | @AuthHandler |
| | | public Result<Map>getFillNameAndId(@RequestHeader("X-Token")String token){ |
| | | return Result.success(service.getFillNameAndTd(token)); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation(value = "附件上传") |
| | | @PostMapping(value = "/uploadFile",consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = {MediaType.APPLICATION_JSON_VALUE}) |
| | | @AuthHandler |
| | | public Result<Map>wordParse(MultipartFile file){ |
| | | return Result.success(service.wordParse(file)); |
| | | } |
| | | |
| | | @ApiOperation(value = "满意度调查新增") |
| | | @PostMapping("/addSurvey") |
| | | @AuthHandler |
| | | public Result<Boolean>addSurvey(@RequestBody CnasSatisfactionSurvey cnasSatisfactionSurvey){ |
| | | System.out.println(cnasSatisfactionSurvey+"============="); |
| | | return Result.success(service.addSurvey(cnasSatisfactionSurvey)); |
| | | } |
| | | |