其他会计资料归档状态字段修改

new
JiilingLee 1 year ago
parent b7bde1be22
commit 5fdef9812e

@ -27,7 +27,7 @@ CREATE TABLE `accounting_other` (
`record_id` bigint(20) NULL DEFAULT NULL COMMENT 'id', `record_id` bigint(20) NULL DEFAULT NULL COMMENT 'id',
`user_id` bigint(20) NULL DEFAULT NULL COMMENT 'id', `user_id` bigint(20) NULL DEFAULT NULL COMMENT 'id',
`deleted` bit(1) NULL DEFAULT b'0' COMMENT '', `deleted` bit(1) NULL DEFAULT b'0' COMMENT '',
`archive_state` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '', `file_status` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '',
`tenant_id` bigint(20) NOT NULL COMMENT ' /', `tenant_id` bigint(20) NOT NULL COMMENT ' /',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '',
`attr1` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '1', `attr1` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '1',

@ -50,4 +50,7 @@ public class OtherBaseVO {
@Schema(description = "文件地址") @Schema(description = "文件地址")
private String fileUrl; private String fileUrl;
@Schema(description = "归档状态")
private String fileStatus;
} }

@ -81,7 +81,7 @@ public class OtherExcelVO {
private Long userId; private Long userId;
@ExcelProperty("归档状态") @ExcelProperty("归档状态")
private String archiveState; private String fileStatus;
@ExcelProperty("备注") @ExcelProperty("备注")
private String remark; private String remark;

@ -72,7 +72,7 @@ public class OtherExportReqVO {
private Long userId; private Long userId;
@Schema(description = "归档状态") @Schema(description = "归档状态")
private String archiveState; private String fileStatus;
@Schema(description = "备注", example = "你猜") @Schema(description = "备注", example = "你猜")
private String remark; private String remark;

@ -74,7 +74,7 @@ public class OtherPageReqVO extends PageParam {
private Long userId; private Long userId;
@Schema(description = "归档状态") @Schema(description = "归档状态")
private String archiveState; private String fileStatus;
@Schema(description = "备注", example = "你猜") @Schema(description = "备注", example = "你猜")
private String remark; private String remark;

@ -41,6 +41,6 @@ public class OtherRespVO extends OtherBaseVO {
private Long userId; private Long userId;
@Schema(description = "归档状态") @Schema(description = "归档状态")
private String archiveState; private String fileStatus;
} }

@ -104,7 +104,7 @@ public class OtherDO extends BaseDO {
/** /**
* *
*/ */
private String archiveState; private String fileStatus;
/** /**
* *
*/ */

@ -38,7 +38,7 @@ public interface OtherMapper extends BaseMapperX<OtherDO> {
.likeIfPresent(OtherDO::getDeptName, reqVO.getDeptName()) .likeIfPresent(OtherDO::getDeptName, reqVO.getDeptName())
.eqIfPresent(OtherDO::getRecordId, reqVO.getRecordId()) .eqIfPresent(OtherDO::getRecordId, reqVO.getRecordId())
.eqIfPresent(OtherDO::getUserId, reqVO.getUserId()) .eqIfPresent(OtherDO::getUserId, reqVO.getUserId())
.eqIfPresent(OtherDO::getArchiveState, reqVO.getArchiveState()) .eqIfPresent(OtherDO::getFileStatus, reqVO.getFileStatus())
.eqIfPresent(OtherDO::getRemark, reqVO.getRemark()) .eqIfPresent(OtherDO::getRemark, reqVO.getRemark())
.orderByDesc(OtherDO::getId)); .orderByDesc(OtherDO::getId));
} }
@ -64,7 +64,7 @@ public interface OtherMapper extends BaseMapperX<OtherDO> {
.likeIfPresent(OtherDO::getDeptName, reqVO.getDeptName()) .likeIfPresent(OtherDO::getDeptName, reqVO.getDeptName())
.eqIfPresent(OtherDO::getRecordId, reqVO.getRecordId()) .eqIfPresent(OtherDO::getRecordId, reqVO.getRecordId())
.eqIfPresent(OtherDO::getUserId, reqVO.getUserId()) .eqIfPresent(OtherDO::getUserId, reqVO.getUserId())
.eqIfPresent(OtherDO::getArchiveState, reqVO.getArchiveState()) .eqIfPresent(OtherDO::getFileStatus, reqVO.getFileStatus())
.eqIfPresent(OtherDO::getRemark, reqVO.getRemark()) .eqIfPresent(OtherDO::getRemark, reqVO.getRemark())
.orderByDesc(OtherDO::getId)); .orderByDesc(OtherDO::getId));
} }

@ -238,7 +238,7 @@ public class RecordServiceImpl implements RecordService {
OtherDO otherDO = new OtherDO(); OtherDO otherDO = new OtherDO();
otherDO.setId(id); otherDO.setId(id);
otherDO.setRecordId(recordId); otherDO.setRecordId(recordId);
otherDO.setArchiveState(AccountingStatusEnum.LOGFILE.getValue()); otherDO.setFileStatus(AccountingStatusEnum.LOGFILE.getValue());
otherMapper.updateById(otherDO); otherMapper.updateById(otherDO);
} }
} }

Loading…
Cancel
Save