From c66c25cb7b1eec1d3b3de4496525dffe9a3c4040 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周日, 18 8月 2024 10:27:37 +0800
Subject: [PATCH] 1

---
 iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs |   11 ++++++++++-
 1 files changed, 10 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..a9919ec 100644
--- a/iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs
+++ b/iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs
@@ -18,6 +18,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 +222,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 +413,17 @@
         /// </summary>
         /// <returns></returns>
         [HttpGet("getWorkPieceByOP80NewCode")]
+        [DisableOpLog]
         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 +473,7 @@
         /// <param name="input"></param>
         /// <returns></returns>
         [HttpPost("outBoundWorkPiece")]
+        [DisableOpLog]
         [UnitOfWork]
         public async Task<string> outBoundWorkPiece([FromBody] OutBoundInput input)
         {
@@ -532,6 +540,7 @@
         /// <param name="input"></param>
         /// <returns></returns>
         [HttpPost("getOutBoundWorkPieceInfoCount")]
+        [DisableOpLog]
         public async Task<string> GetOutBoundWorkPieceInfoCount()
         {
             DateTimeOffset now = DateTimeOffset.Now; // 鑾峰彇褰撳墠鏃堕棿锛屽寘鎷椂鍖哄亸绉婚噺

--
Gitblit v1.9.3