duhongyu преди 6 години
родител
ревизия
57b5c23270

+ 4 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -59,7 +59,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
59 59
                     }
60 60
                     if (workOrderID.Trim() != "" && workOrderID != "undefined")
61 61
                     {
62
-                        sql += "and  WorkOrderID=" + workOrderID;
62
+                        sql += "and  WorkOrderID like'%" + workOrderID+ "%'";
63 63
                     }
64 64
                     if (customerTel.Trim() != "" && customerTel != "undefined")
65 65
                     {
@@ -330,11 +330,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
330 330
         {
331 331
             #region 工单处理
332 332
             var opt = "处理";
333
+            model.F_State = (int)EnumWorkOrderState.finish;
333 334
             if (isover == 1)
334 335
             {
335 336
                 opt = "处理";
336 337
                 model.DealBy = nowUser.F_UserCode;
337 338
                 model.DealTime = DateTime.Now;
339
+                model.F_State = 0;
338 340
             }
339 341
             #region 读取当前登录人部门
340 342
             string deptname = "";
@@ -353,7 +355,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
353 355
             if (itemid > 0)
354 356
             {
355 357
                 #region 处理工单
356
-                model.F_State = (int)EnumWorkOrderState.finish;
358
+               
357 359
                 //处理内容
358 360
                 if (!string.IsNullOrEmpty(cont))
359 361
                     model.DealContents += cont + ";";