luocaiyang il y a 6 mois
Parent
commit
8dc72e8741

+ 5 - 0
wispro.sp.api/Controllers/ProjectController.cs

@@ -421,6 +421,11 @@ namespace wispro.sp.api.Controllers
 
                                 foreach (var temItem in retItems)
                                 {
+                                    var apList = Context.AppealRecords.Where(a => a.ItemId == temItem.Id).ToList();
+                                    var fvList = Context.InputFieldValues.Where(f => f.AppealRecord.ItemId == temItem.Id).ToList();
+                                    Context.InputFieldValues.RemoveRange(fvList);
+                                    Context.AppealRecords.RemoveRange(apList);
+
                                     Context.ItemStaffs.RemoveRange(temItem.ItemStaffs);
                                     Context.PerformanceItems.Remove(temItem);
                                     Context.SaveChanges();

+ 2 - 2
wispro.sp.api/Job/ImportReportJob.cs

@@ -195,7 +195,7 @@ namespace wispro.sp.api.Job
             //DownloadReport( "每月绩效统计--发客户超过一个月未完成案件", calMonth,false);
 
             //每月绩效统计--上个月递交完成案件
-            DownloadReport_SQL("每月绩效统计--上个月递交完成案件", calMonth, true);
+            DownloadReport_SQL("每月绩效统计--上个月递交完成案件", calMonth,true);
             //DownloadReport("每月绩效统计--上个月递交完成案件", calMonth, true);
 
             //每月绩效统计--中国一次OA授权表
@@ -203,7 +203,7 @@ namespace wispro.sp.api.Job
             //DownloadReport("每月绩效统计--中国一次OA授权表", calMonth, true,true);
 
             //新申请返稿超2个月未定稿
-            ImportData("新申请返稿超2个月未定稿");
+            //ImportData("新申请返稿超2个月未定稿");
 
             return Task.CompletedTask;
         }

+ 1 - 1
wispro.sp.api/appsettings.json

@@ -30,7 +30,7 @@
     "isHeadless": "false",
     "Account": "caiyangl",
     "Password": "j)wx*lier*@3",
-    "ChormeDriverPath": "D:\\source\\repos\\StaffPerformance\\packages\\ChormeDriver\\130.0.6723.69",
+    "ChormeDriverPath": "e:\\source\\repos\\StaffPerformance\\packages\\ChormeDriver\\133.0.6943.126",
     "ScheduleSetting": "00 55 15 16 * ? *",
     "IPEasyWeb": "http://47.106.94.35/Login.aspx"
   },

+ 2 - 2
wispro.sp.winClient/appsettings.json

@@ -4,7 +4,7 @@
     "isHeadless": "true",
     "Account": "caiyangl",
     "Password": "j)wx*lier*@3",
-    "ChormeDriverPath": "e:\\source\\repos\\StaffPerformance\\packages\\ChormeDriver\\133.0.6943.126",
+    "ChormeDriverPath": "e:\\source\\repos\\StaffPerformance\\packages\\ChormeDriver\\135.0.7049.114",
     "ScheduleSetting": "00 55 10 3 * ? *",
     "IPEasyWeb": "http://47.106.94.35/Login.aspx"
   },
@@ -17,7 +17,7 @@
 
   },
   "InvalidDataMessageMails": "罗才洋|luocaiyang@china-wispro.com,何青瓦|heqingwa@china-wispro.com,钟子敏|zhongzimin@china-wispro.com,吴芳|wufang@china-wispro.com,邢丽霞|xinglixia@china-wispro.com,田婵玉|tianchanyu@china-wispro.com,周珊珊|zhoushanshan@china-wispro.com",
-  "APIBaseUri": "http://localhost:39476/", 
+  "APIBaseUri": "http://1.116.113.26:81",
   "lastDate": "2025-02-01"
 
 }