From 131bf857089ef3225ee7b3a860cb543c127230f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9F=B3=E6=96=87=E7=BF=94?= <878130837@qq.com>
Date: Sat, 2 Mar 2024 16:58:58 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Services/TrackTemplates/TrackTemplateService.cs | 2 +-
.../TrackTemplateAggregate/ITrackTemplateRepository.cs | 2 +-
.../Repositories/TrackTemplateRepository.cs | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs b/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs
index 1beb3bed..99cf36dc 100644
--- a/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs
+++ b/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs
@@ -190,7 +190,7 @@ public class TrackTemplateService : ApplicationService, ITransientDependency
///
///
[HttpPost("GetContentDropDownList")]
- public async Task> GetContentDropDownListAsync([FromBody] GetTrackTemplateContentDropDownListVO input)
+ public async Task> GetContentDropDownListAsync([FromBody] GetTrackTemplateContentDropDownListVO input)
{
return await _trackTemplateRepository.GetContentDropDownListAsync(input);
}
diff --git a/src/SJZY.Track.Domain/Aggregates/TrackTemplateAggregate/ITrackTemplateRepository.cs b/src/SJZY.Track.Domain/Aggregates/TrackTemplateAggregate/ITrackTemplateRepository.cs
index 86e3041b..5c738f78 100644
--- a/src/SJZY.Track.Domain/Aggregates/TrackTemplateAggregate/ITrackTemplateRepository.cs
+++ b/src/SJZY.Track.Domain/Aggregates/TrackTemplateAggregate/ITrackTemplateRepository.cs
@@ -39,5 +39,5 @@ public interface ITrackTemplateRepository : IBasicRepository UpdateContentRangeAsync(List updateObjs);
- Task> GetContentDropDownListAsync(GetTrackTemplateContentDropDownListVO input);
+ Task> GetContentDropDownListAsync(GetTrackTemplateContentDropDownListVO input);
}
\ No newline at end of file
diff --git a/src/SJZY.Track.Repository/Repositories/TrackTemplateRepository.cs b/src/SJZY.Track.Repository/Repositories/TrackTemplateRepository.cs
index 1f243a33..37d27a78 100644
--- a/src/SJZY.Track.Repository/Repositories/TrackTemplateRepository.cs
+++ b/src/SJZY.Track.Repository/Repositories/TrackTemplateRepository.cs
@@ -164,7 +164,7 @@ public class TrackTemplateRepository : BasicRepository, ITr
return await Context.Updateable(updateObjs).ExecuteCommandHasChangeAsync();
}
- public async Task> GetContentDropDownListAsync(GetTrackTemplateContentDropDownListVO input)
+ public async Task> GetContentDropDownListAsync(GetTrackTemplateContentDropDownListVO input)
{
return await Context.Queryable()
.InnerJoin((templateContent, trackContent) => templateContent.TrackContentId == trackContent.Id)
@@ -177,6 +177,6 @@ public class TrackTemplateRepository : BasicRepository, ITr
Key = trackContent.Code + "-" + trackContent.Content
})
.Distinct()
- .ToListAsync();
+ .ToPagedListAsync(input.PageIndex, input.PageSize);
}
}
\ No newline at end of file