|
@@ -351,8 +351,12 @@ public class RedPackApplication : IRedPackApplication, IScopeDependency
|
|
|
.LeftJoin<OrderSnapshot>((sms, industry, snapshot) => snapshot.IndustryId == industry.Id)
|
|
|
.Where((sms, industry, snapshot) => (sms.IsPublic == true || sms.IndustryId == snapshot.IndustryId)
|
|
|
&& sms.Status == dto.Status && sms.IsEnable == true && sms.IsDeleted == false)
|
|
|
- .Select<GetRedPackAuditSMSTemplateOutDto>()
|
|
|
- .Distinct()
|
|
|
+ .Select((sms, industry, snapshot) => new GetRedPackAuditSMSTemplateOutDto
|
|
|
+ {
|
|
|
+ Id = sms.Id,
|
|
|
+ Content = sms.Content
|
|
|
+ })
|
|
|
+ .GroupBy(sms => new { sms.Id, sms.Content})
|
|
|
.ToListAsync();
|
|
|
return items;
|
|
|
}
|