fei
6 天以前 1868fe69485d0d904bba24f2672a52a626ccf9f2
修改了对应代码
15个文件已修改
468 ■■■■■ 已修改文件
archiveManager/src/main/java/com/ruoyi/domain/ArchiveCategory.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/ArchivePlaceName.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/ArchiveProjectName.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/ArchiveRecords.java 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/Archiverecordstouser.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/vo/AnalysisResult.java 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/vo/ArchiveRecordModelExp.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/vo/ArchiveRecordModelOther.java 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/vo/ArchiveRecordSmall.java 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/vo/DocumentMaterialFileSmallVo.java 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/vo/DocumentMaterialsFileList.java 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/vo/RecordToUserCount.java 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/service/impl/DocumentMaterialsServiceImpl.java 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/archiveAllExportController.java 145 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/ArchiveCategory.java
@@ -8,6 +8,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.poi.ss.usermodel.IndexedColors;
import java.util.Date;
@@ -27,11 +28,11 @@
    private Long id;
    /** $column.columnComment */
    @Excel(name = "编号")
    @Excel(name = "编号", headerColor = IndexedColors.BLACK)
    private String numb;
    /** $column.columnComment */
    @Excel(name = "名称")
    @Excel(name = "名称", headerColor = IndexedColors.BLACK)
    private String nname;
archiveManager/src/main/java/com/ruoyi/domain/ArchivePlaceName.java
@@ -8,6 +8,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.poi.ss.usermodel.IndexedColors;
import java.util.Date;
@@ -28,7 +29,7 @@
    private Long id;
    /** 对应的区号 */
    @Excel(name = "对应的区号")
    @Excel(name = "对应的区号", headerColor = IndexedColors.BLACK)
    private String nnumber;
    @Override
@@ -43,7 +44,7 @@
    private Date createTime;
    /** 对应的区名称 */
    @Excel(name = "对应的区名称")
    @Excel(name = "对应的区名称", headerColor = IndexedColors.BLACK)
    private String name;
    public void setId(Long id)
archiveManager/src/main/java/com/ruoyi/domain/ArchiveProjectName.java
@@ -6,6 +6,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.poi.ss.usermodel.IndexedColors;
import java.util.Date;
@@ -22,14 +23,14 @@
    @TableId(type = IdType.AUTO)
    private Long id;
    @Excel(name = "项目名称")
    @Excel(name = "项目名称", headerColor = IndexedColors.BLACK)
    private String name;
    private Date createTime;
    @Excel(name = "公司名称")
    @Excel(name = "公司名称", headerColor = IndexedColors.BLACK)
    private String companyName;
    @Excel(name = "项目负责人")
    @Excel(name = "项目负责人", headerColor = IndexedColors.BLACK)
    private String createPerson;
archiveManager/src/main/java/com/ruoyi/domain/ArchiveRecords.java
@@ -10,6 +10,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.poi.ss.usermodel.IndexedColors;
/**
 * 档案记录对象 archive_records
@@ -27,11 +28,11 @@
    private Long id;
    /** 档案号 */
    @Excel(name = "档案号")
    @Excel(name = "档案号", headerColor = IndexedColors.BLACK)
    private String recordId;
    /** 发问号 */
    @Excel(name = "发文号")
    @Excel(name = "发文号", headerColor = IndexedColors.BLACK)
    private String inquiryNumber;
    public String getEveryProjectName() {
@@ -42,32 +43,32 @@
        this.everyProjectName = everyProjectName;
    }
    @Excel(name = "项目名称")
    @Excel(name = "项目名称", headerColor = IndexedColors.BLACK)
    private String everyProjectName;
    /** 案卷题名 */
    @Excel(name = "案卷题名")
    @Excel(name = "案卷题名", headerColor = IndexedColors.BLACK)
    private String caseTitle;
    /** 公开属性 */
    @Excel(name = "公开属性")
    @Excel(name = "公开属性", headerColor = IndexedColors.BLACK)
    private String publicAttribute;
    /** 编制单位 */
    @Excel(name = "编制单位")
    @Excel(name = "编制单位", headerColor = IndexedColors.BLACK)
    private String preparationUnit;
    /** 编制日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "编制日期", width = 30, dateFormat = "yyyy-MM-dd")
    @Excel(name = "编制日期", width = 30, dateFormat = "yyyy-MM-dd", headerColor = IndexedColors.BLACK)
    private Date preparationDate;
    /** 保管期限 */
    @Excel(name = "保管期限")
    @Excel(name = "保管期限", headerColor = IndexedColors.BLACK)
    private String retentionPeriod;
    /** 密级 */
    @Excel(name = "密级")
    @Excel(name = "密级", headerColor = IndexedColors.BLACK)
    private String securityClassification;
