国际化修改
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
// 此代码由T4模板自动生成 byzhouhang 20210918
|
||||
// 生成时间 2021-11-11 11:04:54
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||
@@ -107,7 +107,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
if (await _qcQuestionRepository.AnyAsync(x => x.Id != addOrEditQCQuestionConfigure.Id && x.ShowOrder == addOrEditQCQuestionConfigure.ShowOrder))
|
||||
{
|
||||
throw new BusinessValidationFailedException("序号重复,操作失败");
|
||||
//---序号重复,操作失败
|
||||
throw new BusinessValidationFailedException(_localizer["QCQuestion_DuplicateIndexFailed"]);
|
||||
|
||||
}
|
||||
|
||||
@@ -121,7 +122,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
{
|
||||
if (await _qcQuestionRepository.AnyAsync(x => x.ParentId == qCQuestionConfigureId))
|
||||
{
|
||||
throw new BusinessValidationFailedException("当前任务存在子问题,删除失败");
|
||||
//---当前任务存在子问题,删除失败
|
||||
throw new BusinessValidationFailedException(_localizer["QCQuestion_HasChildQuestion"]);
|
||||
}
|
||||
await _qcQuestionRepository.DeleteFromQueryAsync(t => t.Id == qCQuestionConfigureId,true);
|
||||
return ResponseOutput.Ok();
|
||||
|
||||
Reference in New Issue
Block a user