From 1a94e0e270668ef1cfbcd5043b72bc6591a50706 Mon Sep 17 00:00:00 2001 From: llj <132905093+newwwwwwtree@users.noreply.github.com> Date: 星期四, 07 八月 2025 15:18:46 +0800 Subject: [PATCH] 价目表新增审核按钮无效修理bug --- WebAPI/DLL/ClsGy_Material_Ctl.cs | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/WebAPI/DLL/ClsGy_Material_Ctl.cs b/WebAPI/DLL/ClsGy_Material_Ctl.cs index a150dc8..17640f7 100644 --- a/WebAPI/DLL/ClsGy_Material_Ctl.cs +++ b/WebAPI/DLL/ClsGy_Material_Ctl.cs @@ -285,19 +285,24 @@ return true; } - public bool ModifyByIDListDynamic(string HItemID_List, string paramStr) + public bool ModifyByIDListDynamic(string HItemID_List, string paramStr, List<Models.ClsGy_Material_Model> models) { var sql = "Update " + MvarItemKey + " set "; sql += paramStr; sql += (" Where HItemID in " + HItemID_List); - + // 杈撳嚭 淇敼璇彞鍒版棩蹇楁枃浠� + LogService.Write("Update: " + sql); oCn.BeginTran(); oCn.RunProc(sql, ref DBUtility.ClsPub.sExeReturnInfo); - //淇敼瀛愰」鐩唬鐮� - oCn.RunProc("exec h_p_Gy_UpdateNumber '" + MvarItemKey + "','" + oModel.HNumber + ".','" + this.HOldNumber + ".'", ref DBUtility.ClsPub.sExeReturnInfo); - //灏嗕笂绾� 涓洪潪鏈骇 - oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + oModel.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); - // + foreach (var model in models) + { + // 杈撳嚭 淇敼鍓嶅璞� 鍒� 鏃ュ織鏂囦欢 + LogService.Write(model); + //淇敼瀛愰」鐩唬鐮� + oCn.RunProc("exec h_p_Gy_UpdateNumber '" + MvarItemKey + "','" + model.HNumber + ".','" + this.HOldNumber + ".'", ref DBUtility.ClsPub.sExeReturnInfo); + //灏嗕笂绾� 涓洪潪鏈骇 + oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + model.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); + } oCn.Commit(); return true; } -- Gitblit v1.9.1