fix:【【修改轨迹内容】轨迹标记没有值时,显示了id】https://www.tapd.cn/60863849/bugtrace/bugs/view?bug_id=1160863849001032585

This commit is contained in:
李鹏军 2024-04-03 17:00:30 +08:00
parent 4a759333ca
commit 63e4c8b999
2 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,7 @@
/// <summary>
/// 轨迹标记id
/// </summary>
public int TrackFlagId { get; set; }
public int? TrackFlagId { get; set; }
/// <summary>
/// 轨迹标记

View File

@ -59,6 +59,8 @@ public class TrackContentService : ApplicationService
}
var dto = ObjectMapper.Map<GetTrackContentDetailVO, GetTrackContentDetailDto>(detailInfo);
if (dto.TrackFlagId == 0) dto.TrackFlagId = null;
return new UnifyResultDto<GetTrackContentDetailDto>("200", "", dto);
}