|
|
@@ -83,12 +83,14 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
83
|
83
|
}
|
|
84
|
84
|
string where = " F_IsDelete=0 and datediff(day,F_CreateTime,'" + stime + "')<=0 "
|
|
85
|
85
|
+ " and datediff(day,F_CreateTime,'" + etime + "')>=0 and F_Type=F_DictionaryValueId ";
|
|
|
86
|
+ string dicwhere = "";
|
|
86
|
87
|
if (!string.IsNullOrEmpty(userModel.groupcode))
|
|
87
|
88
|
{
|
|
88
|
89
|
where += " and F_GroupCode = '" + userModel.groupcode + "' ";
|
|
|
90
|
+ dicwhere += " and F_GroupCode = '" + userModel.groupcode + "' ";
|
|
89
|
91
|
}
|
|
90
|
92
|
string sql = " select F_Name TypeName,(select COUNT(1) from T_Bus_WorkOrder where "+ where
|
|
91
|
|
- + " ) Count from dbo.T_Sys_DictionaryValue where F_DictionaryFlag='GDLX' and F_State=1 ";
|
|
|
93
|
+ + " ) Count from dbo.T_Sys_DictionaryValue where F_DictionaryFlag='GDLX' and F_State=1 "+ dicwhere;
|
|
92
|
94
|
|
|
93
|
95
|
DataTable dt = DbHelperSQL.Query(sql).Tables[0];
|
|
94
|
96
|
|