| | |
| | | |
| | | @ApiOperation(value = "查看检验报告列表") |
| | | @GetMapping("/pageInsReport") |
| | | public Result pageInsReport(Page page , ReportPageDto reportPageDto) throws Exception { |
| | | public Result pageInsReport(Page page,ReportPageDto reportPageDto) throws Exception { |
| | | return Result.success(insReportService.pageInsReport(page, reportPageDto)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "一键审批按钮") |
| | | @PostMapping("/batchApprovalReport") |
| | | @Log(title = "检验报告", businessType = BusinessType.UPDATE) |
| | | public Result batchApprovalReport(@RequestBody BatchApprovalReportDTO batchApprovalReportDTO){ |
| | | try { |
| | | insReportService.batchApprovalReport(batchApprovalReportDTO.getIds()); |
| | |
| | | |
| | | @ApiOperation(value = "查看检验报告数量信息") |
| | | @GetMapping("/getReportCountInfo") |
| | | public Result getReportCountInfo(@RequestParam Map<String, Object> params) throws Exception { |
| | | ReportPageDto reportPageDto = JackSonUtil.unmarshal(JackSonUtil.marshal(params), ReportPageDto.class); |
| | | public Result getReportCountInfo(ReportPageDto reportPageDto) throws Exception { |
| | | return Result.success(insReportService.getReportCountInfo(reportPageDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "上传按钮") |
| | | @PostMapping("/inReport") |
| | | @Log(title = "检验报告", businessType = BusinessType.IMPORT) |
| | | public Result inReport(MultipartFile file, Integer id) { |
| | | String urlString; |
| | | String pathName; |
| | |
| | | } |
| | | //下载 |
| | | @GetMapping("/downReport") |
| | | @Log(title = "检验报告", businessType = BusinessType.EXPORT) |
| | | public void downReport(@RequestParam("id") Integer id,@RequestParam("type") Integer type, HttpServletResponse response) { |
| | | insReportService.downReport(id,type, response); |
| | | } |
| | |
| | | |
| | | @ApiOperation(value = "还原按钮") |
| | | @PostMapping("/upReportUrl") |
| | | @Log(title = "检验报告", businessType = BusinessType.UPDATE) |
| | | public Result upReportUrl(Integer id,Integer type) { |
| | | insReportService.upReportUrl(id,type); |
| | | return Result.success(); |
| | | public Result upReportUrl(Integer id) { |
| | | return Result.success(insReportService.upReportUrl(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "编制按钮") |
| | | @GetMapping("/upReportFile") |
| | | @Log(title = "检验报告", businessType = BusinessType.UPDATE) |
| | | public Result upReportFile() { |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "提交按钮") |
| | | @PostMapping("/writeReport") |
| | | @Log(title = "检验报告", businessType = BusinessType.UPDATE) |
| | | public Result writeReport(Integer id) { |
| | | |
| | | return Result.success(insReportService.writeReport(id)); |
| | |
| | | |
| | | @ApiOperation(value = "审核按钮") |
| | | @PostMapping("/examineReport") |
| | | @Log(title = "检验报告", businessType = BusinessType.UPDATE) |
| | | public Result examineReport(Integer id, Integer isExamine, String examineTell) { |
| | | return Result.success(insReportService.examineReport(id, isExamine, examineTell)); |
| | | } |
| | | |
| | | @ApiOperation(value = "批准按钮") |
| | | @PostMapping("/ratifyReport") |
| | | @Log(title = "检验报告", businessType = BusinessType.UPDATE) |
| | | public Result ratifyReport(Integer id, Integer isRatify, String ratifyTell) { |
| | | return Result.success(insReportService.ratifyReport(id, isRatify, ratifyTell)); |
| | | } |
| | | |
| | | @RequestMapping("/onlyOffice/save") |
| | | @Log(title = "检验报告", businessType = BusinessType.OTHER) |
| | | public void saveFile(@RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) { |
| | | PrintWriter writer = null; |
| | | try { |
| | |
| | | |
| | | @ApiOperation(value = "批量下载按钮") |
| | | @GetMapping("/downAll") |
| | | @Log(title = "检验报告", businessType = BusinessType.EXPORT) |
| | | public Result downAll(String ids) { |
| | | return Result.success(insReportService.downAll(ids)); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量上传按钮") |
| | | @PostMapping("/upAll") |
| | | @Log(title = "检验报告", businessType = BusinessType.IMPORT) |
| | | public Result upAll(MultipartFile file) throws IOException { |
| | | return Result.success(insReportService.upAll(file)); |
| | | } |
| | | |
| | | @ApiOperation(value = "撤回按钮") |
| | | @PostMapping("/withdraw") |
| | | @Log(title = "检验报告", businessType = BusinessType.UPDATE) |
| | | public Result withdraw(@RequestBody Map<String,Object> map) { |
| | | insReportService.withdraw(map); |
| | | return Result.success(); |