Browse Source

提交代码更新

zhangkun 5 years ago
parent
commit
1eba95fde8

+ 25 - 13
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/His/GetController.cs

@@ -44,14 +44,14 @@ namespace CallCenterApi.Interface.Controllers.His
44 44
             catch (Exception ex)
45 45
             {
46 46
                 string aa = ex.Message;
47
-                return "-"+ret;
47
+                return ret + "-----------</br>"+ aa;
48 48
             }
49 49
             return ret;
50 50
 
51 51
         }
52 52
 
53 53
         [HttpGet]
54
-        public int Data1(int id)
54
+        public string Data1(int id)
55 55
         {
56 56
             int ret = 0;
57 57
             if (id > 1000)
@@ -70,13 +70,14 @@ namespace CallCenterApi.Interface.Controllers.His
70 70
             }
71 71
             catch(Exception ex) {
72 72
                 string aa = ex.Message;
73
-                return -ret; }
74
-            return ret;
73
+                return ret + "-----------</br>" + aa;
74
+            }
75
+            return ret.ToString();
75 76
 
76 77
         }
77 78
 
78 79
         [HttpGet]
79
-        public int Data2(int id)
80
+        public string Data2(int id)
80 81
         {
81 82
             int ret = 0;
82 83
             if (id > 1000)
@@ -93,13 +94,16 @@ namespace CallCenterApi.Interface.Controllers.His
93 94
                     ret = ret + busSF_SHOUSHUXX.AddAll(modelList);
94 95
                 }
95 96
             }
96
-            catch { return -ret; }
97
-            return ret;
97
+            catch (Exception ex) {
98
+                string aa = ex.Message;
99
+                return ret + "-----------</br>" + aa;
100
+            }
101
+            return ret.ToString();
98 102
 
99 103
         }
100 104
 
101 105
         [HttpGet]
102
-        public int Data3(int id)
106
+        public string Data3(int id)
103 107
         {
104 108
             int ret = 0;
105 109
             if (id > 1000)
@@ -116,13 +120,17 @@ namespace CallCenterApi.Interface.Controllers.His
116 120
                     ret = ret + busSF_YIHUXX.AddAll(modelList);
117 121
                 }
118 122
             }
119
-            catch { return -ret; }
120
-            return ret;
123
+            catch (Exception ex)
124
+            {
125
+                string aa = ex.Message;
126
+                return ret + "-----------</br>" + aa;
127
+            }
128
+            return ret.ToString();
121 129
 
122 130
         }
123 131
 
124 132
         [HttpGet]
125
-        public int Data4(int id)
133
+        public string Data4(int id)
126 134
         {
127 135
             int ret = 0;
128 136
             if (id > 1000)
@@ -139,8 +147,12 @@ namespace CallCenterApi.Interface.Controllers.His
139 147
                     ret = ret + busSF_ZHENDUAN.AddAll(modelList);
140 148
                 }
141 149
             }
142
-            catch { return -ret; }
143
-            return ret;
150
+            catch (Exception ex)
151
+            {
152
+                string aa = ex.Message;
153
+                return ret + "-----------</br>" + aa;
154
+            }
155
+            return ret.ToString();
144 156
 
145 157
         }
146 158
         /// <summary>

+ 6 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/MedicalFollowup/FollowUpController.cs

@@ -43,7 +43,7 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
43 43
             DataTable dt = new DataTable();
44 44
 
45 45
             string dischargedept = HttpUtility.UrlDecode(RequestString.GetQueryString("dischargedept"));//出院科室
46
-            string strstate = "0";// HttpUtility.UrlDecode(RequestString.GetQueryString("state"));//状态
46
+            string strstate =  HttpUtility.UrlDecode(RequestString.GetQueryString("state"));//状态
47 47
             string strcode = HttpUtility.UrlDecode(RequestString.GetQueryString("code"));//病案号
48 48
             string stropename = HttpUtility.UrlDecode(RequestString.GetQueryString("opename"));//手术名称
49 49
             //来电号码
@@ -88,7 +88,11 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
88 88
                 {
89 89
                     sql += " and T4.F_Id IS  NULL ";
90 90
                 }
91
-               
91
+
92
+            }
93
+            else
94
+            {
95
+                sql += " and T4.F_Id IS  NULL ";
92 96
             }
93 97
             if (strcode.Trim() != "" && strcode != "undefined")
94 98
             {