duhongyu недель назад: 2
Родитель
Сommit
82d99302cc

+ 14 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs

282
             strSql.Append("F_RepeatCreateTime=@F_RepeatCreateTime,");
282
             strSql.Append("F_RepeatCreateTime=@F_RepeatCreateTime,");
283
             strSql.Append("F_ReviewStatus=@F_ReviewStatus,");
283
             strSql.Append("F_ReviewStatus=@F_ReviewStatus,");
284
             strSql.Append("F_ReviewNotes=@F_ReviewNotes,");
284
             strSql.Append("F_ReviewNotes=@F_ReviewNotes,");
285
-            strSql.Append("F_AuditTime=@F_AuditTime");
285
+            strSql.Append("F_AuditTime=@F_AuditTime,");
286
+            strSql.Append("F_IsQuadratic=@F_IsQuadratic");
286
             strSql.Append(" where F_Id=@F_Id");
287
             strSql.Append(" where F_Id=@F_Id");
287
             SqlParameter[] parameters = {
288
             SqlParameter[] parameters = {
288
                     new SqlParameter("@F_WorkOrderId", SqlDbType.VarChar,50),
289
                     new SqlParameter("@F_WorkOrderId", SqlDbType.VarChar,50),
358
                      new SqlParameter("@F_ReviewStatus", SqlDbType.Int,4),
359
                      new SqlParameter("@F_ReviewStatus", SqlDbType.Int,4),
359
                      new SqlParameter("@F_ReviewNotes", SqlDbType.NVarChar,-1),
360
                      new SqlParameter("@F_ReviewNotes", SqlDbType.NVarChar,-1),
360
                       new SqlParameter("@F_AuditTime", SqlDbType.DateTime),
361
                       new SqlParameter("@F_AuditTime", SqlDbType.DateTime),
362
+                       new SqlParameter("@F_IsQuadratic", SqlDbType.Int,4),
363
+                      
361
                     new SqlParameter("@F_Id", SqlDbType.Int,4)};
364
                     new SqlParameter("@F_Id", SqlDbType.Int,4)};
362
             parameters[0].Value = model.F_WorkOrderId;
365
             parameters[0].Value = model.F_WorkOrderId;
363
             parameters[1].Value = model.F_CusPhone;
366
             parameters[1].Value = model.F_CusPhone;
432
             parameters[67].Value = model.F_ReviewStatus;
435
             parameters[67].Value = model.F_ReviewStatus;
433
             parameters[68].Value = model.F_ReviewNotes;
436
             parameters[68].Value = model.F_ReviewNotes;
434
             parameters[69].Value = model.F_AuditTime;
437
             parameters[69].Value = model.F_AuditTime;
435
-            
436
-            parameters[70].Value = model.F_Id;
438
+            parameters[70].Value = model.F_IsQuadratic;
439
+            parameters[71].Value = model.F_Id;
437
             
440
             
438
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
441
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
439
             if (rows > 0)
442
             if (rows > 0)
817
                 {
820
                 {
818
                     model.F_ReviewNotes = row["F_ReviewNotes"].ToString();
821
                     model.F_ReviewNotes = row["F_ReviewNotes"].ToString();
819
                 }
822
                 }
823
+                if (row["F_IsQuadratic"] != null && row["F_IsQuadratic"].ToString() != "")
824
+                {
825
+                    model.F_IsQuadratic = int.Parse(row["F_IsQuadratic"].ToString());
826
+                }
827
+                
820
             }
828
             }
821
             return model;
829
             return model;
822
         }
830
         }
