feat 用户消费明细显示已退款

This commit is contained in:
2024-11-12 10:39:55 +08:00
parent 59fdf00df3
commit 1a04513489
2 changed files with 15 additions and 15 deletions

View File

@@ -112,19 +112,19 @@ public class GainfoGroupService : IGainfoGroupService
var gainfo = await _dbContext.Queryable<GainfoEntity>().Where(x => x.Code == userCode).SingleAsync();
var userNo = gainfo?.No;
return await _dbContext.Queryable<GainfoGroupEntity>()
.LeftJoin<GainfoGroupRelationshipEntity>((x, r) => x.Code == r.GroupCode)
.Where((x, r) => r.UserNo == userNo)
.Select(x => new GainfoGroupTreeResponse
return await _dbContext.Queryable<GainfoGroupRelationshipEntity>()
.LeftJoin<GainfoGroupEntity>((x, xg) => x.GroupCode == xg.Code)
.Where((x, xg) => x.UserNo == userNo)
.Select((x, xg) => new GainfoGroupTreeResponse
{
Id = x.Id,
PCode = x.PCode,
Code = x.Code,
Name = x.Name,
Remark = x.Remark,
Editable = x.Editable,
IsDefault = x.IsDefault,
TenantId = x.TenantId
PCode = xg.PCode,
Code = xg.Code,
Name = xg.Name,
Remark = xg.Remark,
Editable = xg.Editable,
IsDefault = xg.IsDefault,
TenantId = xg.TenantId
})
.ToListAsync();
}