| | |
| | | return AjaxResult.success(data); |
| | | } |
| | | /** |
| | | * 拿到除了其它类型材料的个数 |
| | | * 拿到对应的案卷材料个数 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:materials:list')") |
| | | @GetMapping("/getFileCount/{recordId}") |
| | |
| | | |
| | | int cnt = documentMaterialsService.getFileCount(recordId); |
| | | return AjaxResult.success(cnt); |
| | | } |
| | | |
| | | /** |
| | | * 根据页号添加中间记录的接口 |
| | | * 例如页号1,5,7,则添加页号为2,3,4(信息与1保持一致),6(信息与5保持一致) |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:materials:edit')") |
| | | @GetMapping("/addMiddleRecords/{recordId}/{maxPageNumber}") |
| | | public AjaxResult addMiddleRecords(@PathVariable("recordId") Long recordId,@PathVariable("maxPageNumber") Long maxPageNumber) |
| | | { |
| | | return documentMaterialsService.addMiddleRecordsByPageNumbers(recordId, maxPageNumber); |
| | | } |
| | | /** |
| | | * 查询【文件材料综合信息】列表 |
| | |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | //分割文件名 |
| | | String [] nams = fname.split("\\."); |
| | | System.out.println(fname); |
| | | Long nam = Long.parseLong(nams[0]); |
| | | //根据页号拿到案卷的详细信息 |
| | | System.out.println("0-------------"); |
| | | System.out.println(recordId); |
| | | System.out.println("0-------------"); |
| | | |
| | | DocumentMaterials doc = documentMaterialsService.selectByPageNumber(nam, Math.toIntExact(recordId)); |
| | | if(doc==null) |
| | | return AjaxResult.error("无对应页号,请检查清楚附件以及对应的输入!"); |
| | | else{ |
| | | if(doc.getSecurityLevel().equals("该页另存")) |
| | | if(doc.getSecurityLevel()!=null&&doc.getSecurityLevel().equals("该页另存")) |
| | | { |
| | | |
| | | //替换为了准备好的图像 |
| | |
| | | |
| | | int wdpi = info.getPhysicalWidthDpi() ; |
| | | int hdpi = info.getPhysicalHeightDpi(); |
| | | System.out.println("DPI: " + info.getPhysicalWidthDpi()); |
| | | System.out.println("DPI: " + info.getPhysicalWidthDpi()+nam+"dds"); |
| | | //计算fileNumber |
| | | Long fileNumber = documentMaterialsService.getFiNum(nam, recordId); |
| | | //计算sizeType |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | System.out.println("88888888882222222222222"); |
| | | System.out.println(e); |
| | | return AjaxResult.error(e.getMessage()); |
| | | } |