s
This commit is contained in:
parent
038c865e6d
commit
d74dc7cf6d
@ -170,17 +170,10 @@ namespace YD_WeChatApplet.Api.Services.Impl
|
|||||||
.Select(x => x.TaxonomyId)
|
.Select(x => x.TaxonomyId)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
var codeToTypeMap = new Dictionary<string, int>
|
|
||||||
{
|
|
||||||
{ "YD-1001", 1 },
|
|
||||||
{ "YD-2001", 2 }
|
|
||||||
};
|
|
||||||
|
|
||||||
codeToTypeMap.TryGetValue(redeemCode, out int curricularType);
|
|
||||||
|
|
||||||
// 获取所有类型为2的课程
|
// 获取所有类型为2的课程
|
||||||
var paidCourses = await _sportsContext.CurricularTaxonomy
|
var paidCourses = await _sportsContext.CurricularTaxonomy
|
||||||
.Where(x => x.CurricularType == curricularType)
|
.Where(x => x.Remarks == redeemCode)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
// 找出用户未购买的课程
|
// 找出用户未购买的课程
|
||||||
|
Loading…
x
Reference in New Issue
Block a user