@@ -75,43 +76,43 @@
    private String recordStatus;
    /** 案卷页数 */
    @Excel(name = "案卷页数")
    @Excel(name = "案卷页数", headerColor = IndexedColors.BLACK)
    private Long pageCount;
    /** 立案号 */
    @Excel(name = "立案号")
    @Excel(name = "立案号", headerColor = IndexedColors.BLACK)
    private String filingNumber;
    /** 建设单位 */
    @Excel(name = "建设单位")
    @Excel(name = "建设单位", headerColor = IndexedColors.BLACK)
    private String constructionUnit;
    /** 建设地址 */
    @Excel(name = "建设地址")
    @Excel(name = "建设地址", headerColor = IndexedColors.BLACK)
    private String constructionAddress;
    /** 建设项目名称 */
    @Excel(name = "建设项目名称")
    @Excel(name = "建设项目名称", headerColor = IndexedColors.BLACK)
    private String projectName;
    /** 项目编号 */
    @Excel(name = "项目编号")
    @Excel(name = "项目编号", headerColor = IndexedColors.BLACK)
    private String projectNumber;
    /** 扫描加工公司 */
    @Excel(name = "扫描加工公司")
    @Excel(name = "扫描加工公司", headerColor = IndexedColors.BLACK)
    private String scanningCompany;
    /** 档案管(室)号 */
    @Excel(name = "档案管(室)号")
    @Excel(name = "档案管(室)号", headerColor = IndexedColors.BLACK)
    private String archiveRoomNumber;
    /** 缩微号 */
    @Excel(name = "缩微号")
    @Excel(name = "缩微号", headerColor = IndexedColors.BLACK)
    private String microfilmNumber;
    /** 备注 */
    @Excel(name = "备注")
    @Excel(name = "备注", headerColor = IndexedColors.BLACK)
    private String remarks;
    @TableField(exist = false)