915
             StringBuilder strSql = new StringBuilder(); strSql.Append(" select F_WorkOrderId,d.F_DeptName  AreaName ,e.F_DeptName officName ," +
923
             StringBuilder strSql = new StringBuilder(); strSql.Append(" select F_WorkOrderId,d.F_DeptName  AreaName ,e.F_DeptName officName ," +
916
                 " [dbo].[GetTime](c.F_CreateTime),F_SerialNumber,F_CusName,F_AddRess,F_CusPhone ,F_ProductType,F_ProductName,F_Specifications," +
924
                 " [dbo].[GetTime](c.F_CreateTime),F_SerialNumber,F_CusName,F_AddRess,F_CusPhone ,F_ProductType,F_ProductName,F_Specifications," +
917
                 " F_ProductDate,F_BatchNumber, F_Manufacturer,F_ProblemCode,F_QualityProblem," +
925
                 " F_ProductDate,F_BatchNumber, F_Manufacturer,F_ProblemCode,F_QualityProblem," +
918
-                "  Notifications = f.F_UserName + '(' + f.F_Mobile + ')', ReceivingPerson =g.F_UserName, F_DealResult = h.F_DealResult, " +
926
+                "  Notifications = f.F_UserName + '(' + f.F_Mobile + ')', ReceivingPerson =g.F_UserName, F_DealResult = c.F_DealResult, " +
919
                 " case c.F_State when 0 then '待提交'when 1 then '待分派' when 3 then '待处理' when 4 then '处理中' when 5 then '退回待分派'" +
927
                 " case c.F_State when 0 then '待提交'when 1 then '待分派' when 3 then '待处理' when 4 then '处理中' when 5 then '退回待分派'" +
920
                 " when 6 then '退回待提交' when 10 then '已处理'  else '-' end F_State," +
928
                 " when 6 then '退回待提交' when 10 then '已处理'  else '-' end F_State," +
921
                 " case c.F_Type when 1 then '咨询' when 2 " +
929
                 " case c.F_Type when 1 then '咨询' when 2 " +
946
         {
954
         {
947
             StringBuilder strSql = new StringBuilder();strSql.Append(" select  F_SerialNumber, d.F_DeptName  AreaName ,e.F_DeptName officName ," +
955
             StringBuilder strSql = new StringBuilder();strSql.Append(" select  F_SerialNumber, d.F_DeptName  AreaName ,e.F_DeptName officName ," +
948
                 "F_CusName,F_AddRess,F_ProductType,F_ProductName, F_Specifications,F_ProductDate, F_BatchNumber, F_Manufacturer, F_ProblemCode," +
956
                 "F_CusName,F_AddRess,F_ProductType,F_ProductName, F_Specifications,F_ProductDate, F_BatchNumber, F_Manufacturer, F_ProblemCode," +
949
-                " F_QualityProblem, Notifications =f.F_UserName +'(' +f.F_Mobile + ')' , ReceivingPerson =g.F_UserName  ,F_DealResult=h.F_DealResult," +
957
+                " F_QualityProblem, Notifications =f.F_UserName +'(' +f.F_Mobile + ')' , ReceivingPerson =g.F_UserName  ,F_DealResult=c.F_DealResult," +
950
                 "  [dbo].[GetTime](c.F_RepeatCreateTime) from dbo.T_Bus_WorkOrder c WITH(NOLOCK) " +
958
                 "  [dbo].[GetTime](c.F_RepeatCreateTime) from dbo.T_Bus_WorkOrder c WITH(NOLOCK) " +
951
                 " left join T_Sys_Department d on c.F_Area = d.F_DeptId" +
959
                 " left join T_Sys_Department d on c.F_Area = d.F_DeptId" +
952
                 " left join T_Sys_Department e on c.F_Office = e.F_DeptId " +
960
                 " left join T_Sys_Department e on c.F_Office = e.F_DeptId " +
971
             StringBuilder strSql = new StringBuilder(); strSql.Append("select F_WorkOrderId,d.F_DeptName  AreaName ,e.F_DeptName officName," +
979
             StringBuilder strSql = new StringBuilder(); strSql.Append("select F_WorkOrderId,d.F_DeptName  AreaName ,e.F_DeptName officName," +
972
                 "[dbo].[GetTime](c.F_CreateTime),F_SerialNumber,F_CusName,F_AddRess,F_CusPhone ,F_ProductType,F_ProductName,F_Specifications," +
980
                 "[dbo].[GetTime](c.F_CreateTime),F_SerialNumber,F_CusName,F_AddRess,F_CusPhone ,F_ProductType,F_ProductName,F_Specifications," +
973
                 " F_ProductDate,F_BatchNumber, F_Manufacturer,F_ProblemCode,F_QualityProblem,Notifications =f.F_UserName +'(' +f.F_Mobile + ')'  ," +
981
                 " F_ProductDate,F_BatchNumber, F_Manufacturer,F_ProblemCode,F_QualityProblem,Notifications =f.F_UserName +'(' +f.F_Mobile + ')'  ," +
974
-                " ReceivingPerson = g.F_UserName, F_DealResult = h.F_DealResult, case c.F_State when 0 then '待提交'when 1 then " +
982
+                " ReceivingPerson = g.F_UserName, F_DealResult = c.F_DealResult, case c.F_State when 0 then '待提交'when 1 then " +
975
                 " '待分派' when 3 then '待处理' when 4 then '处理中' when 5 then '退回待分派' when 6 then '退回待提交' when 10 then " +
983
                 " '待分派' when 3 then '待处理' when 4 then '处理中' when 5 then '退回待分派' when 6 then '退回待提交' when 10 then " +
976
                 " '已处理'  else '-' end F_State , case c.F_Type when 1 then '咨询' when 2 then '投诉' " +
984
                 " '已处理'  else '-' end F_State , case c.F_Type when 1 then '咨询' when 2 then '投诉' " +
977
                 "when 3 then '重复' when 4 then '抽检' when 5 then '生鲜品' when 6 then '禽产品' " +
985
                 "when 3 then '重复' when 4 then '抽检' when 5 then '生鲜品' when 6 then '禽产品' " +

+ 65 - 25
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

8
 using System.Data;
8
 using System.Data;
9
 using System.IO;
9
 using System.IO;
10
 using System.Linq;
10
 using System.Linq;
11
+using System.Threading.Tasks;
11
 using System.Transactions;
12
 using System.Transactions;
12
 using System.Web;
13
 using System.Web;
13
 using System.Web.Mvc;
14
 using System.Web.Mvc;
83
             string office,string officename, string endtime,string duplicatetime,string endduplicatetime, 
84
             string office,string officename, string endtime,string duplicatetime,string endduplicatetime, 
84
             string productType,string productDate, string batchNumber,string manufacturer,string problemCode, 
85
             string productType,string productDate, string batchNumber,string manufacturer,string problemCode, 
85
             string productName,string producttypes,string complaintType,string notifications,string keywords,
86
             string productName,string producttypes,string complaintType,string notifications,string keywords,
86
-            string auditStartTime, string auditEndTime,
87
+            string auditStartTime, string auditEndTime,string dealStartTime, string dealEndTime,
87
             string dealTimely,string ywy, string reviewNotes, string startdealtime, string enddealtime, int IsReduction=-1, 
88
             string dealTimely,string ywy, string reviewNotes, string startdealtime, string enddealtime, int IsReduction=-1, 
88
             int CJ=0,int duplicate=-1, int see = 0, int source = 0, int type = 0, int state = -1, int pageindex = 1,
89
             int CJ=0,int duplicate=-1, int see = 0, int source = 0, int type = 0, int state = -1, int pageindex = 1,
89
             int pagesize = 10,int isdc=0,int istime=-1 , int reminder=-1, int incomplete = -1,int isdealfile=-1,
90
             int pagesize = 10,int isdc=0,int istime=-1 , int reminder=-1, int incomplete = -1,int isdealfile=-1,
90
-            int isreductions=0,int comprehensive=-1,int isManager=0, int reviewStatus = 0)
91
+            int isreductions=0,int comprehensive=-1,int isManager=0, int reviewStatus = 0,int isQuadratic=0)
91
         {
92
         {
92
            int userId = CurrentUser.UserData.F_UserId; ;
93
            int userId = CurrentUser.UserData.F_UserId; ;
93
             if (userId != 0)
94
             if (userId != 0)
231
                 {
232
                 {
232
                     sql += $" and  F_AuditTime <='" + auditEndTime + "'";
233
                     sql += $" and  F_AuditTime <='" + auditEndTime + "'";
233
                 }
234
                 }
235
+
236
+                if (!string.IsNullOrEmpty(dealStartTime))
237
+                {
238
+                    sql += $" and  F_DealTime >='" + dealStartTime + "'";
239
+                }
240
+
241
+                if (!string.IsNullOrEmpty(dealEndTime))
242
+                {
243
+                    sql += $" and  F_DealTime <='" + dealEndTime + "'";
244
+                }
245
+                if (isQuadratic > 0)
246
+                {
247
+                    sql += $" and F_IsQuadratic ='1' ";
248
+                }
234
                 if (reminder==0)
249
                 if (reminder==0)
235
                 {
250
                 {
236
                     sql += $" and c.F_DealType ='1' ";
251
                     sql += $" and c.F_DealType ='1' ";
268
                 {
283
                 {
269
                     sql += $" and c.F_DealFile is not null and c.F_DealFile != '' ";
284
                     sql += $" and c.F_DealFile is not null and c.F_DealFile != '' ";
270
                 }
285
                 }
286
+               
287
+
288
+
271
                 if (!string.IsNullOrEmpty(manufacturer))//生产厂家
289
                 if (!string.IsNullOrEmpty(manufacturer))//生产厂家
272
                 {
290
                 {
273
                     string msg = "";
291
                     string msg = "";
2363
         {
2381
         {
2364
             if (Request.IsAuthenticated)
2382
             if (Request.IsAuthenticated)
2365
             {
2383
             {
2366
-                lock (_MyLock)
2367
-                {
2384
+              
2368
                     #region 
2385
                     #region 
2369
                     int userId = CurrentUser.UserData.F_UserId;
2386
                     int userId = CurrentUser.UserData.F_UserId;
2370
                     Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
2387
                     Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
2481
                     {
2498
                     {
2482
                         Model.T_Bus_WorkOrder modlelist = new BLL.T_Bus_WorkOrder().GetModel(n);
2499
                         Model.T_Bus_WorkOrder modlelist = new BLL.T_Bus_WorkOrder().GetModel(n);
2483
                        
2500
                        
2484
-                     var deptmodel = departmentBLL.GetModel(userModel.F_DeptId);
2485
-                        string deptname = "";
2486
-                        if (deptmodel != null)
2487
-                            deptname = deptmodel.F_DeptName;
2488
-                        AddLog(modlelist.F_Id, 0, deptname + userModel.F_UserName + "创建工单", 0, 0, "", 0, userModel);
2501
+               
2502
+                      
2503
+                      //  AddLog(modlelist.F_Id, 0, deptname + userModel.F_UserName + "创建工单", 0, 0, "", 0, userModel);
2489
                         if (isover > 0)
2504
                         if (isover > 0)
2490
                         {
2505
                         {
2491
 
2506
 
2494
 
2509
 
2495
                                 if (model != null)
2510
                                 if (model != null)
2496
                                 {
2511
                                 {
2497
-                                    var res = DealWO(userModel, modlelist, cont, "", isover);
2512
+                                    var res = DealWO(userModel, modlelist, cont, "", isover,1);
2498
                                     if (res)
2513
                                     if (res)
2499
                                         return Success("处理成功");
2514
                                         return Success("处理成功");
2500
                                     else
2515
                                     else
2508
                         {
2523
                         {
2509
                             if (clid == 0)
2524
                             if (clid == 0)
2510
                                 return Error("请选择提交人!");
2525
                                 return Error("请选择提交人!");
2511
-                            bool t = AssignWO(userModel, modlelist, cont, 1, clid);
2526
+                            bool t = AssignWO(userModel, modlelist, cont, 1, clid,1);
2512
                             if (t)
2527
                             if (t)
2513
                             {
2528
                             {
2514
 
2529
 
2518
                             else
2533
                             else
2519
                                 return Error("提交失败!");
2534
                                 return Error("提交失败!");
2520
                         }
2535
                         }
2536
+                        else
2537
+                        {
2538
+                        var deptmodel = departmentBLL.GetModel(userModel.F_DeptId);
2539
+                        string deptname = "";
2540
+                        if (deptmodel != null)
2541
+                            deptname = deptmodel.F_DeptName;
2542
+                        AddLog(modlelist.F_Id, 0, deptname + userModel.F_UserName + "创建工单", 0, 0, "", 0, userModel);
2543
+                         }
2521
                         return Success("添加成功!");
2544
                         return Success("添加成功!");
2522
 
2545
 
2523
                     }
2546
                     }
2524
                     else
2547
                     else
2525
                         return Error("添加失败!");
2548
                         return Error("添加失败!");
2526
-                }
2549
+                
2527
                 #endregion
2550
                 #endregion
2528
             }
2551
             }
2529
 
2552
 
3304
         /// <summary>
3327
         /// <summary>
3305
         /// 处理工单
3328
         /// 处理工单
3306
         /// </summary>
3329
         /// </summary>
3307
-        public bool DealWO(Model.T_Sys_UserAccount nowUser, Model.T_Bus_WorkOrder model, string cont, string F_Files, int isover = 0)
3330
+        public bool DealWO(Model.T_Sys_UserAccount nowUser, Model.T_Bus_WorkOrder model, string cont, string F_Files
3331
+            , int isover = 0,int isCreate=0)
3308
         {
3332
         {
3309
             #region 工单处理
3333
             #region 工单处理
3310
             var opt = "处理";
3334
             var opt = "处理";
3338
             var optcont = "";
3362
             var optcont = "";
3339
             if (!string.IsNullOrEmpty(cont))
3363
             if (!string.IsNullOrEmpty(cont))
3340
                 optcont = ",处理内容:" + cont;
3364
                 optcont = ",处理内容:" + cont;
3365
+            if (isCreate==1)
3366
+            {
3367
+                opt = "创建并" + opt;
3368
+            }
3341
             var content = deptname + nowUser.F_UserName + "(" + nowUser.F_UserCode  + ")" + opt + "工单" + optcont;
3369
             var content = deptname + nowUser.F_UserName + "(" + nowUser.F_UserCode  + ")" + opt + "工单" + optcont;
3370
+            
3342
             var itemid = AddLog(model.F_Id, wostate, content, 1, optbut, touser, deptid, nowUser);
3371
             var itemid = AddLog(model.F_Id, wostate, content, 1, optbut, touser, deptid, nowUser);
3343
             if (itemid > 0)
3372
             if (itemid > 0)
3344
             {
3373
             {
3361
                 }
3390
                 }
3362
                 else
3391
                 else
3363
                 {
3392
                 {
3364
-                    if(!string .IsNullOrEmpty(model.F_Manufacturer))
3393
+                    Task task = Task.Run(() =>
3365
                     {
3394
                     {
3366
-                        var eqipment = new BLL.T_Sys_EquipmentNumber().GetModelList($"F_Production='{model.F_Manufacturer}' and F_IsDelete=0 ");
3367
-                        if (eqipment!=null&& eqipment.Count>0)
3395
+                        if (!string.IsNullOrEmpty(model.F_Manufacturer))
3368
                         {
3396
                         {
3369
-                            if (!string.IsNullOrEmpty(eqipment.FirstOrDefault().F_Manager))
3397
+                            var eqipment = new BLL.T_Sys_EquipmentNumber().GetModelList($"F_Production='{model.F_Manufacturer}' and F_IsDelete=0 ");
3398
+                            if (eqipment != null && eqipment.Count > 0)
3370
                             {
3399
                             {
3371
-                                foreach (var it in eqipment.FirstOrDefault().F_Manager.Split(','))
3400
+                                if (!string.IsNullOrEmpty(eqipment.FirstOrDefault().F_Manager))
3372
                                 {
3401
                                 {
3373
-                                    new PushMessageController().
3374
-                               PushFeiShui(model, "工单处理提醒", "您负责的工厂工单已处理",
3375
-                              it, model.F_Id);
3402
+                                    foreach (var it in eqipment.FirstOrDefault().F_Manager.Split(','))
3403
+                                    {
3404
+                                        new PushMessageController().
3405
+                                   PushFeiShui(model, "工单处理提醒", "您负责的工厂工单已处理",
3406
+                                  it, model.F_Id);
3407
+                                    }
3376
                                 }
3408
                                 }
3377
                             }
3409
                             }
3410
+
3378
                         }
3411
                         }
3379
-                     
3380
-                    }
3381
-                    
3412
+                    });
3413
+                   
3382
                 }
3414
                 }
3383
                 //处理内容
3415
                 //处理内容
3384
                 if (!string.IsNullOrEmpty(model.F_DealResult))
3416
                 if (!string.IsNullOrEmpty(model.F_DealResult))
3385
                     model.F_DealResult +=";" +cont ;
3417
                     model.F_DealResult +=";" +cont ;
3386
                 else
3418
                 else
3387
                     model.F_DealResult += cont ;
3419
                     model.F_DealResult += cont ;
3420
+                if(model.F_ReviewStatus!=null&& model.F_ReviewStatus==2)
3421
+                {
3422
+                    model.F_IsQuadratic = 1;
3423
+                }
3388
                 model.F_DealTime = DateTime.Now;
3424
                 model.F_DealTime = DateTime.Now;
3389
                 workorderBLL.Update(model);
3425
                 workorderBLL.Update(model);
3390
                 #endregion
3426
                 #endregion
3759
         /// <summary>
3795
         /// <summary>
3760
         /// 转派工单
3796
         /// 转派工单
3761
         /// </summary>
3797
         /// </summary>
3762
-        public bool AssignWO(Model.T_Sys_UserAccount nowUser, Model.T_Bus_WorkOrder model, string cont, int wostate, int clid = 0)
3798
+        public bool AssignWO(Model.T_Sys_UserAccount nowUser, Model.T_Bus_WorkOrder model, string cont, int wostate, int clid = 0,int isCreate=0)
3763
         {
3799
         {
3764
             string touser = ""; string tousername = "";
3800
             string touser = ""; string tousername = "";
3765
             int deptid = 0;
3801
             int deptid = 0;
3812
             var optcont = "";
3848
             var optcont = "";
3813
             if (!string.IsNullOrEmpty(cont))
3849
             if (!string.IsNullOrEmpty(cont))
3814
                 optcont = ",说明:" + cont;
3850
                 optcont = ",说明:" + cont;
3851
+            if (isCreate == 1)
3852
+            {
3853
+                opt = "创建并" + opt;
3854
+            }
3815
             var content = nowUser.F_UserName + "(" + nowUser.F_UserCode + ")" + opt + "工单给 "+deptname + tousername + optcont;
3855
             var content = nowUser.F_UserName + "(" + nowUser.F_UserCode + ")" + opt + "工单给 "+deptname + tousername + optcont;
3816
             var itemid = AddLog(model.F_Id, wostate, content, 1, optbut, touser, deptid, nowUser);
3856
             var itemid = AddLog(model.F_Id, wostate, content, 1, optbut, touser, deptid, nowUser);
3817
             if (itemid > 0)
3857
             if (itemid > 0)

+ 16 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkorderAppController.cs

395
         /// <returns></returns>
395
         /// <returns></returns>
396
         /// F_Duplicate  1咨询2投诉6抽检
396
         /// F_Duplicate  1咨询2投诉6抽检
397
         [Authority]
397
         [Authority]
398
-        public ActionResult GetList(string starttime, string endtime, string keywords,string reviewNotes, string area, 
398
+        public ActionResult GetList(string starttime, string endtime, string keywords,string reviewNotes, string area, string dealStartTime, string dealEndTime,
399
             string offce, string dealTimely,int CJ=0, int see=0, int state = -1, int pageindex = 1,
399
             string offce, string dealTimely,int CJ=0, int see=0, int state = -1, int pageindex = 1,
400
-            int pagesize = 10,int Processing=0,int isdc=0,int reviewStatus=0, int comprehensive = -1, int isManager = 0)
400
+            int pagesize = 10,int Processing=0,int isdc=0,int reviewStatus=0, int comprehensive = -1, int isManager = 0, int isQuadratic = 0)
401
         {
401
         {
402
             int userId = CurrentUser.UserData.F_UserId;
402
             int userId = CurrentUser.UserData.F_UserId;
403
             if (userId != 0)
403
             if (userId != 0)
621
                         sql += "AND F_CreateUser=" + ua.F_UserCode;
621
                         sql += "AND F_CreateUser=" + ua.F_UserCode;
622
                     sql += "AND F_State in(10)";
622
                     sql += "AND F_State in(10)";
623
                 }
623
                 }
624
-             
624
+                if (!string.IsNullOrEmpty(dealStartTime))
625
+                {
626
+                    sql += $" and  F_DealTime >='" + dealStartTime + "'";
627
+                }
628
+
629
+                if (!string.IsNullOrEmpty(dealEndTime))
630
+                {
631
+                    sql += $" and  F_DealTime <='" + dealEndTime + "'";
632
+                }
633
+                if (isQuadratic > 0)
634
+                {
635
+                    sql += $" and F_IsQuadratic ='1' ";
636
+                }
637
+
625
                 // string uwhere = " ";
638
                 // string uwhere = " ";
626
                 if (state>-1)
639
                 if (state>-1)
627
                 {
640
                 {

+ 5 - 0
codegit/CallCenterApi/CallCenterApi.Model/T_Bus_WorkOrder.cs

622
 
622
 
623
         public DateTime? F_AuditTime { set; get; }
623
         public DateTime? F_AuditTime { set; get; }
624
 
624
 
625
+        /// <summary>
626
+        /// 是否二次处理
627
+        /// </summary>
628
+        public int? F_IsQuadratic { set; get; }
629
+
625
         #endregion Model
630
         #endregion Model
626
 
631
 
627
     }
632
     }