| | |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:records:edit')") |
| | | @Log(title = "修改状态", businessType = BusinessType.IMPORT) |
| | | @GetMapping(value = "/updateStatusById/{status}/{id}") |
| | | public AjaxResult updateStatusById(@PathVariable("status") String status, @PathVariable("id") String id) { |
| | | return new AjaxResult(200, archiveRecordsService.updateArchiveById(status, Long.parseLong(id)) + ""); |
| | | @GetMapping(value = "/updateStatusById/{status}/{id}/{operator}") |
| | | public AjaxResult updateStatusById(@PathVariable("status") String status, @PathVariable("id") String id, @PathVariable("operator") String operator) { |
| | | return new AjaxResult(200, archiveRecordsService.updateArchiveById(status, Long.parseLong(id), operator)+""); |
| | | } |
| | | |
| | | |
| | |
| | | public void getExportModel(HttpServletResponse response) { |
| | | List<ArchiveRecordModelExp> list = Collections.singletonList(new ArchiveRecordModelExp()); |
| | | ExcelUtil<ArchiveRecordModelExp> util = new ExcelUtil<>(ArchiveRecordModelExp.class); |
| | | util.exportExcel(response, list, "档案信息导入模板"); |
| | | util.exportExcel(response, list, "档案信息"); |
| | | } |
| | | |
| | | |
| | |
| | | public void getExportModelOther(HttpServletResponse response) { |
| | | List<ArchiveRecordModelOther> list = Collections.singletonList(new ArchiveRecordModelOther()); |
| | | ExcelUtil<ArchiveRecordModelOther> util = new ExcelUtil<>(ArchiveRecordModelOther.class); |
| | | util.exportExcel(response, list, "档案信息导入模板"); |
| | | util.exportExcel(response, list, "档案信息"); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:records:list')") |