| | |
| | | import com.deepoove.poi.config.ConfigureBuilder; |
| | | |
| | | |
| | | |
| | | import com.deepoove.poi.data.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.mapper.ManageRecordAuditMapper; |
| | | |
| | | import com.ruoyi.manage.pojo.ManageRecordAudit; |
| | |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.poi.openxml4j.util.ZipSecureFile; |
| | | import org.apache.poi.ss.usermodel.BorderStyle; |
| | | import org.apache.poi.ss.usermodel.CellStyle; |
| | | import org.apache.poi.ss.usermodel.TableStyle; |
| | | import org.apache.poi.xwpf.usermodel.*; |
| | | import org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | * 文件修订申请审批记录 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author 芯导软件(江苏)有限公司 |
| | | * @author |
| | | * @since 2024-11-14 10:29:18 |
| | | */ |
| | | @Service |
| | |
| | | |
| | | |
| | | @Override |
| | | public Map<String, Object> pageManageRecordAudit(Page page, ManageRecordAudit manageRecordAudit) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("head", PrintChina.printChina(ManageRecordAudit.class)); |
| | | public IPage<ManageRecordAudit> pageManageRecordAudit(Page page, ManageRecordAudit manageRecordAudit) { |
| | | |
| | | IPage<ManageRecordAudit> manageRecordAuditIPage = manageRecordAuditMapper.pageManageRecordAudit(page, QueryWrappers.queryWrappers(manageRecordAudit)); |
| | | for (ManageRecordAudit record : manageRecordAuditIPage.getRecords()) { |
| | | String limsName = userMapper.selectUserDepartmentLimsName(record.getCreateUser()); |
| | | record.setCreateUserDepart(limsName); |
| | | } |
| | | map.put("body", manageRecordAuditIPage); |
| | | return map; |
| | | return manageRecordAuditIPage; |
| | | } |
| | | |
| | | @Override |
| | |
| | | OutputStream outputStream = new FileOutputStream(file); |
| | | IOUtils.copy(inputStream, outputStream); |
| | | url = file.getAbsolutePath(); |
| | | inputStream.close(); |
| | | outputStream.close(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new ErrorException("找不到模板文件"); |
| | | } catch (IOException e) { |