From 1b964724352218679cc44862e3e67452e8f6deda Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期三, 25 二月 2026 09:58:11 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/基础资料/基础资料/Gy_MatePriceController.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MatePriceController.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MatePriceController.cs"
index c781a75..abe0eef 100644
--- "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MatePriceController.cs"
+++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MatePriceController.cs"
@@ -208,6 +208,8 @@
                 if (oBill.oModel.HItemID == 0)
                 {
                     bResult = oBill.AddNew();
+                    DataSet Maxds = oCN.RunProcReturn("select MAX(HItemID) from Gy_MaterPrice" , "Gy_MaterPrice");
+                    oBill.oModel.HItemID = Convert.ToInt64(Maxds.Tables[0].Rows[0][0]);
                 }
                 else
                 {
@@ -228,7 +230,7 @@
                     objJsonResult.code = "1";
                     objJsonResult.count = 1;
                     objJsonResult.Message = "淇濆瓨鎴愬姛锛�";
-                    objJsonResult.data = 1;
+                    objJsonResult.data = oBill.oModel.HItemID;
                     return objJsonResult;
                 }
                 else

--
Gitblit v1.9.1