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