Sfoglia il codice sorgente

修改微信端bug

mengjie 6 anni fa
parent
commit
cfeca37c20

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

@@ -260,7 +260,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
260 260
             //2018-7-5
261 261
             string infotype = HttpUtility.UrlDecode(RequestString.GetFormString("infotype"));
262 262
             string infotypeid = HttpUtility.UrlDecode(RequestString.GetFormString("infotypeid"));
263
-            
263
+            string unit = HttpUtility.UrlDecode(RequestString.GetFormString("unit"));
264 264
             string stropenid = HttpUtility.UrlDecode(RequestString.GetFormString("openid"));
265 265
             var wxuser = new BLL.T_Sys_Users().GetModelList(" F_OpenId='" + stropenid.Trim() + "'  and F_Type=1 ").FirstOrDefault();
266 266
             var wxuserinfo = new BLL.T_Sys_UserAccount().GetModelList(" F_WxOpenId='" + stropenid.Trim() + "'  and F_DeleteFlag=0 ").FirstOrDefault();
@@ -272,7 +272,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
272 272
                 agentname = wxuserinfo.F_UserName;
273 273
             }
274 274
             workorder.WorkOrderController wo = new workorder.WorkOrderController();
275
-            string workorderid = wo.AddWorkOrders(cusname, cusphone,country,address, content, files,infotype, infotypeid,agentcode ,agentname );
275
+            string workorderid = wo.AddWorkOrders(cusname, cusphone,country,address, content, files,infotype, infotypeid,agentcode ,agentname,unit );
276 276
             if (string.IsNullOrEmpty(workorderid))
277 277
             {
278 278
                 return Error("新增失败");
@@ -429,6 +429,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
429 429
             //    sql += " and Datediff(day,F_Startdate,'" + datetime.Trim() + "')>=0";
430 430
             //    sql += " and Datediff(day,F_Enddate,'" + datetime.Trim() + "')<=0";
431 431
             //}
432
+            
432 433
             sql += " and Datediff(day,F_Startdate,getdate())>=0";
433 434
             sql += " and Datediff(day,F_Enddate,getdate())<=0";
434 435
 

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

@@ -1204,7 +1204,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1204 1204
 
1205 1205
         #region 微信工单
1206 1206
         //微信添加工单
1207
-        public string AddWorkOrders(string customer, string custel, string country, string address, string detail, string file,string infotype, string infotypeid,string agentcode,string agentname)
1207
+        public string AddWorkOrders(string customer, string custel, string country, string address, string detail, string file,string infotype, string infotypeid,string agentcode,string agentname,string unit)
1208 1208
         {
1209 1209
             string workorderid = string.Empty;
1210 1210
             Model.T_Wo_WorkOrder model = new Model.T_Wo_WorkOrder();
@@ -1235,7 +1235,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1235 1235
             model.IsAudit = 0;//是否审核有效:0未审核,1无效,2有效
1236 1236
                               //model.CreateUser = ua.F_UserCode;
1237 1237
             model.CreateUser = agentcode;
1238
-            
1238
+            model.Unit = unit;
1239 1239
             model.CreateTime = DateTime.Now;
1240 1240
             #endregion
1241 1241