| | |
| | | import cn.hutool.http.HttpUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto; |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import com.ruoyi.common.annotation.PersonalScope; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.dto.ReportPageDto; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | |
| | | @ApiOperation(value = "查询检验报告数据") |
| | | @GetMapping("/pageInsReport") |
| | | @PreAuthorize("@ss.hasPermi('business:reportPreparation')") |
| | | @PersonalScope(permsName = "business:reportPreparation", objectName = ReportPageDto.class, paramName = "createOrderUser") |
| | | public Result pageInsReport(Page page, ReportPageDto reportPageDto){ |
| | | return Result.success(insReportService.pageInsReport(page, reportPageDto)); |
| | | } |
| | |
| | | return Result.success(insReportService.ratifyReport(id, isRatify, ratifyTell)); |
| | | } |
| | | |
| | | @Anonymous |
| | | @RequestMapping("/onlyOffice/save") |
| | | public void saveFile(@RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) { |
| | | PrintWriter writer = null; |
| | |
| | | Integer id = (Integer) param.get("id"); |
| | | return Result.success(insReportService.sendBackTask(id)); |
| | | } |
| | | |
| | | /** |
| | | * 报告导出 |
| | | * @param dto |
| | | * @param response |
| | | * @throws Exception |
| | | */ |
| | | @ApiOperation(value = "报告导出") |
| | | @GetMapping("/reportAllExport") |
| | | @PreAuthorize("@ss.hasPermi('business:reportPreparation')") |
| | | @PersonalScope(permsName = "business:reportPreparation", objectName = ReportPageDto.class, paramName = "createOrderUser") |
| | | public void reportAllExport(ReportPageDto dto, HttpServletResponse response) throws Exception { |
| | | insReportService.reportAllExport(dto,response); |
| | | } |
| | | } |