From 0aa54059b26e6641196e9953490dd18616e916e3 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 10 九月 2025 17:26:47 +0800
Subject: [PATCH] 精简修正代码

---
 service/Warehouse/MesCprkManager.cs |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/service/Warehouse/MesCprkManager.cs b/service/Warehouse/MesCprkManager.cs
index f6b7b34..731906d 100644
--- a/service/Warehouse/MesCprkManager.cs
+++ b/service/Warehouse/MesCprkManager.cs
@@ -4,8 +4,7 @@
 using NewPdaSqlServer.DB;
 using NewPdaSqlServer.Dto.service;
 using NewPdaSqlServer.entity;
-using SqlSugar;
-using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
+using NewPdaSqlServer.util;
 
 namespace NewPdaSqlServer.service.Warehouse;
 
@@ -32,7 +31,8 @@
         using (var conn = new SqlConnection(DbHelperSQL.strConn))
         {
             if (unity.userName.IsNullOrEmpty()) throw new Exception("鐢ㄦ埛鍚嶄笉鍏佽涓虹┖");
-            if (unity.sectionCode.IsNullOrEmpty()) throw new Exception("搴撲綅缂栧彿涓嶅厑璁镐负绌�");
+            if (unity.sectionCode.IsNullOrEmpty())
+                throw new Exception("搴撲綅缂栧彿涓嶅厑璁镐负绌�");
             if (unity.barcode.IsNullOrEmpty()) throw new Exception("鏉$爜涓嶅厑璁镐负绌�");
 
             using (var cmd = new SqlCommand("[prc_pda_inv_cprk]", conn))
@@ -48,8 +48,7 @@
                         new("@po_womInBarSum", SqlDbType.NVarChar, 300),
                         new("@pi_user", unity.userName),
                         new("@pi_barcode", unity.barcode),
-                        new("@pi_sectionCode", unity.sectionCode),
-
+                        new("@pi_sectionCode", unity.sectionCode)
                     };
                     parameters[0].Direction = ParameterDirection.Output;
                     parameters[1].Direction = ParameterDirection.Output;
@@ -67,7 +66,6 @@
                     return _strMsg;
 
                     //return 0;
-
                 }
                 catch (Exception ex)
                 {

--
Gitblit v1.9.3