| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | @Autowired |
| | | AssessItemDao assessItemDao; |
| | | |
| | | @GetMapping("page") |
| | | @PostMapping("page") |
| | | @ApiOperation("分页") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = Constant.Q.ORDER_FIELD, value = Constant.QV.ORDER_FIELD, dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = Constant.Q.ORDER, value = Constant.QV.ORDER, dataType = Constant.QT.STRING), |
| | | }) |
| | | public Result<List<ReliabilityAssess>> page(@ApiIgnore @QueryParam QueryFilter queryFilter) { |
| | | |
| | | return Result.ok(null); |
| | | public Result<List<ReliabilityAssess>> page(@RequestBody AssessResult assessResult) { |
| | | List<ReliabilityAssess> list = reliabilityAssessService.page(assessResult); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | @PostMapping("importProductExcel") |
| | |
| | | StringBuilder str = new StringBuilder(); |
| | | ImportUtil.importResult(result, importResults, str); |
| | | ImportUtil.ImportErrResult(result, importResults, str); |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | @GetMapping("downloadXml") |
| | | public void downloadXml(HttpServletRequest request, HttpServletResponse response, Long productId, Long taskId, Long itemId,Integer xml) { |
| | | reliabilityAssessService.downloadXml(request,response,productId,taskId,itemId,xml); |
| | | } |
| | | |
| | | @PostMapping("add") |
| | |
| | | @PostMapping("assess") |
| | | @ApiOperation("评定") |
| | | @LogOperation("评定") |
| | | public Result assess(@RequestBody AssessResult assessResult){ |
| | | Result result = reliabilityAssessService.assess(assessResult); |
| | | public Result<List<ReliabilityAssess>> assess(@RequestBody AssessResult assessResult){ |
| | | List<ReliabilityAssess> list = reliabilityAssessService.assess(assessResult); |
| | | |
| | | return result; |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | @GetMapping("getAssessDataList") |