修改国际化bug
parent
77d920a2ef
commit
db0d087396
|
@ -243,7 +243,7 @@ namespace IRaCIS.Core.Application.MassTransit.Consumer
|
|||
dialogMsg.AppendLine($"<br/>");
|
||||
dialogMsg.AppendLine(@$"<div>{_localizer["ConsistencyVerification_Desc"]}</div>");
|
||||
|
||||
dbSV.CheckResult = _localizer["ConsistencyVerification_Conf"] +
|
||||
dbSV.CheckResult =
|
||||
String.Join(" | ", dbExceptExcel.Select(t => $"{_localizer["ConsistencyVerification_EdcL", t.StudyDate, t.Modality, _systemEmailConfig.SystemShortName]}")) + " | "
|
||||
+ String.Join(" | ", excelExceptDB.Select(t => $"{_localizer["ConsistencyVerification_IrcLi", t.StudyDate, t.Modality, _systemEmailConfig.SystemShortName]}"));
|
||||
|
||||
|
|
|
@ -112,6 +112,8 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
|
||||
public int? State { get; set; }
|
||||
|
||||
public int InternationalizationType { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class BatchAddInternationalizationDto : BatchInternationalizationDto
|
||||
|
@ -124,6 +126,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
public string Version { get; set; }
|
||||
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class BatchUpdateInfoCommand
|
||||
|
|
|
@ -45,10 +45,11 @@ namespace IRaCIS.Core.Application.Service
|
|||
ValueCN = t.ValueCN,
|
||||
FrontType = t.FrontType,
|
||||
Description = t.Description,
|
||||
Module=t.Module,
|
||||
Module = t.Module,
|
||||
State = t.State,
|
||||
Version=t.PublishLog.Version,
|
||||
Version = t.PublishLog.Version,
|
||||
CreateTime = t.CreateTime,
|
||||
InternationalizationType = t.InternationalizationType
|
||||
}).ToListAsync();
|
||||
|
||||
await _fusionCache.SetAsync<List<InternationalizationSimpleDto>>(CacheKeys.FrontInternational, list, TimeSpan.FromDays(1));
|
||||
|
@ -59,7 +60,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 前端批量提交,后端判断不存在就添加,存在就更新
|
||||
/// 前端批量提交,后端查询判断不存在就添加,存在就更新 (这里提交接口也能提交后端的标识,对后端标识进行更新)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
|
@ -69,7 +70,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
foreach (var item in batchList)
|
||||
{
|
||||
var find = await _internationalizationRepository.FirstOrDefaultAsync(t => t.Code == item.Code && t.Description == item.Description && t.InternationalizationType == 0);
|
||||
var find = await _internationalizationRepository.FirstOrDefaultAsync(t => t.Code == item.Code && t.InternationalizationType == item.InternationalizationType);
|
||||
|
||||
if (find != null)
|
||||
{
|
||||
|
@ -81,7 +82,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
var frontState = item.State == null ? 0 : (int)item.State;
|
||||
|
||||
var mapItem = _mapper.Map<Internationalization>(item);
|
||||
mapItem.InternationalizationType = 0;
|
||||
//mapItem.InternationalizationType = 0;
|
||||
|
||||
// 0 是预翻译 1是已确认 2是后端废弃
|
||||
mapItem.State = frontState;
|
||||
|
|
Loading…
Reference in New Issue