| | |
| | | package com.ruoyi.web.controller.archive; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | |
| | | import com.ruoyi.common.utils.file.FileUtils; |
| | | import com.ruoyi.domain.ArchiveRecords; |
| | | import com.ruoyi.domain.vo.AnalysisResult; |
| | | import com.ruoyi.domain.vo.ArchiveRecordModelExp; |
| | | import com.ruoyi.domain.vo.ArchiveRecordModelOther; |
| | | import com.ruoyi.domain.vo.DocumentMaterialFileSmallVo; |
| | | import com.ruoyi.framework.config.ServerConfig; |
| | | import com.ruoyi.service.IArchiveRecordsService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | { |
| | | return new AjaxResult(200, archiveRecordsService.updateArchiveById(Long.parseLong(id))+""); |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ArchiveRecordModelExp> list = Collections.singletonList(new ArchiveRecordModelExp()); |
| | | ExcelUtil<ArchiveRecordModelExp> util = new ExcelUtil<>(ArchiveRecordModelExp.class); |
| | | util.exportExcel(response,list,"档案信息导入模板"); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/modelOther") |
| | | public void getExportModelOther(HttpServletResponse response){ |
| | | List<ArchiveRecordModelOther> list = Collections.singletonList(new ArchiveRecordModelOther()); |
| | | ExcelUtil<ArchiveRecordModelOther> util = new ExcelUtil<>(ArchiveRecordModelOther.class); |
| | | util.exportExcel(response,list,"档案信息导入模板"); |
| | | } |
| | | } |