Преглед изворни кода

一次OA授权抓取条件修改为上传日期,避免发文日和上传日期跨月情况导致抓不到数据的情况

luocaiyang пре 3 година
родитељ
комит
9d842d9982

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

@@ -848,7 +848,7 @@ namespace wispro.sp.api.Job
 	                    and p_file_list.file_name not like '%.zip' 
 	                    and (select count(*) from p_proc_info where case_id=p_case_info.case_id and ctrl_proc_id='8b96378e-05a0-4a8d-b3d1-39af92fddaf5')=1 
 	                    and  (p_case_info.case_type_id='31D1A147-2931-43B5-94AE-B72B1525BA8A'   ) 
-	                    AND  ((p_file_list.post_date >= @beginTime  and p_file_list.post_date<@endTime))";
+	                    AND  ((p_file_list.upload_time >= @beginTime  and p_file_list.upload_time<@endTime))";
                     break;
                 case "每月绩效统计--专案进度跟踪~S卷":
                     strSQL = @"SELECT  p_case_info.case_volume as 我方文号,

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

@@ -51,7 +51,11 @@
     "/Project/ProjectSearch": "[94]-[1],[128]-[7],[44]-[5],[28]-[5]",
     "/AppealRecords": "[94]-[1],[128]-[7],[44]-[5]",
     "/CustomerList": "[94]-[1],[128]-[7],[44]-[5]",
-    "/StaffGrade": "[94]-[1],[128]-[7],[44]-[5]"
+    "/StaffGrade": "[94]-[1],[128]-[7],[44]-[5]",
+    "/LevelStatistics": "[94]-[1],[128]-[7],[44]-[5]",
+    "/Report/SingleChart": "[94]-[1],[128]-[7],[44]-[5]",
+    "/Report/AppealTrend": "[94]-[1],[128]-[7],[44]-[5]",
+    "/Report/StaticsTrend": "[94]-[1],[128]-[7],[44]-[5]"
   },
 
   "Lastest_feedback_date": "8"

+ 4 - 0
wispro.sp.web/Pages/AppCase/LevelStatistics.razor.cs

@@ -71,12 +71,16 @@ namespace wispro.sp.web.Pages.AppCase
             }
         }
 
+
+        [Inject] protected IAuthService _authService { get; set; }
+
         LevelStatisticsResult AResult;
         LevelStatisticsResult BResult;
         LevelStatisticsResult CResult;
         LevelStatisticsResult DResult;
         protected override async Task OnInitializedAsync()
         {
+            await _authService.CanVisitResource();
             if(SelectedTime == null)
             {
                 SelectedTime = DateTime.Now.AddMonths(-3);

+ 3 - 0
wispro.sp.web/Pages/Report/AppealTrend.razor.cs

@@ -175,8 +175,11 @@ namespace wispro.sp.web.Pages.Report
             }
         }
 
+
+        [Inject] protected IAuthService _authService { get; set; }
         protected async override Task OnInitializedAsync()
         {
+            await _authService.CanVisitResource();
             Datas = await reportService.GetAppealReportData(iType, DateTime.Parse("2022-01-01"), DateTime.Now, null);
             GetOption();
             StateHasChanged();

+ 4 - 0
wispro.sp.web/Pages/Report/PieChart.razor.cs

@@ -57,9 +57,13 @@ namespace wispro.sp.web.Pages.Report
 
         [Inject] MessageService msgService { get; set; }
 
+
+        [Inject] protected IAuthService _authService { get; set; }
+
         [Obsolete]
         protected async override Task OnInitializedAsync()
         {
+            await _authService.CanVisitResource();
             Datas = await reportService.GetAppealReportData(1, DateTime.Parse("2022-02-01"), null, null);
 
             if (Datas != null)

+ 4 - 0
wispro.sp.web/Pages/Report/StaffStaticsReport.razor.cs

@@ -186,8 +186,12 @@ namespace wispro.sp.web.Pages.Report
             _noIconLoading = false;
         }
 
+
+        [Inject] protected IAuthService _authService { get; set; }
+
         protected async override Task OnInitializedAsync()
         {
+            await _authService.CanVisitResource();
             await GetChartDatas();
             await base.OnInitializedAsync();
         }