This commit is contained in:
tanglong 2025-08-07 11:32:30 +08:00
parent d74dc7cf6d
commit 85cb2d82ea
2 changed files with 9 additions and 2 deletions

View File

@ -170,10 +170,9 @@ namespace YD_WeChatApplet.Api.Services.Impl
.Select(x => x.TaxonomyId) .Select(x => x.TaxonomyId)
.ToListAsync(); .ToListAsync();
// 获取所有类型为2的课程 // 获取所有类型为2的课程
var paidCourses = await _sportsContext.CurricularTaxonomy var paidCourses = await _sportsContext.CurricularTaxonomy
.Where(x => x.Remarks == redeemCode) .Where(x => x.RedeemCode == redeemCode)
.ToListAsync(); .ToListAsync();
// 找出用户未购买的课程 // 找出用户未购买的课程

View File

@ -31,5 +31,13 @@ namespace YD_WeChatApplet.Api.SmartSportsEntitys
[Comment("课程类型")] [Comment("课程类型")]
[Column(TypeName = "int)")] [Column(TypeName = "int)")]
public int CurricularType { get; set; } public int CurricularType { get; set; }
/// <summary>
///兑换码
/// </summary>
[Display(Name = "兑换码")]
[Comment("兑换码")]
[Column(TypeName = "nvarchar(1000)")]
public string RedeemCode { get; set; }
} }
} }