修改提示信息
parent
0d020df8a8
commit
a9dbf4a33d
|
@ -55,7 +55,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
|
|
||||||
if (await _systemDocumentRepository.AnyAsync(t => t.FileTypeId == addOrEditSystemDocument.FileTypeId && t.Name == addOrEditSystemDocument.Name,true))
|
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);
|
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))
|
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()))
|
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);
|
var success = await _systemDocumentRepository.DeleteFromQueryAsync(t => t.Id == systemDocumentId,true,true);
|
||||||
|
|
Loading…
Reference in New Issue