|
|
@@ -39,11 +39,11 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
|
|
39
|
39
|
/// <returns></returns>
|
|
40
|
40
|
public ActionResult GetListAll()
|
|
41
|
41
|
{
|
|
42
|
|
- string sql = " 1=1 ";
|
|
|
42
|
+ string sql = " datediff(day,T1.CYRQ,'2020-11-01')<=0 ";
|
|
43
|
43
|
DataTable dt = new DataTable();
|
|
44
|
44
|
|
|
45
|
45
|
string dischargedept = HttpUtility.UrlDecode(RequestString.GetQueryString("dischargedept"));//出院科室
|
|
46
|
|
- string strstate = HttpUtility.UrlDecode(RequestString.GetQueryString("state"));//状态
|
|
|
46
|
+ string strstate = "0";// 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
|
//来电号码
|
|
|
@@ -110,13 +110,13 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
|
|
110
|
110
|
{
|
|
111
|
111
|
sql += " and T1.XZZDH like '%" + strtel + "%' ";
|
|
112
|
112
|
}
|
|
113
|
|
- if (strstarttime.Trim() != "" && strstarttime != "undefined")
|
|
|
113
|
+ if (strstarttime!=null&&strstarttime.Trim() != "" && strstarttime != "undefined")
|
|
114
|
114
|
{
|
|
115
|
|
- sql += " and datediff(day,a.CYRQ,'" + strstarttime + "')<=0 ";
|
|
|
115
|
+ sql += " and datediff(day,T1.CYRQ,'" + strstarttime + "')<=0 ";
|
|
116
|
116
|
}
|
|
117
|
117
|
if (strendtime.Trim() != "" && strendtime != "undefined")
|
|
118
|
118
|
{
|
|
119
|
|
- sql += " and datediff(day,a.CYRQ,'" + strendtime + "')>=0 ";
|
|
|
119
|
+ sql += " and datediff(day,T1.CYRQ,'" + strendtime + "')>=0 ";
|
|
120
|
120
|
}
|
|
121
|
121
|
|
|
122
|
122
|
if (strzdmc.Trim() != "" && strzdmc != "undefined")
|