archiveManager/src/main/java/com/ruoyi/domain/Archiverecordstouser.java
@@ -8,6 +8,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.poi.ss.usermodel.IndexedColors;
/**
 * 【档案分配】对象 archiverecordstouser
@@ -25,11 +26,11 @@
    /** 档案目录id
 */
    @Excel(name = "档案目录id ")
    @Excel(name = "档案目录id ", headerColor = IndexedColors.BLACK)
    private Long archiveRecordsId;
    /** 用户id */
    @Excel(name = "用户id")
    @Excel(name = "用户id", headerColor = IndexedColors.BLACK)
    private Long userId;
    public SysUser getSysUser() {
archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java
@@ -12,6 +12,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.poi.ss.usermodel.IndexedColors;
/**
 * 【文件材料综合信息】对象 document_materials
@@ -44,36 +45,36 @@
    }
    /** $column.columnComment */
    @Excel(name = "编任者")
    @Excel(name = "编任者", headerColor = IndexedColors.BLACK)
    private String creator;
    /** $column.columnComment */
    @Excel(name = "文件题名")
    @Excel(name = "文件题名", headerColor = IndexedColors.BLACK)
    private String title;
    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd", headerColor = IndexedColors.BLACK)
    private Date date;
    /** $column.columnComment */
    @Excel(name = "页号", handler = NumberFormatHandler.class)
    @Excel(name = "页号", handler = NumberFormatHandler.class, headerColor = IndexedColors.BLACK)
    private Long pageNumber;
    /** $column.columnComment */
    @Excel(name = "页次")
    @Excel(name = "页次", headerColor = IndexedColors.BLACK)
    private Long pageOrder;
    /** $column.columnComment */
    @Excel(name = "所处阶段")
    @Excel(name = "所处阶段", headerColor = IndexedColors.BLACK)
    private String stage;
    /** $column.columnComment */
    @Excel(name = "公开属性")
    @Excel(name = "公开属性", headerColor = IndexedColors.BLACK)
    private String publicity;
    /** $column.columnComment */
    @Excel(name = "是否为附件附图")
    @Excel(name = "是否为附件附图", headerColor = IndexedColors.BLACK)
    private String isAttachment;
    /** $column.columnComment */
@@ -81,55 +82,55 @@
    private String isDiagram;
    /** $column.columnComment */
    @Excel(name = "保管期限")
    @Excel(name = "保管期限", headerColor = IndexedColors.BLACK)
    private String retentionPeriod;
    /** $column.columnComment */
    @Excel(name = "密级")
    @Excel(name = "密级", headerColor = IndexedColors.BLACK)
    private String securityLevel;
    /** $column.columnComment */
    @Excel(name = "是否涉密及敏感信息")
    @Excel(name = "是否涉密及敏感信息", headerColor = IndexedColors.BLACK)
    private String isSensitive;
    /** $column.columnComment */
    @Excel(name = "是否注销")
    @Excel(name = "是否注销", headerColor = IndexedColors.BLACK)
    private String isCanceled;
    /** $column.columnComment */
    @Excel(name = "格式")
    @Excel(name = "格式", headerColor = IndexedColors.BLACK)
    private String format;
    /** $column.columnComment */
    @Excel(name = "幅面")
    @Excel(name = "幅面", headerColor = IndexedColors.BLACK)
    private String sizeType;
    /** $column.columnComment */
    @Excel(name = "水平分辨率")
    @Excel(name = "水平分辨率", headerColor = IndexedColors.BLACK)
    private Long horizontalResolution;
    /** $column.columnComment */
    @Excel(name = "垂直分辨率")
    @Excel(name = "垂直分辨率", headerColor = IndexedColors.BLACK)
    private Long verticalResolution;
    /** $column.columnComment */
    @Excel(name = "宽度")
    @Excel(name = "宽度", headerColor = IndexedColors.BLACK)
    private Long width;
    /** $column.columnComment */
    @Excel(name = "高度")
    @Excel(name = "高度", headerColor = IndexedColors.BLACK)
    private Long height;
    /** $column.columnComment */
    @Excel(name = "大小")
    @Excel(name = "大小", headerColor = IndexedColors.BLACK)
    private Double fileSize;
    /** $column.columnComment */
    @Excel(name = "附件及历史发文号")
    @Excel(name = "附件及历史发文号", headerColor = IndexedColors.BLACK)
    private String attachmentHistoryNumbers;
    /** $column.columnComment */
    @Excel(name = "备注")
    @Excel(name = "备注", headerColor = IndexedColors.BLACK)
    private String remarks;
    /** $column.columnComment */
archiveManager/src/main/java/com/ruoyi/domain/vo/AnalysisResult.java
@@ -2,24 +2,25 @@
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.poi.ss.usermodel.IndexedColors;
@Data
public class AnalysisResult {
    @Excel(name = "项目名称")
    @Excel(name = "项目名称", headerColor = IndexedColors.BLACK)
    private String everyProjectName;
    @Excel(name = "项目内案卷总数")
    @Excel(name = "项目内案卷总数", headerColor = IndexedColors.BLACK)
    private Long cnt ;
    @Excel(name = "未完成案卷数")
    @Excel(name = "未完成案卷数", headerColor = IndexedColors.BLACK)
    private Long unfinished;
    @Excel(name = "未上传附件")
    @Excel(name = "未上传附件", headerColor = IndexedColors.BLACK)
    private Long unwf;
    @Excel(name = "待修改")
    @Excel(name = "待修改", headerColor = IndexedColors.BLACK)
    private Long dxg;
    @Excel(name = "完成案卷数")
    @Excel(name = "完成案卷数", headerColor = IndexedColors.BLACK)
    private Long finished;
}
archiveManager/src/main/java/com/ruoyi/domain/vo/ArchiveRecordModelExp.java
@@ -2,19 +2,20 @@
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.poi.ss.usermodel.IndexedColors;
@Data
public class ArchiveRecordModelExp {
    /** 档案号 */
    @Excel(name = "档案号")
    @Excel(name = "档案号", headerColor = IndexedColors.BLACK)
    private String recordId;
    /** 发问号 */
    @Excel(name = "发文号")
    @Excel(name = "发文号", headerColor = IndexedColors.BLACK)
    private String inquiryNumber;
    @Excel(name = "项目名称")
    @Excel(name = "项目名称", headerColor = IndexedColors.BLACK)
    private String everyProjectName;
}
archiveManager/src/main/java/com/ruoyi/domain/vo/ArchiveRecordModelOther.java
@@ -5,6 +5,7 @@
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.poi.ss.usermodel.IndexedColors;
import java.util.Date;
@Data
@@ -13,84 +14,84 @@
    /** 档案号 */
    @Excel(name = "档案号")
    @Excel(name = "档案号", headerColor = IndexedColors.BLACK)
    private String recordId;
    /** 案卷题名 */
    @Excel(name = "案卷题名")
    @Excel(name = "案卷题名", headerColor = IndexedColors.BLACK)
    private String caseTitle;
    /** 公开属性 */
    @Excel(name = "公开属性")
    @Excel(name = "公开属性", headerColor = IndexedColors.BLACK)
    private String publicAttribute;
    /** 编制单位 */
    @Excel(name = "编制单位")
    @Excel(name = "编制单位", headerColor = IndexedColors.BLACK)
    private String preparationUnit;
    /** 编制日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "编制日期", width = 30, dateFormat = "yyyy-MM-dd")
    @Excel(name = "编制日期", width = 30, dateFormat = "yyyy-MM-dd", headerColor = IndexedColors.BLACK)
    private Date preparationDate;
    /** 保管期限 */
    @Excel(name = "保管期限")
    @Excel(name = "保管期限", headerColor = IndexedColors.BLACK)
    private String retentionPeriod;
    /** 密级 */
    @Excel(name = "密级", readConverterExp = "该页另存=普通")
    @Excel(name = "密级", readConverterExp = "该页另存=普通", headerColor = IndexedColors.BLACK)
    private String securityClassification;
    @Excel(name = "案卷状态")
    @Excel(name = "案卷状态", headerColor = IndexedColors.BLACK)
    private String recordStatus;
    /** 案卷页数 */
    @Excel(name = "案卷页数")
    @Excel(name = "案卷页数", headerColor = IndexedColors.BLACK)
    private Long pageCount;
    /** 立案号 */
    @Excel(name = "立案号")
    @Excel(name = "立案号", headerColor = IndexedColors.BLACK)
    private String filingNumber;
    /** 建设单位 */
    @Excel(name = "建设单位")
    @Excel(name = "建设单位", headerColor = IndexedColors.BLACK)
    private String constructionUnit;
    /** 建设地址 */
    @Excel(name = "建设地址")
    @Excel(name = "建设地址", headerColor = IndexedColors.BLACK)
    private String constructionAddress;
    /** 建设项目名称 */
    @Excel(name = "建设项目名称")
    @Excel(name = "建设项目名称", headerColor = IndexedColors.BLACK)
    private String projectName;
    /** 项目编号 */
    @Excel(name = "项目编号")
    @Excel(name = "项目编号", headerColor = IndexedColors.BLACK)
    private String projectNumber;
    /** 扫描加工公司 */
    @Excel(name = "扫描加工公司")
    @Excel(name = "扫描加工公司", headerColor = IndexedColors.BLACK)
    private String scanningCompany;
    /** 档案管(室)号 */
    @Excel(name = "档案管(室)号")
    @Excel(name = "档案管(室)号", headerColor = IndexedColors.BLACK)
    private String archiveRoomNumber;
    /** 缩微号 */
    @Excel(name = "缩微号")
    @Excel(name = "缩微号", headerColor = IndexedColors.BLACK)
    private String microfilmNumber;
    /** 备注 */
    @Excel(name = "备注")
    @Excel(name = "备注", headerColor = IndexedColors.BLACK)
    private String remarks;
    /** 历史相关发文号 */
    @Excel(name = "历史相关发文号")
    @Excel(name = "历史相关发文号", headerColor = IndexedColors.BLACK)
    private String historicalReferenceNumber;
}
archiveManager/src/main/java/com/ruoyi/domain/vo/ArchiveRecordSmall.java
@@ -2,37 +2,38 @@
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.poi.ss.usermodel.IndexedColors;
@Data
public class ArchiveRecordSmall {
    /** 档案号 */
    @Excel(name = "序号")
    @Excel(name = "序号", headerColor = IndexedColors.BLACK)
    private Long num;
    @Excel(name = "立案号")
    @Excel(name = "立案号", headerColor = IndexedColors.BLACK)
    private String filingNumber;
    /** 档案管(室)号 */
    @Excel(name = "档案发文号_档号")
    @Excel(name = "档案发文号_档号", headerColor = IndexedColors.BLACK)
    private String inqrid;
    /** 案卷题名 */
    @Excel(name = "案卷题名")
    @Excel(name = "案卷题名", headerColor = IndexedColors.BLACK)
    private String caseTitle;
    @Excel(name = "公开属性")
    @Excel(name = "公开属性", headerColor = IndexedColors.BLACK)
    private String publicAttribute;
    /** 缩微号 */
    @Excel(name = "电子文件个数")
    @Excel(name = "电子文件个数", headerColor = IndexedColors.BLACK)
    private Long cnt;
    @Excel(name = "备注")
    @Excel(name = "备注", headerColor = IndexedColors.BLACK)
    private String remarks;
archiveManager/src/main/java/com/ruoyi/domain/vo/DocumentMaterialFileSmallVo.java
@@ -4,6 +4,7 @@
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.NumberFormatHandler;
import lombok.Data;
import org.apache.poi.ss.usermodel.IndexedColors;
import java.util.Date;
@Data
@@ -13,35 +14,35 @@
    /** $column.columnComment */
    @Excel(name = "编任者")
    @Excel(name = "编任者", headerColor = IndexedColors.BLACK)
    private String creator;
    @Excel(name = "文件编号")
    @Excel(name = "文件编号", headerColor = IndexedColors.BLACK)
    private String documentNumber;
    /** $column.columnComment */
    @Excel(name = "文件题名")
    @Excel(name = "文件题名", headerColor = IndexedColors.BLACK)
    private String title;
    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd", headerColor = IndexedColors.BLACK)
    private Date date;
    /** $column.columnComment */
    @Excel(name = "页号", handler = NumberFormatHandler.class)
    @Excel(name = "页号", handler = NumberFormatHandler.class, headerColor = IndexedColors.BLACK)
    private Long pageNumber;
    @Excel(name = "材料类型")
    @Excel(name = "材料类型", headerColor = IndexedColors.BLACK)
    private String fileStyle;
    /** $column.columnComment */
    @Excel(name = "所处阶段")
    @Excel(name = "所处阶段", headerColor = IndexedColors.BLACK)
    private String stage;
    /** $column.columnComment */
    @Excel(name = "公开属性")
    @Excel(name = "公开属性", headerColor = IndexedColors.BLACK)
    private String publicity;
    /** $column.columnComment */
    @Excel(name = "是否为附件附图")
    @Excel(name = "是否为附件附图", headerColor = IndexedColors.BLACK)
    private String isAttachment;
    /** $column.columnComment */
@@ -49,19 +50,19 @@
    private String isDiagram;
    /** $column.columnComment */
    @Excel(name = "保管期限")
    @Excel(name = "保管期限", headerColor = IndexedColors.BLACK)
    private String retentionPeriod;
    /** $column.columnComment */
    @Excel(name = "密级", readConverterExp = "该页另存=普通,普通=普通,内部用图=内部用图,内部用途=内部用途,秘密=秘密")
    @Excel(name = "密级", readConverterExp = "该页另存=普通,普通=普通,内部用图=内部用图,内部用途=内部用途,秘密=秘密", headerColor = IndexedColors.BLACK)
    private String securityLevel;
    /** $column.columnComment */
    @Excel(name = "是否涉密及敏感信息")
    @Excel(name = "是否涉密及敏感信息", headerColor = IndexedColors.BLACK)
    private String isSensitive;
    /** $column.columnComment */
    @Excel(name = "是否注销")
    @Excel(name = "是否注销", headerColor = IndexedColors.BLACK)
    private String isCanceled;
archiveManager/src/main/java/com/ruoyi/domain/vo/DocumentMaterialsFileList.java
@@ -3,6 +3,7 @@
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.poi.ss.usermodel.IndexedColors;
import java.util.Date;
@@ -17,27 +18,27 @@
    private String inquiryNumber;
    private String caseTitle;
    @Excel(name="序号")
    @Excel(name="序号", headerColor = IndexedColors.BLACK)
    private Long num;
    @Excel(name = "文件编号")
    @Excel(name = "文件编号", headerColor = IndexedColors.BLACK)
    private String documentNumber;
    @Excel(name = "文件题名")
    @Excel(name = "文件题名", headerColor = IndexedColors.BLACK)
    private String title;
    @Excel(name = "页号")
    @Excel(name = "页号", headerColor = IndexedColors.BLACK)
    private Long pageNumber;
    @Excel(name = "是否有其他介质")
    @Excel(name = "是否有其他介质", headerColor = IndexedColors.BLACK)
    private String fileStyle1;
    @Excel(name = "文件类型")
    @Excel(name = "文件类型", headerColor = IndexedColors.BLACK)
    private String fileStyle;
    @Excel(name = "保管期限")
    @Excel(name = "保管期限", headerColor = IndexedColors.BLACK)
    private String retentionPeriod;
    @Excel(name = "公开属性")
    @Excel(name = "公开属性", headerColor = IndexedColors.BLACK)
    private String publicity;
    @Excel(name = "备注")
    @Excel(name = "备注", headerColor = IndexedColors.BLACK)
    private String remarks;
}
archiveManager/src/main/java/com/ruoyi/domain/vo/RecordToUserCount.java
@@ -2,20 +2,21 @@
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.poi.ss.usermodel.IndexedColors;
@Data
public class RecordToUserCount {
    private Long userId;
    @Excel(name = "用户名称")
    @Excel(name = "用户名称", headerColor = IndexedColors.BLACK)
    private String userName;
    @Excel(name = "被分配案卷总数")
    @Excel(name = "被分配案卷总数", headerColor = IndexedColors.BLACK)
    private Long cnt;
    @Excel(name = "完成案卷数")
    @Excel(name = "完成案卷数", headerColor = IndexedColors.BLACK)
    private Long swlr;
    @Excel(name = "未上传附件")
    @Excel(name = "未上传附件", headerColor = IndexedColors.BLACK)
    private Long wlrf;
    @Excel(name = "待修改")
    @Excel(name = "待修改", headerColor = IndexedColors.BLACK)
    private Long dxg;
    @Excel(name = "未完成案卷数")
    @Excel(name = "未完成案卷数", headerColor = IndexedColors.BLACK)
    private Long ylr; 
}
archiveManager/src/main/java/com/ruoyi/service/impl/DocumentMaterialsServiceImpl.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.domain.AjaxResult;
@@ -176,58 +177,39 @@
    public int updateDocumentMaterials(DocumentMaterials documentMaterials) {
        boolean result = false;
        try {
            // 使用LambdaUpdateWrapper构造更新条件,确保null值也能更新到数据库
            LambdaUpdateWrapper<DocumentMaterials> updateWrapper = new LambdaUpdateWrapper<>();
            updateWrapper.eq(DocumentMaterials::getMaterialId, documentMaterials.getMaterialId());
//            //修改页号成功之后,要重新生成文件材料序号,页次
//            //根据pageNumber拿到title,然后计算pageOrder
//            LambdaQueryWrapper<DocumentMaterials> lqw = new LambdaQueryWrapper<>();
//            lqw.eq(documentMaterials.getRecordId()!=null, DocumentMaterials::getRecordId, documentMaterials.getRecordId());
//            lqw.eq(documentMaterials.getPageNumber()!=null, DocumentMaterials::getPageNumber, documentMaterials.getPageNumber());
//            List<DocumentMaterials> records = list(lqw);
//
//            //计算pageOrder
//            Long pageOrder = 1L;
//            if(documentMaterials.getPageNumber().equals(1))
//                pageOrder = 1L;
//            else {
//                Long maxPOrder = this.baseMapper.getMaxPageOrder(records.get(0).getTitle(), documentMaterials.getPageNumber(), records.get(0).getStage(), documentMaterials.getRecordId());
//                if (maxPOrder != null)
//                    pageOrder = maxPOrder + 1;
//            }
//            //设置pageOrder
//            documentMaterials.setPageOrder(pageOrder);
//            //计算fileNumber
//            Long fileNumber = this.getFiNum(documentMaterials.getPageNumber(), documentMaterials.getRecordId());
//            documentMaterials.setFileNumber(fileNumber);
            //修改页号
            result = updateById(documentMaterials);
//            //把剩下所有的的fileNumber和pageOrder都更新一遍
//            LambdaQueryWrapper<DocumentMaterials> lqw1 = new LambdaQueryWrapper<>();
//            lqw.eq(documentMaterials.getRecordId()!=null, DocumentMaterials::getRecordId, documentMaterials.getRecordId());
//          //  lqw.eq(documentMaterials.getPageNumber()!=null, DocumentMaterials::getPageNumber, documentMaterials.getPageNumber());
//            List<DocumentMaterials> recordss = list(lqw1);
//            for(DocumentMaterials dt: recordss)
//            {
//                //计算pageOrder
//                Long pageOrder1 = 1L;
//                if(dt.getPageNumber().equals(1))
//                    pageOrder1 = 1L;
//                else {
//                    Long maxPOrder1 = this.baseMapper.getMaxPageOrder(dt.getTitle(), dt.getPageNumber(), dt.getStage(), dt.getRecordId());
//                    if (maxPOrder1 != null)
//                        pageOrder1 = maxPOrder1 + 1;
//                }
//                //设置pageOrder
//                dt.setPageOrder(pageOrder1);
//                //计算fileNumber
//                Long fileNumber1 = this.getFiNum(dt.getPageNumber(), dt.getRecordId());
//                dt.setFileNumber(fileNumber1);
//                //修改页号
//                updateById(dt);
//            }
            // 明确设置需要更新的字段
            updateWrapper.set(DocumentMaterials::getFileNumber, documentMaterials.getFileNumber());
            updateWrapper.set(DocumentMaterials::getDocumentNumber, documentMaterials.getDocumentNumber());
            updateWrapper.set(DocumentMaterials::getCreator, documentMaterials.getCreator());
            updateWrapper.set(DocumentMaterials::getTitle, documentMaterials.getTitle());
            updateWrapper.set(DocumentMaterials::getDate, documentMaterials.getDate());
            updateWrapper.set(DocumentMaterials::getPageNumber, documentMaterials.getPageNumber()); // 允许更新为null
            updateWrapper.set(DocumentMaterials::getPageOrder, documentMaterials.getPageOrder());
            updateWrapper.set(DocumentMaterials::getStage, documentMaterials.getStage());
            updateWrapper.set(DocumentMaterials::getPublicity, documentMaterials.getPublicity());
            updateWrapper.set(DocumentMaterials::getIsAttachment, documentMaterials.getIsAttachment());
            updateWrapper.set(DocumentMaterials::getIsDiagram, documentMaterials.getIsDiagram());
            updateWrapper.set(DocumentMaterials::getRetentionPeriod, documentMaterials.getRetentionPeriod());
            updateWrapper.set(DocumentMaterials::getSecurityLevel, documentMaterials.getSecurityLevel());
            updateWrapper.set(DocumentMaterials::getIsSensitive, documentMaterials.getIsSensitive());
            updateWrapper.set(DocumentMaterials::getIsCanceled, documentMaterials.getIsCanceled());
            updateWrapper.set(DocumentMaterials::getFormat, documentMaterials.getFormat());
            updateWrapper.set(DocumentMaterials::getSizeType, documentMaterials.getSizeType());
            updateWrapper.set(DocumentMaterials::getHorizontalResolution, documentMaterials.getHorizontalResolution());
            updateWrapper.set(DocumentMaterials::getVerticalResolution, documentMaterials.getVerticalResolution());
            updateWrapper.set(DocumentMaterials::getWidth, documentMaterials.getWidth());
            updateWrapper.set(DocumentMaterials::getHeight, documentMaterials.getHeight());
            updateWrapper.set(DocumentMaterials::getFileSize, documentMaterials.getFileSize());
            updateWrapper.set(DocumentMaterials::getAttachmentHistoryNumbers, documentMaterials.getAttachmentHistoryNumbers());
            updateWrapper.set(DocumentMaterials::getRemarks, documentMaterials.getRemarks());
            updateWrapper.set(DocumentMaterials::getVisible, documentMaterials.getVisible());
            updateWrapper.set(DocumentMaterials::getFileStyle, documentMaterials.getFileStyle());
            // 执行更新操作
            result = update(updateWrapper);
        } catch (Exception e) {
            System.out.println(e);
            throw new ErrorcodeExceptionextends(500, "同一个案卷内,不允许页码重复!");
@@ -441,3 +423,5 @@
        }
    }
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/archiveAllExportController.java
@@ -528,24 +528,107 @@
                    }
                }
                //09-备考表.pdf
