Browse Source

修改微信模块

zhoufan 8 years ago
parent
commit
c254c951ef

+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -367,11 +367,11 @@ namespace CallCenterApi.Interface.Controllers.weixin
367 367
             string stropenid = HttpUtility.UrlDecode(RequestString.GetQueryString("openid"));
368 368
             var wxuser = new BLL.T_Sys_Users().GetModelList(" F_OpenId='" + stropenid.Trim() + "' and F_Type=1 ").FirstOrDefault();
369 369
 
370
-            string where= " F_WorkOrderId in (select F_WorkOrderId from T_Bus_UserWorkOrder F_UserId='" + wxuser.F_Id + "') ";
370
+            string where= " F_WorkOrderId in (select F_WorkOrderId from T_Bus_UserWorkOrder where F_UserId='" + wxuser.F_Id + "') ";
371 371
 
372 372
             string sql = " select count(1) from T_Bus_UserWorkOrder where F_UserId='" + wxuser.F_Id + "' ";
373 373
             string sqlblz = " select count(1) from T_Bus_WorkOrder where " + where + " and F_WorkState!=9 ";
374
-            string sqlybl = " select count(1) from T_Bus_UserWorkOrder where " + where + " and F_WorkState =9 ";
374
+            string sqlybl = " select count(1) from T_Bus_WorkOrder where " + where + " and F_WorkState =9 ";
375 375
 
376 376
             string sqltype = " select F_ValueId,F_Value,(select COUNT(1) from T_Bus_WorkOrder where F_IsDelete=0 "
377 377
                 + " and  F_InfoType=F_ValueId and "+ where + ") Count from  dbo.T_Sys_DictionaryValue where F_ItemId=2 and F_State=0 ";

+ 5 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -60,6 +60,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
60 60
             int sourcearea = RequestString.GetInt("sourcearea", 0);
61 61
 
62 62
             int deptid = RequestString.GetInt("deptid", 0);
63
+            int dealtype = RequestString.GetInt("dealtype", -1);
63 64
 
64 65
             string strpageindex = RequestString.GetQueryString("page");
65 66
             int pageindex = 1;
@@ -123,6 +124,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
123 124
                 string sqlwhere = "select F_WorkOrderID from T_Bus_AssignedInfo where F_MainDeptId = '" + deptid + "' and F_State=1 and F_IsDelete=0 ";
124 125
                 sql += " and F_WorkOrderID in(" + sqlwhere + ")";
125 126
             }
127
+            if (dealtype != -1)
128
+            {
129
+                sql += " and isnull(F_IsResult,0) = '" + dealtype + "' ";
130
+            }
126 131
             if (strstarttime.Trim() != "" && strstarttime != "undefined")
127 132
             {
128 133
                 sql += " and datediff(day,F_CreateTime,'" + strstarttime + "')<=0 ";