Browse Source

修改bug

zhoufan 7 years ago
parent
commit
30e9d1d1d7

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

@@ -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
 

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -274,7 +274,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
274 274
             if (!string.IsNullOrEmpty(strworkorderid))
275 275
             {
276 276
                 string sql = "select *,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_Type) as TypeName,dbo.GetDictionaryName(F_SmallType) as SmallTypeName,"
277
-                    + "dbo.GetDictionaryName(F_Source) as SourceName  from T_Bus_WorkOrder where F_WorkOrderId ='" + strworkorderid + "'";
277
+                    + "dbo.GetDictionaryName(F_ProductType) as ProductTypeName,dbo.GetDictionaryName(F_Source) as SourceName  from T_Bus_WorkOrder where F_WorkOrderId ='" + strworkorderid + "'";
278 278
                 var dt = DbHelperSQL.Query(sql).Tables[0];
279 279
                 if (dt.Rows.Count > 0)
280 280
                 {