Procházet zdrojové kódy

1、随访完成 正常接通','拒访','不是本人','停机','空号','免回访')。未完成:无人接听' OR t4.F_Result='关机';
/2、出院科室 和入院科室 in 心胸外科','肿瘤科','肾病内科','感染性疾病科' 不显示在患者随访中
3.随访完成 按随访时间倒序排序
4.获取病例信息 dal参数

liyuanyuan %!s(int64=4) %!d(string=před) roky
rodič
revize
7c8375afd1

+ 14 - 7
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/MedicalFollowup/FollowUpController.cs

@@ -87,15 +87,15 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
87 87
             {
88 88
                 if (strstate == "2")
89 89
                 {
90
-                    sql += " and T4.F_Id IS NOT NULL and T4.F_Result='正常接通'";
90
+                    sql += " and T4.F_Id IS NOT NULL and T4.F_Result in ('正常接通','拒访','不是本人','停机','空号','免回访')";
91 91
                 }
92 92
                 else if (strstate == "1")
93 93
                 {
94
-                    sql += " and T4.F_Id IS  NULL ";
94
+                    sql += " and T4.F_Id IS  NULL  AND T1.CYKS NOT IN ('心胸外科','肿瘤科','肾病内科','感染性疾病科') AND T1.RYKS NOT IN ('心胸外科','肿瘤科','肾病内科','感染性疾病科') ";
95 95
                 }
96 96
                 else if (strstate == "3")
97 97
                 {
98
-                    sql += " and T4.F_Id IS NOT NULL and T4.F_Result!='正常接通' ";
98
+                    sql += " and T4.F_Id IS NOT NULL and (T4.F_Result = '无人接听' OR t4.F_Result='关机' )";
99 99
                 }
100 100
 
101 101
             }
@@ -186,7 +186,14 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
186 186
             }
187 187
             int count = 0;
188 188
 
189
-            dt = busSF_BINGRENQK.GetALLListByPage(sql, "", (pageindex - 1) * pagesize, pagesize * pageindex, out count);
189
+            //排序慢 先去掉
190
+            string orderby = "";
191
+            if (strstate == "2")
192
+            {
193
+                orderby = "F_SFTime desc";
194
+            }
195
+
196
+            dt = busSF_BINGRENQK.GetALLListByPage(sql, orderby, (pageindex - 1) * pagesize, pagesize * pageindex, out count);
190 197
             //dt = BLL.PagerBLL.GetListPager(
191 198
             //    "T_Med_FollowUp",
192 199
             //    "T_Med_FollowUp.F_Id",
@@ -372,7 +379,7 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
372 379
                 "T_Med_FollowUp.F_Id",
373 380
                 "*",
374 381
                 sql,
375
-                "ORDER BY T_Med_FollowUp.F_Id desc",
382
+                "ORDER BY T_Med_FollowUp.F_SFTime desc",
376 383
                 pagesize,
377 384
                 pageindex,
378 385
                 true,
@@ -411,13 +418,13 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
411 418
             string sql = "";
412 419
             if (dal.Trim() != "" && dal != "undefined")
413 420
             {
414
-                sql += "XZZDH = '" + dal + "'";
421
+                sql += " and  XZZDH = '" + dal + "'";
415 422
             }
416 423
 
417 424
             int recordCount = 0;
418 425
 
419 426
             DataTable dt = new DataTable();
420
-            dt = mfBLL.GetBLList(" XZZDH='" + dal + "'").Tables[0];
427
+          //  dt = mfBLL.GetBLList(" XZZDH='" + dal + "'").Tables[0];
421 428
 
422 429
             dt = BLL.PagerBLL.GetListPager(
423 430
                 "SF_BINGRENQK",