From e3ae7f17842fe7de358ced5398ef792a961f80eb Mon Sep 17 00:00:00 2001 From: 沈泽 <211959439@qq.com> Date: 星期五, 20 八月 2021 15:33:54 +0800 Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API --- DBUtility/业务单据/ClsXt_BaseBill.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git "a/DBUtility/\344\270\232\345\212\241\345\215\225\346\215\256/ClsXt_BaseBill.cs" "b/DBUtility/\344\270\232\345\212\241\345\215\225\346\215\256/ClsXt_BaseBill.cs" index 53b2ee58..fb13b4e 100644 --- "a/DBUtility/\344\270\232\345\212\241\345\215\225\346\215\256/ClsXt_BaseBill.cs" +++ "b/DBUtility/\344\270\232\345\212\241\345\215\225\346\215\256/ClsXt_BaseBill.cs" @@ -463,9 +463,10 @@ //鍗曟嵁鍙锋槸鍚﹂噸澶� public virtual bool IsExistBillNo(ref string sReturn, string sBillNo, ClsPub.Enum_BillStatus oBillStatus, Int64 lngBillKey) { + string sSql = ""; try { - string sSql = ""; + if (oBillStatus == ClsPub.Enum_BillStatus.BillStatus_AddNew) { sSql = "Select HInterID from " + MvarItemKey + " where hbilltype='" + BillType + "'and HBillNO ='" + sBillNo + "'"; @@ -486,8 +487,8 @@ } catch (Exception e) { - sReturn = e.Message; - throw (e); + sReturn = e.Message+"sql:"+ sSql; + return false; } } #endregion -- Gitblit v1.9.1