会计账簿归档

new
JiilingLee 1 year ago
parent 28d8f7b03a
commit 1f79750885

@ -16,8 +16,8 @@ CREATE TABLE `lyr-one`.`archives_accounting_book` (
`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,7 +43,7 @@ public class AccountingBookBaseVO {
private Long recordId;
@Schema(description = "归档状态")
private String archiveState;
private String fileStatus;
@Schema(description = "部门id", example = "15870")
private Long deptId;

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

@ -45,7 +45,7 @@ public class AccountingBookExportReqVO {
private Long recordId;
@Schema(description = "归档状态")
private String archiveState;
private String fileStatus;
@Schema(description = "部门id", example = "15870")
private Long deptId;

@ -53,7 +53,7 @@ public class AccountingBookPageReqVO extends PageParam {
private Long recordId;
@Schema(description = "归档状态")
private String archiveState;
private String fileStatus;
@Schema(description = "部门id", example = "15870")
private Long deptId;

@ -79,7 +79,7 @@ public class AccountingBookDO extends BaseDO {
/**
*
*/
private String archiveState;
private String fileStatus;
/**
* id
*/

@ -34,7 +34,7 @@ public interface AccountingBookMapper extends BaseMapperX<AccountingBookDO> {
.betweenIfPresent(AccountingBookDO::getCreateTime, reqVO.getCreateTime())
.eqIfPresent(AccountingBookDO::getEncrypt, reqVO.getEncrypt())
.eqIfPresent(AccountingBookDO::getRecordId, reqVO.getRecordId())
.eqIfPresent(AccountingBookDO::getArchiveState, reqVO.getArchiveState())
.eqIfPresent(AccountingBookDO::getFileStatus, reqVO.getFileStatus())
.eqIfPresent(AccountingBookDO::getDeptId, reqVO.getDeptId())
.likeIfPresent(AccountingBookDO::getName,reqVO.getName())
.likeIfPresent(AccountingBookDO::getDeptName, reqVO.getDeptName())
@ -53,7 +53,7 @@ public interface AccountingBookMapper extends BaseMapperX<AccountingBookDO> {
.betweenIfPresent(AccountingBookDO::getCreateTime, reqVO.getCreateTime())
.eqIfPresent(AccountingBookDO::getEncrypt, reqVO.getEncrypt())
.eqIfPresent(AccountingBookDO::getRecordId, reqVO.getRecordId())
.eqIfPresent(AccountingBookDO::getArchiveState, reqVO.getArchiveState())
.eqIfPresent(AccountingBookDO::getFileStatus, reqVO.getFileStatus())
.eqIfPresent(AccountingBookDO::getDeptId, reqVO.getDeptId())
.likeIfPresent(AccountingBookDO::getDeptName, reqVO.getDeptName())
.orderByDesc(AccountingBookDO::getId));

@ -233,7 +233,7 @@ public class RecordServiceImpl implements RecordService {
AccountingBookDO accountingBookDO = new AccountingBookDO();
accountingBookDO.setId(id);
accountingBookDO.setRecordId(recordId);
accountingBookDO.setArchiveState(AccountingStatusEnum.LOGFILE.getValue());
accountingBookDO.setFileStatus(AccountingStatusEnum.LOGFILE.getValue());
accountingBookMapper.updateById(accountingBookDO);
}
}

Loading…
Cancel
Save