diff --git a/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs b/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs
index 2d849b44..429fb440 100644
--- a/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs
+++ b/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs
@@ -51,16 +51,9 @@ public class TrackTemplateService : ApplicationService
///
///
[HttpGet("GetDetail")]
- public async Task> GetDetailAsync(int id)
+ public async Task GetDetailAsync(int id)
{
- var detailInfo = await _trackTemplateRepository.GetDetailAsync(id);
- if (detailInfo == null)
- {
- return new UnifyResultDto(false, null, "未查询到轨迹模版");
- }
-
- var dto = ObjectMapper.Map(detailInfo);
- return new UnifyResultDto(GlobalConst.SuccessCode, "", dto);
+ return await _trackTemplateRepository.GetDetailAsync(id);
}
///