From a62da2064bc1bab8d9a91e249fa286d4abae6922 Mon Sep 17 00:00:00 2001
From: zgq <519541279@qq.com>
Date: 星期五, 22 一月 2021 11:32:09 +0800
Subject: [PATCH] 工序流转卡列表增加异常打印

---
 WebAPI/Controllers/LMESController.cs |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/WebAPI/Controllers/LMESController.cs b/WebAPI/Controllers/LMESController.cs
index 698ffe6..0b1a8f1 100644
--- a/WebAPI/Controllers/LMESController.cs
+++ b/WebAPI/Controllers/LMESController.cs
@@ -73,7 +73,11 @@
             }
             catch (Exception e)
             {
-                ds = null;
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
             }
             return GetObjectJson(ds);
         }
@@ -97,7 +101,11 @@
             }
             catch (Exception e)
             {
-                ds = null;
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
             }
             return GetObjectJson(ds);
         }

--
Gitblit v1.9.1