|
|
@@ -134,12 +134,14 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
134
|
134
|
}
|
|
135
|
135
|
string where = " F_IsDelete=0 and datediff(day,F_CreateTime,'" + stime + "')<=0 "
|
|
136
|
136
|
+ " and datediff(day,F_CreateTime,'" + etime + "')>=0 and F_SmallType=F_DictionaryValueId ";
|
|
|
137
|
+ string dicwhere = "";
|
|
137
|
138
|
if (!string.IsNullOrEmpty(userModel.groupcode))
|
|
138
|
139
|
{
|
|
139
|
140
|
where += " and F_GroupCode = '" + userModel.groupcode + "' ";
|
|
|
141
|
+ dicwhere += " and F_GroupCode = '" + userModel.groupcode + "' ";
|
|
140
|
142
|
}
|
|
141
|
143
|
string sql = " select F_Name TypeName,(select COUNT(1) from T_Bus_WorkOrder where " + where
|
|
142
|
|
- + " ) Count from dbo.T_Sys_DictionaryValue where F_DictionaryFlag='TSLX' and F_State=1 ";
|
|
|
144
|
+ + " ) Count from dbo.T_Sys_DictionaryValue where F_DictionaryFlag='TSLX' and F_State=1 "+ dicwhere;
|
|
143
|
145
|
|
|
144
|
146
|
DataTable dt = DbHelperSQL.Query(sql).Tables[0];
|
|
145
|
147
|
|