From d55f54d42fa504d5fc4c5e275e63dd5cc8b5a48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E8=8D=A3=E5=9B=BD?= Date: Fri, 20 May 2022 15:30:19 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Asns/X12AsnAppService.cs | 59 +++++++++++++++++-- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/X12AsnAppService.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/X12AsnAppService.cs index 0f3bb33..1e14d21 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/X12AsnAppService.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/X12AsnAppService.cs @@ -30,7 +30,7 @@ using System.Security.Cryptography; namespace Win_in.Sfs.Scp.WebApi { /// - /// 零件服务 + /// ASN服务(X12Asn Service) /// [Authorize] [Route(RouteConsts.X12Asn)] @@ -48,7 +48,7 @@ namespace Win_in.Sfs.Scp.WebApi } /// - /// 按ID获取零件 (Get X12Asn by ID) + /// 按ID获取ASN (Get X12Asn by ID) /// /// 唯一ID(unique ID) /// @@ -62,7 +62,7 @@ namespace Win_in.Sfs.Scp.WebApi /// - /// 按条件获取零件列表 (Get X12Asn list by request condition) + /// 按条件获取ASN分页列表 (Get X12Asn paged list by request condition) /// /// 请求条件DTO(Request condition DTO) /// @@ -73,6 +73,13 @@ namespace Win_in.Sfs.Scp.WebApi return await base.GetListAsync(requestDTO); } + /// + /// 获取未读ASN列表(Get unread X12Asn list) + /// + /// 地点(Site) + /// 数量(Count) + /// 是否自动更新状态(Auto update data status to finish) + /// [HttpGet] [Route("unread-list")] public async Task> GetUnreadListAsync(string site, int count, bool autoUpdateStatus) @@ -86,7 +93,14 @@ namespace Win_in.Sfs.Scp.WebApi } - + /// + /// 根据UID范围获取ASN列表(Get X12Asn list by UID range) + /// + /// 地点(Site) + /// 开始UID(Begin UID) + /// 结束UID(End UID) + /// + /// [HttpGet] [Route("between-id")] public async Task> GetListAsync(string site, long beginUid, long endUid) @@ -103,7 +117,14 @@ namespace Win_in.Sfs.Scp.WebApi return dtos; } - + /// + /// 根据日期范围获取ASN列表(Get X12Asn list by date range) + /// + /// 地点(Site) + /// 开始日期(Begin date) + /// 结束日期(End date) + /// + /// [HttpGet] [Route("between-date")] public async Task> GetListAsync(string site, DateTime beginDate, DateTime endDate) @@ -120,6 +141,13 @@ namespace Win_in.Sfs.Scp.WebApi return dtos; } + /// + /// 根据UID获取ASN(Get X12Asn by UID) + /// + /// 地点(Site) + /// UID(UID) + /// + /// [HttpGet] [Route("by-id")] public async Task GetAsync(string site, long uid) @@ -136,6 +164,13 @@ namespace Win_in.Sfs.Scp.WebApi return dto; } + /// + /// 根据单据编号获取ANS(Get X12Asn by asn number) + /// + /// 地点(Site) + /// 单据编号(Asn number) + /// + /// [HttpGet] [Route("by-number")] public async Task GetAsync(string site, string number) @@ -153,6 +188,20 @@ namespace Win_in.Sfs.Scp.WebApi } + /// + /// 根据单据编号更新ASN状态(Update X12Asn Status by asn number) + /// + /// 地点(Site) + /// 单据编号(Asn number) + /// 状态(Status) + /// 0: 新增(new) + /// 1: 处理中(Processing) + /// 2: 完成(Finish) + /// 9: 搁置(Hold) + /// -1: 错误(Error) + /// + /// + /// [HttpPost] [Route("update-status")] public async Task UpdateStatusAsync(string site, string number, EnumExchangeDataStatus status)