会计报表归档

new
JiilingLee 1 year ago
parent 1f79750885
commit 4752e32d3a

@ -15,8 +15,8 @@ CREATE TABLE `lyr-one`.`archives_accounting_report` (
`update_time` datetime NULL DEFAULT NULL COMMENT '',
`deleted` bit(1) NULL DEFAULT b'0' COMMENT '',
`encrypt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '',
`archive_id` bigint(20) NULL DEFAULT NULL COMMENT 'id',
`archive_state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '',
`record_id` bigint(20) NULL DEFAULT NULL COMMENT 'id',
`file_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '',
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT 'id',
`dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '',
`tenant_id` bigint(20) NULL DEFAULT NULL COMMENT '',

@ -43,10 +43,10 @@ public class AccountingReportBaseVO {
private String encrypt;
@Schema(description = "归档id", example = "25739")
private Long archiveId;
private Long recordId;
@Schema(description = "归档状态")
private String archiveState;
private String fileStatus;
@Schema(description = "部门id", example = "6314")
private Long deptId;

@ -51,10 +51,10 @@ public class AccountingReportExcelVO {
private String encrypt;
@ExcelProperty("归档id")
private Long archiveId;
private Long recordId;
@ExcelProperty("归档状态")
private String archiveState;
private String fileStatus;
@ExcelProperty("部门id")
private Long deptId;

@ -45,10 +45,10 @@ public class AccountingReportExportReqVO {
private String encrypt;
@Schema(description = "归档id", example = "25739")
private Long archiveId;
private Long recordId;
@Schema(description = "归档状态")
private String archiveState;
private String fileStatus;
@Schema(description = "部门id", example = "6314")
private Long deptId;

@ -47,10 +47,10 @@ public class AccountingReportPageReqVO extends PageParam {
private String encrypt;
@Schema(description = "归档id", example = "25739")
private Long archiveId;
private Long recordId;
@Schema(description = "归档状态")
private String archiveState;
private String fileStatus;
@Schema(description = "部门id", example = "6314")
private Long deptId;

@ -67,11 +67,11 @@ public class AccountingReportDO extends BaseDO {
/**
* id
*/
private Long archiveId;
private Long recordId;
/**
*
*/
private String archiveState;
private String fileStatus;
/**
* id
*/

@ -31,8 +31,8 @@ public interface AccountingReportMapper extends BaseMapperX<AccountingReportDO>
.eqIfPresent(AccountingReportDO::getPeriod, reqVO.getPeriod())
.betweenIfPresent(AccountingReportDO::getCreateTime, reqVO.getCreateTime())
.eqIfPresent(AccountingReportDO::getEncrypt, reqVO.getEncrypt())
.eqIfPresent(AccountingReportDO::getArchiveId, reqVO.getArchiveId())
.eqIfPresent(AccountingReportDO::getArchiveState, reqVO.getArchiveState())
.eqIfPresent(AccountingReportDO::getRecordId, reqVO.getRecordId())
.eqIfPresent(AccountingReportDO::getFileStatus, reqVO.getFileStatus())
.eqIfPresent(AccountingReportDO::getDeptId, reqVO.getDeptId())
.likeIfPresent(AccountingReportDO::getDeptName, reqVO.getDeptName())
.orderByDesc(AccountingReportDO::getId));
@ -50,8 +50,8 @@ public interface AccountingReportMapper extends BaseMapperX<AccountingReportDO>
.eqIfPresent(AccountingReportDO::getPeriod, reqVO.getPeriod())
.betweenIfPresent(AccountingReportDO::getCreateTime, reqVO.getCreateTime())
.eqIfPresent(AccountingReportDO::getEncrypt, reqVO.getEncrypt())
.eqIfPresent(AccountingReportDO::getArchiveId, reqVO.getArchiveId())
.eqIfPresent(AccountingReportDO::getArchiveState, reqVO.getArchiveState())
.eqIfPresent(AccountingReportDO::getRecordId, reqVO.getRecordId())
.eqIfPresent(AccountingReportDO::getFileStatus, reqVO.getFileStatus())
.eqIfPresent(AccountingReportDO::getDeptId, reqVO.getDeptId())
.likeIfPresent(AccountingReportDO::getDeptName, reqVO.getDeptName())
.orderByDesc(AccountingReportDO::getId));

@ -252,8 +252,8 @@ public class RecordServiceImpl implements RecordService {
for (Long id : ids) {
AccountingReportDO accountingReportDO = new AccountingReportDO();
accountingReportDO.setId(id);
accountingReportDO.setArchiveId(recordId);
accountingReportDO.setArchiveState(AccountingStatusEnum.LOGFILE.getValue());
accountingReportDO.setRecordId(recordId);
accountingReportDO.setFileStatus(AccountingStatusEnum.LOGFILE.getValue());
accountingReportMapper.updateById(accountingReportDO);
}
}

Loading…
Cancel
Save