文件分类标记
This commit is contained in:
parent
479cd286ed
commit
f9524f0017
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue