|
|
@ -22,6 +22,9 @@ using Win.Sfs.SettleAccount.Reports.ReportRequestDto; |
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount.Reports.ReportServices |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[AllowAnonymous] |
|
|
|
|
|
|
|
[Route("api/settleaccount/[controller]/[action]")]
|
|
|
@ -57,12 +60,12 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices |
|
|
|
/// <param name="input"></param>
|
|
|
|
/// <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>(); |
|
|
|
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); |
|
|
@ -72,5 +75,9 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
public class BalanceSumVersionDto |
|
|
|
{ |
|
|
|
public string Version { set; get; } |
|
|
|
} |
|
|
|
} |
|
|
|