Browse Source

[fix]bug修复

master
rongguo.jia 2 years ago
parent
commit
67f9dd314d
  1. 2
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/AsnBackgroundWorker/AsnBackgroundWorker.cs
  2. 2
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Asns/IX12AsnAppService.cs
  3. 5
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/X12AsnAppService.cs

2
WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/AsnBackgroundWorker/AsnBackgroundWorker.cs

@ -141,7 +141,7 @@ namespace Win_in.Sfs.Scp.WebApi
UID = asn.Id,
Company = asn.Site,
Site = asn.Site,
AsnNbr = asn.AskBillNum,
AsnNbr = asn.AsnBillNum,
RpNbr = asn.AskBillNum,
PoNbr = asn.PoBillNum,
VendorCode = asn.VendId,

2
WebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Asns/IX12AsnAppService.cs

@ -30,7 +30,7 @@ namespace Win_in.Sfs.Scp.WebApi
Task<ActionResult<X12AsnDTO>> GetAsync(string site, string number);
Task<ActionResult<X12AsnDTO>> UpdateStatusAsync(string site, string number, EnumExchangeDataStatus status);
Task<ActionResult<X12AsnDTO>> UpdateStatusAsync(string site, string number,string dataType, EnumExchangeDataStatus status);
}

5
WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/X12AsnAppService.cs

@ -382,6 +382,7 @@ namespace Win_in.Sfs.Scp.WebApi
/// </summary>
/// <param name="site">地点(Site)</param>
/// <param name="number">单据编号(Asn number)</param>
/// <param name="dataType">数据类型(data type:"ASN","NoPoASN"</param>
/// <param name="status">状态(Status)
/// 0: 新增(new)
/// 1: 处理中(Processing)
@ -393,7 +394,7 @@ namespace Win_in.Sfs.Scp.WebApi
/// <exception cref="BadHttpRequestException"></exception>
[HttpPost]
[Route("update-status")]
public async Task<ActionResult<X12AsnDTO>> UpdateStatusAsync(string site, string number, EnumExchangeDataStatus status)
public async Task<ActionResult<X12AsnDTO>> UpdateStatusAsync(string site, string number,string dataType, EnumExchangeDataStatus status)
{
X12Asn entity;
try
@ -401,7 +402,7 @@ namespace Win_in.Sfs.Scp.WebApi
Validator.CheckSite(_tenantRepository, site);
entity = await _x12AsnRepository.FirstOrDefaultAsync(p => p.Site == site && p.BillNum == number);
entity = await _x12AsnRepository.FirstOrDefaultAsync(p => p.Site == site &&p.DataType ==dataType && p.BillNum == number);
if (entity == null)
{

Loading…
Cancel
Save