/// <summary> /// 删除操作 /// </summary> /// <param name="ids">用逗号分隔的Id列表。范例:"1,2"</param> public async Task DeleteAsync(string ids) { if (string.IsNullOrWhiteSpace(ids)) { return; } var entities = await OperationRepository.FindByIdsAsync(ids); if (entities?.Count == 0) { return; } await OperationRepository.RemoveAsync(entities); await UnitOfWork.CommitAsync(); }