¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | 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.http.MediaType; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author å¼ å®¾ |
| | | * @Date 2023/8/10 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/cnasSatisfactionSurvey") |
| | | @Api(tags = "CNAS-->满æåº¦è°æ¥") |
| | | public class CnasSatisfactionSurveyController { |
| | | |
| | | @Resource |
| | | private CnasSatisfactionSurveyService service; |
| | | |
| | | /** |
| | | * è·å满æåº¦è°æ¥ä¿¡æ¯ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "è·å满æåº¦è°æ¥") |
| | | @GetMapping("/getCnasSatisfactionSurvey") |
| | | 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)); |
| | | } |
| | | |
| | | } |