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