Browse Source

更新版本

master
学 赵 12 months ago
parent
commit
2c9ffaf471
  1. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/BalanceSumService .cs
  2. 13
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Reports/ReportServices/ReportMakeService.cs

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/BalanceSumService .cs

@ -25,6 +25,8 @@ using Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report;
namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
{ {
public class BalanceSumService : BASE_SERVICE, ITransientDependency, IExportJob public class BalanceSumService : BASE_SERVICE, ITransientDependency, IExportJob
{ {

13
code/src/Modules/SettleAccount/src/SettleAccount.Application/Reports/ReportServices/ReportMakeService.cs

@ -22,6 +22,9 @@ using Win.Sfs.SettleAccount.Reports.ReportRequestDto;
namespace Win.Sfs.SettleAccount.Reports.ReportServices namespace Win.Sfs.SettleAccount.Reports.ReportServices
{ {
[AllowAnonymous] [AllowAnonymous]
[Route("api/settleaccount/[controller]/[action]")] [Route("api/settleaccount/[controller]/[action]")]
@ -57,12 +60,12 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
/// <param name="input"></param> /// <param name="input"></param>
/// <returns></returns> /// <returns></returns>
public async Task<string> GetBalanceSum([FromBody] string p_year) public async Task<string> GetBalanceSum(BalanceSumVersionDto p_dto)
{ {
List<CustomCondition> customConditionList = new List<CustomCondition>(); List<CustomCondition> customConditionList = new List<CustomCondition>();
customConditionList.Add(new CustomCondition() { Name = "Year", Value = p_year ?? DateTime.Now.Year.ToString() }); customConditionList.Add(new CustomCondition() { Name = "Year", Value =p_dto.Version ?? DateTime.Now.Year.ToString() });
var _taskid = await _service.ExportEnqueueAsync("生成库存余额", ExportExtentsion.Excel, p_year, string.Empty, CurrentUser, typeof(BalanceSumService), customConditionList, (rs) => var _taskid = await _service.ExportEnqueueAsync("生成库存余额", ExportExtentsion.Excel, p_dto.Version, string.Empty, CurrentUser, typeof(BalanceSumService), customConditionList, (rs) =>
{ {
}).ConfigureAwait(false); }).ConfigureAwait(false);
@ -72,5 +75,9 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
}
public class BalanceSumVersionDto
{
public string Version { set; get; }
} }
} }

Loading…
Cancel
Save