文件分类标记

This commit is contained in:
liang.chao 2025-09-12 16:37:17 +08:00
parent 479cd286ed
commit f9524f0017
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,7 @@ public class FilesClassifyNameStandardDto {
private Integer id;
private String standardType;
@NotBlank(message = "文件分类命名规范不能为空")
@Length(max = 20, message = "规范识别值长度不能超过20个字符")
@Length(max = 32, message = "规范识别值长度不能超过32个字符")
private String standardName;
@Length(max = 200, message = "备注不能超过200个字符")
private String remark;

View File

@ -31,6 +31,8 @@ public class FilesClassifyNameStandardServiceImpl implements FilesClassifyNameSt
public R add(FilesClassifyNameStandardDto dto) {
dto.setCreateUserId(getLoginUser().getUserId().intValue());
dto.setCreateUserName(getLoginUser().getUsername());
dto.setUpdateUserId(getLoginUser().getUserId().intValue());
dto.setUpdateUserName(getLoginUser().getUsername());
// 查询档案名称是否重复
Integer i = filesClassifyNameStandardMapper.selectClassifyNameStandard(dto);
if (i > 0) {