Просмотр исходного кода

调整流程节点参数及优化JuHeApiService代码注释

优化JuHeApiService注释,HandleMinusValue改为静态方法并完善注释。ProcessOverviewRepository中第二流程节点不再依赖访问日期和工作日数,参数由 groupInfo.VisitDate 和 7 改为 null 和 0。
Lyyyi 1 день назад
Родитель
Сommit
db44b7e9cf

+ 5 - 7
OASystem/OASystem.Api/OAMethodLib/JuHeAPI/JuHeApiService.cs

@@ -49,10 +49,9 @@ namespace OASystem.API.OAMethodLib.JuHeAPI
                     var exchangeReq = await _httpClient.PostAsync(url,
                                         new FormUrlEncodedContent(new List<KeyValuePair<string, string>>()
                                         {
-                                        new KeyValuePair<string, string>("key",_appKey),//你申请的key 
-                                        new KeyValuePair<string, string>("type","0"),   //两种格式(0或者1,默认为0)
-                                        new KeyValuePair<string, string>("bank","3")    //(0:工商银行,1:招商银行,2:建设银行,3:中国银行,
-                                                                                        //4:交通银行,5:农业银行,默认为:0)
+                                        new KeyValuePair<string, string>("key",_appKey),// key 
+                                        new KeyValuePair<string, string>("type","0"),   // 两种格式(0或者1,默认为0)
+                                        new KeyValuePair<string, string>("bank","3")    // (0:工商银行,1:招商银行,2:建设银行,3:中国银行,4:交通银行,5:农业银行,默认为:0)
                                         }));
                     if (exchangeReq.IsSuccessStatusCode)
                     {
@@ -115,7 +114,6 @@ namespace OASystem.API.OAMethodLib.JuHeAPI
                     result.Reason = ex.Message;
                 }
                 #endregion
-
             }
             else
             {
@@ -124,13 +122,13 @@ namespace OASystem.API.OAMethodLib.JuHeAPI
             }
             return result;
         }
-
+         
         /// <summary>
         /// 处理金额带“-”的币种汇率信息
         /// </summary>
         /// <param name="input"></param>
         /// <returns></returns>
-        private string HandleMinusValue(string? input)
+        private static string HandleMinusValue(string? input)
         {
             return string.IsNullOrEmpty(input) || input.Contains("-") ? "1.00" : input;
         }

+ 1 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/ProcessOverviewRepository.cs

@@ -550,7 +550,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
             //2. 7个工作日,所有报批机构前部联系,邀请机构一个国家不少于4家进行重点对接(4家机构中,其中3家机构需有效对接,其中1家可为付费机构备选))
             DateTime? xy_timeBase2 = groupInfo.VisitDate;
             nodeDetails.Add(
-                GroupProcFullNodeDetails.Create(groupId, groupName, groupType, oa_proc, 2, xy_timeBase2, 7, true, oa_users)
+                GroupProcFullNodeDetails.Create(groupId, groupName, groupType, oa_proc, 2, null, 0, true, oa_users)
             );
 
             //3. 10个工作日,根据最新情况,联系公务机构1/3取得回应;邀请机构基本明确。