Browse Source

更新

FoShanPG
Administrator 3 years ago
parent
commit
738c39ea5f
  1. 3
      src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Wms/WmsDetailReportDto.cs
  2. 10
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs

3
src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Wms/WmsDetailReportDto.cs

@ -55,6 +55,9 @@ namespace Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput
[Display(Name = "状态")] [Display(Name = "状态")]
public int State { set; get; } public int State { set; get; }
[Display(Name = "过账日期")]
public DateTime AccountDate { set; get; }
} }

10
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs

@ -63,7 +63,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
[HttpGet] [HttpGet]
[Route("Make")] [Route("Make")]
[UnitOfWork(false)] [UnitOfWork(false)]
public async Task<string> ReportMake(string version,DateTime accountDate) public async Task<string> ReportMake(string version)
{ {
var _ls= _dapper.GetWmsSumExtendList(version);//报表 var _ls= _dapper.GetWmsSumExtendList(version);//报表
@ -106,7 +106,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
String.Empty, String.Empty,
0, 0,
version, version,
accountDate DateTime.MaxValue
)); ));
} }
} }
@ -167,9 +167,9 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
var _entity = entities.FirstOrDefault(); var _entity = entities.FirstOrDefault();
if (_entity != null) if (_entity != null)
{ {
var _version = _entity.Version; var _version = input.Version;
var _accountDate = _entity.AccountDate; var _accountDate = input.AccountDate;
_erpDapper.InsertWmsSum(_ls, _version, _accountDate); _erpDapper.InsertWmsSum(entities, _version, _accountDate);
} }
} }
return true; return true;

Loading…
Cancel
Save