Administrator
3 years ago
7 changed files with 116 additions and 11 deletions
@ -0,0 +1,43 @@ |
|||
using Dapper; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Domain.Repositories.Dapper; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Win.Sfs.SettleAccount.Entities; |
|||
using Win.Sfs.SettleAccount.Entities.Materials; |
|||
using Win.Sfs.SettleAccount.Entities.Prices; |
|||
using Win.Sfs.SettleAccount.Reports; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|||
{ |
|||
|
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
/// 主数据Dapper表
|
|||
/// </summary>
|
|||
public class FisUpdateDapperRepository : DapperRepository<SettleAccountDbContext>, ITransientDependency |
|||
{ |
|||
public FisUpdateDapperRepository(IDbContextProvider<SettleAccountDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
|
|||
} |
|||
|
|||
public virtual void UpdateFisSettle() |
|||
{ |
|||
|
|||
DbConnection.Execute("EXEC sp_settle_fis_update", null, null, 1200, null); |
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,37 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using TaskJob.EventArgs; |
|||
using TaskJob.Interfaces; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report; |
|||
|
|||
namespace SettleAccount.Job.Services.Report |
|||
{ |
|||
public class FisUpdateExportService : ITransientDependency, IExportJob |
|||
{ |
|||
private readonly FisUpdateDapperRepository _dapperRepository; |
|||
|
|||
|
|||
public FisUpdateExportService( |
|||
|
|||
FisUpdateDapperRepository dapperRepository |
|||
//HQHSettledDetailDapperRepository dapperRepository,
|
|||
|
|||
//OutputService outputService,
|
|||
//InputService inputService
|
|||
//, IBlobContainer<MyFileContainer> fileContainer
|
|||
) |
|||
{ |
|||
_dapperRepository = dapperRepository; |
|||
} |
|||
|
|||
public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> property) |
|||
{ |
|||
_dapperRepository.UpdateFisSettle(); |
|||
return id.ToString(); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue