会计账簿归档id字段更改

new
parent e02eb34e32
commit 28d8f7b03a

@ -19,3 +19,7 @@ INSERT INTO `lyr-one`.`system_dict_data` (`sort`, `label`, `value`, `dict_type`,
-- archives_authenticate
ALTER TABLE archives_authenticate MODIFY COLUMN time_limit varchar(20) DEFAULT NULL COMMENT '';
--
ALTER TABLE archives_accounting_book CHANGE COLUMN archive_id record_id bigint(20) DEFAULT NULL COMMENT 'id';

@ -40,7 +40,7 @@ public class AccountingBookBaseVO {
private String encrypt;
@Schema(description = "归档id", example = "26310")
private Long archiveId;
private Long recordId;
@Schema(description = "归档状态")
private String archiveState;

@ -48,7 +48,7 @@ public class AccountingBookExcelVO {
private String encrypt;
@ExcelProperty("归档id")
private Long archiveId;
private Long recordId;
@ExcelProperty("归档状态")
private String archiveState;

@ -42,7 +42,7 @@ public class AccountingBookExportReqVO {
private String encrypt;
@Schema(description = "归档id", example = "26310")
private Long archiveId;
private Long recordId;
@Schema(description = "归档状态")
private String archiveState;

@ -50,7 +50,7 @@ public class AccountingBookPageReqVO extends PageParam {
private String encrypt;
@Schema(description = "归档id", example = "26310")
private Long archiveId;
private Long recordId;
@Schema(description = "归档状态")
private String archiveState;

@ -75,7 +75,7 @@ public class AccountingBookDO extends BaseDO {
/**
* id
*/
private Long archiveId;
private Long recordId;
/**
*
*/

@ -33,7 +33,7 @@ public interface AccountingBookMapper extends BaseMapperX<AccountingBookDO> {
.eqIfPresent(AccountingBookDO::getDigest, reqVO.getDigest())
.betweenIfPresent(AccountingBookDO::getCreateTime, reqVO.getCreateTime())
.eqIfPresent(AccountingBookDO::getEncrypt, reqVO.getEncrypt())
.eqIfPresent(AccountingBookDO::getArchiveId, reqVO.getArchiveId())
.eqIfPresent(AccountingBookDO::getRecordId, reqVO.getRecordId())
.eqIfPresent(AccountingBookDO::getArchiveState, reqVO.getArchiveState())
.eqIfPresent(AccountingBookDO::getDeptId, reqVO.getDeptId())
.likeIfPresent(AccountingBookDO::getName,reqVO.getName())
@ -52,7 +52,7 @@ public interface AccountingBookMapper extends BaseMapperX<AccountingBookDO> {
.eqIfPresent(AccountingBookDO::getDigest, reqVO.getDigest())
.betweenIfPresent(AccountingBookDO::getCreateTime, reqVO.getCreateTime())
.eqIfPresent(AccountingBookDO::getEncrypt, reqVO.getEncrypt())
.eqIfPresent(AccountingBookDO::getArchiveId, reqVO.getArchiveId())
.eqIfPresent(AccountingBookDO::getRecordId, reqVO.getRecordId())
.eqIfPresent(AccountingBookDO::getArchiveState, reqVO.getArchiveState())
.eqIfPresent(AccountingBookDO::getDeptId, reqVO.getDeptId())
.likeIfPresent(AccountingBookDO::getDeptName, reqVO.getDeptName())

@ -232,7 +232,7 @@ public class RecordServiceImpl implements RecordService {
for (Long id : ids) {
AccountingBookDO accountingBookDO = new AccountingBookDO();
accountingBookDO.setId(id);
accountingBookDO.setArchiveId(recordId);
accountingBookDO.setRecordId(recordId);
accountingBookDO.setArchiveState(AccountingStatusEnum.LOGFILE.getValue());
accountingBookMapper.updateById(accountingBookDO);
}

Loading…
Cancel
Save