//                pdfGenerateService.generateFileStyleInfo(pdf09Path, aIV.getRecordId(), ids[i]);
//                // 2. 压缩PDF到ZIP文件
//                // 添加PDF文件到ZIP
//                ZipEntry zipEntry4 = new ZipEntry(fna + adir +"/"+pdf09Path);
//                zos.putNextEntry(zipEntry4);
//
//                // 读取PDF文件内容并写入ZIP
//                try (FileInputStream fis = new FileInputStream(pdf09Path)) {
//                    byte[] buffer = new byte[1024];
//                    int len;
//                    while ((len = fis.read(buffer)) > 0) {
//                        zos.write(buffer, 0, len);
//                    }
//                }
                //09-备考表.pdf
                String pdf09Path = "09-备考表.pdf";
                //  pdfGenerateService.generateFileStyleInfo(pdf09Path, aIV.getRecordId(), id);
                //拿到相关数据
                List<DocumentMaterialFileStyle> dmfs = documentMaterialsService.findFileStyleInfo(Math.toIntExact(ids[i]));
                LocalDate currentDate = LocalDate.now();
                String cdt = currentDate.getYear()+"年"+currentDate.getMonthValue()+"月"+currentDate.getDayOfMonth()+"日";
                pdfGenerateService.generateFileStyleInfo(pdf09Path, aIV.getRecordId(), ids[i]);
                // 2. 压缩PDF到ZIP文件
                // 添加PDF文件到ZIP
                HashMap<String, Object> hs = new HashMap<String, Object>();
                int allPages = 0;
                int texPages = 0;
                int picPages = 0;
                int patPages = 0;
                if(!dmfs.isEmpty())
                {
                    for(DocumentMaterialFileStyle documentMaterialFileStyle:dmfs)
                    {
                        if(documentMaterialFileStyle.getFileStyle().equals("文字材料"))
                            texPages = documentMaterialFileStyle.getCnt();
                        if(documentMaterialFileStyle.getFileStyle().equals("图样材料"))
                            patPages = documentMaterialFileStyle.getCnt();
                        if(documentMaterialFileStyle.getFileStyle().equals("照片材料"))
                            picPages = documentMaterialFileStyle.getCnt();
                    }
                }
                allPages = texPages + picPages + patPages;
                hs.put("pages", allPages);
                hs.put("patPages", patPages);
                hs.put("picPages", picPages);
                hs.put("texPages", texPages);
                hs.put("volumeNumber", aIV.getRecordId());
                hs.put("time", cdt);
                if (!getLicense()) {
                    System.out.println("没有相关证书!");
                }
                try {
                    // 获取 Word 模板所在路径
                    String filepath = "09-备考表.docx";
                    // 通过 XWPFTemplate 编译文件并渲染数据到模板中
                    XWPFTemplate template = XWPFTemplate.compile(filepath).render(hs
                    );
                    String renderedDocPath = "rendered_output.docx";
                    File renderedFile = new File(renderedDocPath);
                    try {
                        // 将完成数据渲染的文档写出
                        template.writeAndClose(new FileOutputStream(renderedFile));
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                    com.aspose.words.Document doc = new com.aspose.words.Document("rendered_output.docx");
                    // 创建临时字节输出流
                    ByteArrayOutputStream baobk = new ByteArrayOutputStream();
                    // 将Word文档转换为PDF字节数组
                    doc.save(baobk, com.aspose.words.SaveFormat.PDF);//ȫ��֧��DOC, DOCX, OOXML, RTF HTML, OpenDocument, PDF, EPUB, XPS, SWF �໥ת��
                ZipEntry zipEntry4 = new ZipEntry(fna + adir +"/"+pdf09Path);
                zos.putNextEntry(zipEntry4);
                    baobk.writeTo(zos);
                // 读取PDF文件内容并写入ZIP
                try (FileInputStream fis = new FileInputStream(pdf09Path)) {
                    byte[] buffer = new byte[1024];
                    int len;
                    while ((len = fis.read(buffer)) > 0) {
                        zos.write(buffer, 0, len);
                } catch (Exception e) {
                    e.printStackTrace();
                    }
                }
             //   com.aspose.words.Document doc = new com.aspose.words.Document("09-备考表.docx");
                //excel 卷内封面导出zip
                ZipEntry entryiv = new ZipEntry(fna + adir +"/"+"案卷封面" + ".xls");
@@ -867,23 +950,30 @@
            String cdt = currentDate.getYear()+"年"+currentDate.getMonthValue()+"月"+currentDate.getDayOfMonth()+"日";
            HashMap<String, Object> hs = new HashMap<String, Object>();
            if(dmfs.isEmpty())
            int allPages = 0;
            int texPages = 0;
            int picPages = 0;
            int patPages = 0;
            if(!dmfs.isEmpty())
            {
                //全部数据值为0
                hs.put("pages", 0);
                for(DocumentMaterialFileStyle documentMaterialFileStyle:dmfs)
                {
                    if(documentMaterialFileStyle.getFileStyle().equals("文字材料"))
                        texPages = documentMaterialFileStyle.getCnt();
                    if(documentMaterialFileStyle.getFileStyle().equals("图样材料"))
                        patPages = documentMaterialFileStyle.getCnt();
                    if(documentMaterialFileStyle.getFileStyle().equals("照片材料"))
                        picPages = documentMaterialFileStyle.getCnt();
                }
            }
            allPages = texPages + picPages + patPages;
            hs.put("pages", allPages);
            hs.put("patPages", patPages);
            hs.put("picPages", picPages);
            hs.put("texPages", texPages);
                hs.put("volumeNumber", aIV.getRecordId());
                hs.put("time", cdt);
            }
            else {
                int pcc = dmfs.size()<=1?0: dmfs.get(1).getCnt();
                int oth = dmfs.size()<=2?0: dmfs.get(2).getCnt();
                int allCnt = dmfs.get(0).getCnt() + pcc + oth;
                hs.put("pages", allCnt);
                hs.put("volumeNumber", aIV.getRecordId());
                hs.put("time", cdt);
            }
            if (!getLicense()) {
                System.out.println("没有相关证书!");
            }
@@ -1169,7 +1259,9 @@
                    res = false;
                }
                //得到文件名frontCompWithZore(4, dc.get)+
                String fname = frontCompWithZore(4, dc.getFileNumber().intValue())+"-"+dc.getTitle()+"-"+frontCompWithZore(4,dc.getPageNumber().intValue())+"."
                String fname = "";
                if(dc.getFileNumber()!=null&&dc.getPageNumber()!=null) {
                    fname = frontCompWithZore(4, dc.getFileNumber().intValue()) + "-" + dc.getTitle() + "-" + frontCompWithZore(4, dc.getPageNumber().intValue()) + "."
                        +dc.getUrl().split("\\.")[1];
                if(dc.getStage().equals("01-申请材料"))
                    zos.putNextEntry(new ZipEntry("01-申请材料/"+fname));
@@ -1179,15 +1271,14 @@
                    zos.putNextEntry(new ZipEntry("03-结论性文件/"+fname));
                else if(dc.getStage().equals("04-其他材料")) {
                    zos.putNextEntry(new ZipEntry("04-其他材料/" + fname));
                }
                else if(dc.getStage().equals("05-档案变更材料"))
                    } else if (dc.getStage().equals("05-档案变更材料"))
                    zos.putNextEntry(new ZipEntry("05-档案变更材料/"+fname));
                else if(dc.getStage().equals("06-业务数据"))
                    zos.putNextEntry(new ZipEntry("06-业务数据/"+fname));
                else
                    zos.putNextEntry(new ZipEntry(fname));
                }
                int len;
                FileInputStream in = new FileInputStream(tempFile);