From c458756a980251836d2be2b1abdfd1d34c733bdc Mon Sep 17 00:00:00 2001 From: YL <YL@LAPTOP-SE03PLUR> Date: 星期四, 19 八月 2021 18:39:55 +0800 Subject: [PATCH] 报工台优化产量汇报反审核、web质检方案列表 --- 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