轨迹标记删除提示语

This commit is contained in:
moyongzhen 2024-03-04 09:26:59 +08:00
parent 51fe08f607
commit 2905b47d1a

View File

@ -129,7 +129,8 @@ namespace SJZY.Track.Application.Services.TrackFlags
var isExistContent = await _trackContentRepository.GetFirstAsync(a => a.TrackFlagId==input.Id); var isExistContent = await _trackContentRepository.GetFirstAsync(a => a.TrackFlagId==input.Id);
if (isExistContent!=null) if (isExistContent!=null)
{ {
throw new BusinessException(message: _stringLocalizer["IsExistTrackFlag"]); //throw new BusinessException(message: _stringLocalizer["IsExistTrackFlag"]);
throw new BusinessException(message: "该标记关联轨迹内容,禁止删除");
} }
#endregion #endregion
var isTrue = await _trackFlagRepository.SoftDeleteAsync(x => x.Id == input.Id); var isTrue = await _trackFlagRepository.SoftDeleteAsync(x => x.Id == input.Id);