修改提示信息
This commit is contained in:
@@ -55,7 +55,7 @@ namespace IRaCIS.Core.Application.Services
|
||||
|
||||
if (await _systemDocumentRepository.AnyAsync(t => t.FileTypeId == addOrEditSystemDocument.FileTypeId && t.Name == addOrEditSystemDocument.Name,true))
|
||||
{
|
||||
return ResponseOutput.NotOk("同类型已存在该文件名");
|
||||
return ResponseOutput.NotOk("系统中已存在同类型的同名文件。");
|
||||
}
|
||||
|
||||
await _systemDocumentRepository.AddAsync(entity, true);
|
||||
@@ -70,7 +70,7 @@ namespace IRaCIS.Core.Application.Services
|
||||
|
||||
if (await _systemDocumentRepository.AnyAsync(t => t.FileTypeId == addOrEditSystemDocument.FileTypeId && t.Name == addOrEditSystemDocument.Name && t.Id != addOrEditSystemDocument.Id, true))
|
||||
{
|
||||
return ResponseOutput.NotOk("同类型已存在该文件名");
|
||||
return ResponseOutput.NotOk("系统中已存在同类型的同名文件。");
|
||||
}
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace IRaCIS.Core.Application.Services
|
||||
|
||||
if (await _repository.Where<SystemDocument>(t => t.Id == systemDocumentId).AnyAsync(u => u.SystemDocConfirmedUserList.Any()))
|
||||
{
|
||||
return ResponseOutput.NotOk("该文档下已有签名的用户");
|
||||
return ResponseOutput.NotOk("已有用户阅读该文档,并签名。");
|
||||
}
|
||||
|
||||
var success = await _systemDocumentRepository.DeleteFromQueryAsync(t => t.Id == systemDocumentId,true,true);
|
||||
|
||||
Reference in New Issue
Block a user