轨迹标记删除提示语
This commit is contained in:
parent
51fe08f607
commit
2905b47d1a
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user