From dfca3050e9d0cb62bf7ed68a827a4d55ad13a7ea Mon Sep 17 00:00:00 2001
From: cnf <3283105747@qq.com>
Date: 星期三, 26 十一月 2025 14:39:09 +0800
Subject: [PATCH] 自动打印优化

---
 WebApi/Gs.BaseInfo/Services/PrintAutoManager.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/WebApi/Gs.BaseInfo/Services/PrintAutoManager.cs b/WebApi/Gs.BaseInfo/Services/PrintAutoManager.cs
index e7d3e72..d88d171 100644
--- a/WebApi/Gs.BaseInfo/Services/PrintAutoManager.cs
+++ b/WebApi/Gs.BaseInfo/Services/PrintAutoManager.cs
@@ -95,6 +95,8 @@
         public ReturnDto<string> EditModel([FromBody] dynamic model)
         {
             Guid? guid = model.guid; //涓婚敭
+            string printStatus = model.printStatus;
+            string printLastMsg = model.printLastMsg;
             var _outMsg = "";
             var _outSum = -1;
             using (var conn = new SqlConnection(DbHelperSQL.strConn))
@@ -108,15 +110,18 @@
                         SqlParameter[] parameters =
                         {
                            new("@inGuid", UtilityHelper.CheckGuid(guid) ? guid: DBNull.Value),
+                           new("@printStatus", printStatus),
+                           new("@printLastMsg", printLastMsg),
                         };
                         foreach (var parameter in parameters)
                             cmd.Parameters.Add(parameter);
                         _outSum = cmd.ExecuteNonQuery();
+                        _outMsg = "澶勭悊鎴愬姛锛�";
                     }
                     catch (Exception ex)
                     {
-                        LogHelper.Debug(ToString(),
-                            "prc_print_rtn error锛�" + ex.Message);
+                        _outMsg = ex.Message;
+                        LogHelper.Debug(ToString(), "prc_print_rtn error锛�" + ex.Message);
                     }
                     finally
                     {

--
Gitblit v1.9.3