|
@@ -16,12 +16,14 @@ public class RedPackController : BaseController
|
|
|
private readonly IRedPackApplication _redPackApplication;
|
|
|
private readonly IIndustryRepository _industryRepository;
|
|
|
private readonly ISystemDicDataCacheManager _sysDic;
|
|
|
+ private readonly ISnapshotSMSTemplateRepository _snapshotSMSTemplateRepository;
|
|
|
|
|
|
- public RedPackController(IRedPackApplication redPackApplication, IIndustryRepository industryRepository, ISystemDicDataCacheManager sysDic)
|
|
|
+ public RedPackController(IRedPackApplication redPackApplication, IIndustryRepository industryRepository, ISystemDicDataCacheManager sysDic, ISnapshotSMSTemplateRepository snapshotSMSTemplateRepository)
|
|
|
{
|
|
|
_redPackApplication = redPackApplication;
|
|
|
_industryRepository = industryRepository;
|
|
|
_sysDic = sysDic;
|
|
|
+ _snapshotSMSTemplateRepository = snapshotSMSTemplateRepository;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -47,11 +49,13 @@ public class RedPackController : BaseController
|
|
|
.Select(m => m.CitizenReadPackAmount)
|
|
|
.Distinct()
|
|
|
.ToListAsync();
|
|
|
+ var sms = await _snapshotSMSTemplateRepository.Queryable()
|
|
|
+ .ToListAsync();
|
|
|
return new Dictionary<string, object>
|
|
|
{
|
|
|
{ "industry", industry },
|
|
|
{ "configAmount", configAmount },
|
|
|
- { "status", EnumExts.GetDescriptions<ERedPackAuditStatus>()}
|
|
|
+ { "status", EnumExts.GetDescriptions<ERedPackAuditStatus>() }
|
|
|
};
|
|
|
}
|
|
|
}
|