Sfoglia il codice sorgente

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

liyuanyuan 4 anni fa
parent
commit
7c8375afd1

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

87
             {
87
             {
88
                 if (strstate == "2")
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
                 else if (strstate == "1")
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
                 else if (strstate == "3")
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
             }
186
             }
187
             int count = 0;
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
             //dt = BLL.PagerBLL.GetListPager(
197
             //dt = BLL.PagerBLL.GetListPager(
191
             //    "T_Med_FollowUp",
198
             //    "T_Med_FollowUp",
192
             //    "T_Med_FollowUp.F_Id",
199
             //    "T_Med_FollowUp.F_Id",
372
                 "T_Med_FollowUp.F_Id",
379
                 "T_Med_FollowUp.F_Id",
373
                 "*",
380
                 "*",
374
                 sql,
381
                 sql,
375
-                "ORDER BY T_Med_FollowUp.F_Id desc",
382
+                "ORDER BY T_Med_FollowUp.F_SFTime desc",
376
                 pagesize,
383
                 pagesize,
377
                 pageindex,
384
                 pageindex,
378
                 true,
385
                 true,
411
             string sql = "";
418
             string sql = "";
412
             if (dal.Trim() != "" && dal != "undefined")
419
             if (dal.Trim() != "" && dal != "undefined")
413
             {
420
             {
414
-                sql += "XZZDH = '" + dal + "'";
421
+                sql += " and  XZZDH = '" + dal + "'";
415
             }
422
             }
416
 
423
 
417
             int recordCount = 0;
424
             int recordCount = 0;
418
 
425
 
419
             DataTable dt = new DataTable();
426
             DataTable dt = new DataTable();
420
-            dt = mfBLL.GetBLList(" XZZDH='" + dal + "'").Tables[0];
427
+          //  dt = mfBLL.GetBLList(" XZZDH='" + dal + "'").Tables[0];
421
 
428
 
422
             dt = BLL.PagerBLL.GetListPager(
429
             dt = BLL.PagerBLL.GetListPager(
423
                 "SF_BINGRENQK",
430
                 "SF_BINGRENQK",