| | |
| | | import java.nio.file.Path; |
| | | import java.nio.file.Paths; |
| | | import java.util.Collections; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import javax.imageio.ImageIO; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | { |
| | | |
| | | boolean res = documentMaterialsService.isPageNumberIslegal(recordId); |
| | | return AjaxResult.success(res); |
| | | int cnt = documentMaterialsService.getFileCount(recordId); |
| | | HashMap<String, Object> data = new HashMap<>(); |
| | | data.put("res",res); |
| | | data.put("total",cnt); |
| | | return AjaxResult.success(data); |
| | | } |
| | | /** |
| | | * 拿到除了其它类型材料的个数 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:materials:list')") |
| | | @GetMapping("/getFileCount/{recordId}") |
| | | public AjaxResult getFileCount(@PathVariable("recordId") Integer recordId) |
| | | { |
| | | |
| | | int cnt = documentMaterialsService.getFileCount(recordId); |
| | | return AjaxResult.success(cnt); |
| | | } |
| | | /** |
| | | * 查询【文件材料综合信息】列表 |