From 5466e02176f2acf2f08ef1c16315c3185bae903f Mon Sep 17 00:00:00 2001 From: wtt <1985833171@qq.com> Date: 星期一, 19 五月 2025 15:53:34 +0800 Subject: [PATCH] 异常反馈单,快捷开工接口调整 --- WebAPI/Controllers/SCGL/Sc_MESEndWorkBillController.cs | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/SCGL/Sc_MESEndWorkBillController.cs b/WebAPI/Controllers/SCGL/Sc_MESEndWorkBillController.cs index bfe1069..bd5c944 100644 --- a/WebAPI/Controllers/SCGL/Sc_MESEndWorkBillController.cs +++ b/WebAPI/Controllers/SCGL/Sc_MESEndWorkBillController.cs @@ -697,6 +697,15 @@ { bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + if(!bResult) + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛�" + DBUtility.ClsPub.sExeReturnInfo; + objJsonResult.data = 1; + return objJsonResult; + } } ds = oCN.RunProcReturn("select * from Sc_MESEndWorkBillMain where HBillNo='" + oBill.omodel.HBillNo + "'", "Sc_MESEndWorkBillMain"); -- Gitblit v1.9.1