duhongyu лет назад: 3
Родитель
Сommit
9b75c2c0c0

+ 15 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/APPSController.cs

@@ -1212,6 +1212,21 @@ namespace CallCenterApi.Interface.Controllers.workorder
1212 1212
                 var model = new BLL.T_Bus_WorkOrder().GetModel(strWrkOrdr_ID);
1213 1213
                 if (model!=null )
1214 1214
                 {
1215
+                    string Commentsql = "SELECT COUNT(1) FROM PublicComment WHERE WorkOrderId  ='" + model.F_WorkOrderId + "' AND CreateTime >='" + model.F_DealTime + "'";
1216
+                    var Comment = DbHelperSQL.GetSingle(Commentsql).ToString();
1217
+                    if (int.Parse(Comment) > 0)
1218
+                    {
1219
+                      
1220
+                        var objs = new
1221
+                        {
1222
+                            state = "error",
1223
+                            message = "工单已评议",
1224
+                            data ="",
1225
+                        };
1226
+                        return Content(objs.ToJson());
1227
+                    }
1228
+
1229
+
1215 1230
                     Dictionary<string, object> keyValuePairs = new Dictionary<string, object>();
1216 1231
                     keyValuePairs.Add("F_WorkState", 9);
1217 1232
                     keyValuePairs.Add("F_IsSatisfie", 1);

+ 0 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Global.asax.cs

@@ -25,10 +25,8 @@ namespace CallCenterApi.Interface
25 25
             _worker = new QuartzWorker();
26 26
          var satisfactionClose = new SatisfactionClose();
27 27
           _worker.AddWork(satisfactionClose);
28
-          _worker.Start();
29 28
            var ZhengWuDuiJie = new ZhengWuDuiJie();
30 29
            _worker.AddWork(ZhengWuDuiJie);
31
-           _worker.Start();
32 30
            var Peoplewebsite = new Peoplewebsite();
33 31
         _worker.AddWork(Peoplewebsite);
34 32
           _worker.Start();

+ 1 - 1
CallCenterCommon/CallCenter.QuartzService/QuartzWorker.cs

@@ -19,7 +19,7 @@ namespace CallCenter.QuartzService
19 19
 
20 20
             // 远程输出配置
21 21
             properties["quartz.scheduler.exporter.type"] = "Quartz.Simpl.RemotingSchedulerExporter, Quartz";
22
-            properties["quartz.scheduler.exporter.port"] = "556";
22
+            properties["quartz.scheduler.exporter.port"] = "6674";
23 23
             properties["quartz.scheduler.exporter.bindName"] = "QuartzScheduler";
24 24
             properties["quartz.scheduler.exporter.channelType"] = "tcp";
25 25