| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | import com.yuanchu.limslaboratory.pojo.Dto.CnasSatisfactionSurveyDto; |
| | | import com.yuanchu.limslaboratory.pojo.CnasSatisfactionSurvey; |
| | | import com.yuanchu.limslaboratory.pojo.Dto.CnasSatisfactionSurveyPageDto; |
| | | import com.yuanchu.limslaboratory.pojo.vo.CnasSatisfactionSurveyVo; |
| | | import com.yuanchu.limslaboratory.service.CnasSatisfactionSurveyService; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author 张宾 |
| | |
| | | */ |
| | | @ApiOperation(value = "获取满意度调查") |
| | | @GetMapping("/getCnasSatisfactionSurvey") |
| | | public Result<CnasSatisfactionSurveyVo>getCnasSatisfactionSurvey(CnasSatisfactionSurveyDto cnasSatisfactionSurveyDto){ |
| | | return Result.success(service.getCnasSatisfactionSurvey(cnasSatisfactionSurveyDto)); |
| | | public Result<CnasSatisfactionSurveyVo>getCnasSatisfactionSurvey(CnasSatisfactionSurveyPageDto cnasSatisfactionSurveyPageDto){ |
| | | return Result.success(service.getCnasSatisfactionSurvey(cnasSatisfactionSurveyPageDto)); |
| | | } |
| | | |
| | | @GetMapping("/getFillNameAndId") |
| | | @ApiOperation(value = "获取当前录取人") |
| | | public Result<Map>getFillNameAndId(@RequestHeader("X-Token")String token){ |
| | | return Result.success(service.getFillNameAndTd(token)); |
| | | } |
| | | |
| | | /** |
| | | * 附件上传 |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "附件上传") |
| | | @PostMapping(value = "/uploadFile",consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = {MediaType.APPLICATION_JSON_VALUE}) |
| | | public Result<Map>wordParse(MultipartFile file){ |
| | | return Result.success(service.wordParse(file)); |
| | | } |
| | | |
| | | @ApiOperation(value = "满意度调查新增") |
| | | @PostMapping("/addSurvey") |
| | | public Result<Boolean>addSurvey(@RequestBody CnasSatisfactionSurvey cnasSatisfactionSurvey){ |
| | | System.out.println(cnasSatisfactionSurvey+"============="); |
| | | return Result.success(service.addSurvey(cnasSatisfactionSurvey)); |
| | | } |
| | | |
| | | } |