返回推荐的版本
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6264d105ab
commit
933a43f4ea
|
@ -73,13 +73,13 @@ namespace IRaCIS.Core.Application.Service
|
|||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
public async Task<ExploreRecommendView> GetExploreRecommentInfo()
|
||||
public async Task<List<ExploreRecommendView> > GetExploreRecommentInfo()
|
||||
{
|
||||
|
||||
|
||||
var result = await _exploreRecommendRepository.Where(t => t.IsDeleted == false).ProjectTo<ExploreRecommendView>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
||||
var result = await _exploreRecommendRepository.Where(t => t.IsDeleted == false).ProjectTo<ExploreRecommendView>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
|
||||
if (result == null)
|
||||
if (result .Count==0)
|
||||
{
|
||||
throw new QueryBusinessObjectNotExistException("系统浏览器版本推荐未维护,请联系维护人员");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue