From a0d2f70a2578ad8160bf4c9b983bf6b40c0f4f77 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周一, 26 8月 2024 13:32:22 +0800 Subject: [PATCH] 2 --- iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs b/iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs index 7aed2ca..8d5a7b4 100644 --- a/iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs +++ b/iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs @@ -9,6 +9,7 @@ using Furion.DynamicApiController; using System.Text; using iWare.Wms.Core.Enum; +using Microsoft.AspNetCore.Authorization; namespace iWare.Wms.Application.Service.Pda { @@ -18,6 +19,7 @@ //[Route("api")] [ApiDescriptionSettings("Pda鐩稿叧鎺ュ彛", Name = "PdaService", Order = 100)] [Route("api/[Controller]")] + [DisableOpLog] public class PdaService : IDynamicApiController, ITransient { private readonly IRepository<EquipmentBaseInfo, MasterDbContextLocator> _equipmentBaseInfoRep; @@ -221,6 +223,7 @@ /// <param name="input"></param> /// <returns></returns> [HttpGet("getWorkPieceProcess")] + [DisableOpLog] public async Task<WorkPieceProcessPdaOutput> getWorkPieceProcess([FromQuery] WorkPieceProcessPdaSearch input) { var workPieceProcesss = await _workPieceProcessRep.DetachedEntities @@ -411,12 +414,18 @@ /// </summary> /// <returns></returns> [HttpGet("getWorkPieceByOP80NewCode")] + [DisableOpLog] + [AllowAnonymous] public async Task<WorkPieceInfoOutput> getWorkPieceByOP80NewCode([FromQuery] WorkPieceByOP80NewCodeInputSearch input) { if (string.IsNullOrEmpty(input.OP80NewCode)) { - throw Oops.Oh($"璇疯緭鍏P80鎵撳嵃鎴愬搧鐮佹垨浜岀淮鐮侊紒"); + throw Oops.Oh($"璇疯緭鍏ユ垚鍝佺爜鎴栧伐浠剁爜锛�"); + } + if (input.OP80NewCode.Length > 22) + { + throw Oops.Oh($"宸ヤ欢鐮佹垨鎴愬搧鐮亄input.OP80NewCode}闀垮害涓嶆纭紒"); } string OP80NewCode = input.OP80NewCode.Trim(); var workPieceInfo = await _workPieceInfoRep.DetachedEntities @@ -466,6 +475,7 @@ /// <param name="input"></param> /// <returns></returns> [HttpPost("outBoundWorkPiece")] + [DisableOpLog] [UnitOfWork] public async Task<string> outBoundWorkPiece([FromBody] OutBoundInput input) { @@ -532,6 +542,7 @@ /// <param name="input"></param> /// <returns></returns> [HttpPost("getOutBoundWorkPieceInfoCount")] + [DisableOpLog] public async Task<string> GetOutBoundWorkPieceInfoCount() { DateTimeOffset now = DateTimeOffset.Now; // 鑾峰彇褰撳墠鏃堕棿锛屽寘鎷椂鍖哄亸绉婚噺 -- Gitblit v1.9.3