From e4f1a927520a98fbc69dd63ef982dd890ba4fbdc Mon Sep 17 00:00:00 2001 From: chenhaozhe <cgz@hz-kingdee.com> Date: 星期四, 03 七月 2025 11:14:26 +0800 Subject: [PATCH] 合并分支 --- WebAPI/Controllers/SCGL/日计划管理/JIT_DayPlanPlatFormImportController.cs | 37 ++++++++++++++++++++++++++++++------- 1 files changed, 30 insertions(+), 7 deletions(-) diff --git "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs" "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs" index cd06e20..b5249f2 100644 --- "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs" +++ "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs" @@ -111,7 +111,7 @@ //鏌ヨ鐢熶骇璁㈠崟琛ㄥ垽鏂湁娌℃湁鐢熶骇璁㈠崟淇℃伅 for (int i = 0; i < tb2.Rows.Count; i++) { - tb2.Rows[i]["HVersion_Import"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); + tb2.Rows[i]["HVersion_Import"] = DateTime.Now.ToString("yyyy-MM-dd HH"); if (tb2.Rows[i]["缁勭粐缂栫爜*"].ToString() == "") @@ -614,9 +614,21 @@ objJsonResult.data = null; return objJsonResult; } - //鏌ユ壘鏄惁瀛樺湪瀵瑰簲鐢熶骇璁㈠崟 - string sql1 = string.Format("select * from h_v_IF_ICMOBillList where 瀹㈡埛璁㈠崟鍙�='{0}' and 浜у搧浠g爜='{1}' and 鐘舵�� in ('璁″垝纭','寮�宸�')", - tb2.Rows[i]["瀹㈡埛璁㈠崟鍙�"].ToString(), tb2.Rows[i]["鐗╂枡缂栫爜"].ToString()); + string sql1 = ""; + //鏄庣粏琛屽彿涓虹┖涓嶈�冭檻 + if (tb2.Rows[i]["鏄庣粏琛屽彿"].ToString() == "") + { + //鏌ユ壘鏄惁瀛樺湪瀵瑰簲鐢熶骇璁㈠崟 + sql1 = string.Format("select * from h_v_IF_ICMOBillList where 瀹㈡埛璁㈠崟鍙�='{0}' and 浜у搧浠g爜='{1}' and 鐘舵�� in ('璁″垝纭','寮�宸�')", + tb2.Rows[i]["瀹㈡埛璁㈠崟鍙�"].ToString(), tb2.Rows[i]["鐗╂枡缂栫爜"].ToString()); + } + else + { + //鏌ユ壘鏄惁瀛樺湪瀵瑰簲鐢熶骇璁㈠崟 + sql1 = string.Format("select * from h_v_IF_ICMOBillList where 瀹㈡埛璁㈠崟鍙�='{0}' and 浜у搧浠g爜='{1}' and 鐘舵�� in ('璁″垝纭','寮�宸�') and 鏄庣粏琛屽彿 = '{2}'", + tb2.Rows[i]["瀹㈡埛璁㈠崟鍙�"].ToString(), tb2.Rows[i]["鐗╂枡缂栫爜"].ToString(),tb2.Rows[i]["鏄庣粏琛屽彿"].ToString()); + } + ds = oCN.RunProcReturn(sql1, "h_v_IF_ICMOBillList"); if (ds.Tables[0].Rows.Count == 0) @@ -917,9 +929,20 @@ } } - //鏌ユ壘鏄惁瀛樺湪瀵瑰簲鐢熶骇璁㈠崟 - string sql1 = string.Format("select * from h_v_IF_ICMOBillList where 瀹㈡埛璁㈠崟鍙�='{0}' and 浜у搧浠g爜='{1}' and 鐘舵�� in ('璁″垝纭','寮�宸�')", - tb2.Rows[i]["瀹㈡埛璁㈠崟鍙�"].ToString(), tb2.Rows[i]["鐗╂枡缂栫爜"].ToString()); + string sql1 = ""; + //鏄庣粏琛屽彿涓虹┖涓嶈�冭檻 + if (tb2.Rows[i]["鏄庣粏琛屽彿"].ToString() == "") + { + //鏌ユ壘鏄惁瀛樺湪瀵瑰簲鐢熶骇璁㈠崟 + sql1 = string.Format("select * from h_v_IF_ICMOBillList where 瀹㈡埛璁㈠崟鍙�='{0}' and 浜у搧浠g爜='{1}' and 鐘舵�� in ('璁″垝纭','寮�宸�')", + tb2.Rows[i]["瀹㈡埛璁㈠崟鍙�"].ToString(), tb2.Rows[i]["鐗╂枡缂栫爜"].ToString()); + } + else + { + //鏌ユ壘鏄惁瀛樺湪瀵瑰簲鐢熶骇璁㈠崟 + sql1 = string.Format("select * from h_v_IF_ICMOBillList where 瀹㈡埛璁㈠崟鍙�='{0}' and 浜у搧浠g爜='{1}' and 鐘舵�� in ('璁″垝纭','寮�宸�') and 鏄庣粏琛屽彿 = '{2}'", + tb2.Rows[i]["瀹㈡埛璁㈠崟鍙�"].ToString(), tb2.Rows[i]["鐗╂枡缂栫爜"].ToString(), tb2.Rows[i]["鏄庣粏琛屽彿"].ToString()); + } ds = oCN.RunProcReturn(sql1, "h_v_IF_ICMOBillList"); if (ds.Tables[0].Rows.Count == 0) -- Gitblit v1.9.1