|
@@ -399,5 +399,24 @@ public class IndustryApplication : IIndustryApplication, IScopeDependency
|
|
|
return query;
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 删除行业短信模板
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="ids"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public async Task DeleteSMSTemplateAsync(IList<string> ids)
|
|
|
+ {
|
|
|
+ await _snapshotSMSTemplateRepository.Queryable()
|
|
|
+ .Where(m => ids.Contains(m.Id))
|
|
|
+ .ToListAsync()
|
|
|
+ .Then(async sms => {
|
|
|
+ for (int i = 0;i < sms.Count;i++)
|
|
|
+ {
|
|
|
+ sms[i].IsDeleted = true;
|
|
|
+ await _snapshotSMSTemplateRepository.UpdateAsync(sms[i]);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
#endregion
|
|
|
}
|