From 4d5d67a1559e3ecd3ab1a7f616f16288edcaf943 Mon Sep 17 00:00:00 2001 From: wtt <1985833171@qq.com> Date: 星期五, 27 六月 2025 15:32:10 +0800 Subject: [PATCH] 异常工时单钉钉导入按钮添加系统参数判定 --- WebAPI/Controllers/数据同步/钉钉同步/DD_DataSynchronizationController.cs | 43 +++++++++++++++++++++++++++++++++---------- 1 files changed, 33 insertions(+), 10 deletions(-) diff --git "a/WebAPI/Controllers/\346\225\260\346\215\256\345\220\214\346\255\245/\351\222\211\351\222\211\345\220\214\346\255\245/DD_DataSynchronizationController.cs" "b/WebAPI/Controllers/\346\225\260\346\215\256\345\220\214\346\255\245/\351\222\211\351\222\211\345\220\214\346\255\245/DD_DataSynchronizationController.cs" index 029323d..0a8f010 100644 --- "a/WebAPI/Controllers/\346\225\260\346\215\256\345\220\214\346\255\245/\351\222\211\351\222\211\345\220\214\346\255\245/DD_DataSynchronizationController.cs" +++ "b/WebAPI/Controllers/\346\225\260\346\215\256\345\220\214\346\255\245/\351\222\211\351\222\211\345\220\214\346\255\245/DD_DataSynchronizationController.cs" @@ -3609,20 +3609,43 @@ string msg = ""; try { - if (getData_ErrWorkTimesRequest(startTime, endTime, ref msg) == false) + string sErrMsg = ""; + if (oSystemParameter.ShowBill(ref sErrMsg) == true) { - objJsonResult.code = "0"; - objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + msg; + if ( oSystemParameter.omodel.WMS_CampanyName == "娣诲悍绉戞妧") //绯荤粺鍙傛暟 瀹㈡埛瀹氬埗鍖栧悕绉� 绌虹櫧涓洪�氱敤 + { + //娣诲悍涓撶敤 + if (getData_ErrWorkTimesRequest(startTime, endTime, ref msg) == false) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + msg; + objJsonResult.data = null; + return objJsonResult; + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "瀹㈡埛閿欒"; + objJsonResult.data = null; + return objJsonResult; + } + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess"; objJsonResult.data = null; return objJsonResult; } - - objJsonResult.code = "1"; - objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; - objJsonResult.data = null; - return objJsonResult; + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鑾峰彇绯荤粺鍙傛暟澶辫触锛� " + sErrMsg; + objJsonResult.data = null; + return objJsonResult; + } } catch (Exception e) { -- Gitblit v1.9.1