zhoufan vor 7 Jahren
Ursprung
Commit
62570d996c

+ 3 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/BusinessController.cs

83
             }
83
             }
84
             string where = " F_IsDelete=0 and datediff(day,F_CreateTime,'" + stime + "')<=0 "
84
             string where = " F_IsDelete=0 and datediff(day,F_CreateTime,'" + stime + "')<=0 "
85
                 + " and datediff(day,F_CreateTime,'" + etime + "')>=0 and F_Type=F_DictionaryValueId ";
85
                 + " and datediff(day,F_CreateTime,'" + etime + "')>=0 and F_Type=F_DictionaryValueId ";
86
+            string dicwhere = "";
86
             if (!string.IsNullOrEmpty(userModel.groupcode))
87
             if (!string.IsNullOrEmpty(userModel.groupcode))
87
             {
88
             {
88
                 where += " and F_GroupCode = '" + userModel.groupcode + "' ";
89
                 where += " and F_GroupCode = '" + userModel.groupcode + "' ";
90
+                dicwhere += " and F_GroupCode = '" + userModel.groupcode + "' ";
89
             }
91
             }
90
             string sql = " select F_Name TypeName,(select COUNT(1) from T_Bus_WorkOrder where "+ where 
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
             DataTable dt = DbHelperSQL.Query(sql).Tables[0];
95
             DataTable dt = DbHelperSQL.Query(sql).Tables[0];
94
 
96