ソースを参照

根据来源查询

tangjiang 6 ヶ月 前
コミット
40d335d69d

+ 10 - 7
src/DataSharing.Host/Controllers/YiBin/ConvergenceMediaController.cs

@@ -373,9 +373,12 @@ namespace DataSharing.Host.Controllers.YiBin
                 HandleStateCode = dto.HandleStateCode,
             };
 
-
             List<GetOrderMediaDataListDto> listData = [];
-
+            string strFromType = "IYB";
+            if (accountDto.PlatformSource == "ConvergenceMedia")
+            {
+                strFromType = "ybrmt";
+            }
             //查询旧系统
             Dictionary<string, object> dic = new Dictionary<string, object>
                 {
@@ -386,11 +389,11 @@ namespace DataSharing.Host.Controllers.YiBin
                     { "HandleStateCode", dto.HandleStateCode},
                     { "StartDate", dto.StartDate},
                     { "EndDate", dto.EndDate},
-                    {"StrFromType","QLY001" },
+                    {"StrFromType",strFromType },
                     { "CurrentPage", 1},
                     { "PageSize", 500 },
                 };
-            var strUrl = _sharingConfigurationManager.GetYiBinConfig().IYB.QueryOldList+ "yb12345/iyb.asmx/GetOrderByListNew";
+            var strUrl = _sharingConfigurationManager.GetYiBinConfig().IYB.QueryOldList + "yb12345/iyb.asmx/GetOrderByListNew";
             var strResultData = e_SendHttpPostBySync(strUrl, dic);
             if (!string.IsNullOrEmpty(strResultData))
             {
@@ -490,7 +493,7 @@ namespace DataSharing.Host.Controllers.YiBin
                     { "AcceptCode", dto.AcceptCode },
                     { "AcceptPwd", dto.AcceptPwd }
                 };
-                var strUrl =_sharingConfigurationManager.GetYiBinConfig().IYB.QueryOldList+ "yb12345/iyb.asmx/GetOrderDetailNew";
+                var strUrl = _sharingConfigurationManager.GetYiBinConfig().IYB.QueryOldList + "yb12345/iyb.asmx/GetOrderDetailNew";
                 var strResultData = e_SendHttpPostBySync(strUrl, dic);
                 if (!string.IsNullOrEmpty(strResultData))
                 {
@@ -644,7 +647,7 @@ namespace DataSharing.Host.Controllers.YiBin
                     { "CurrentPage", 1},
                     { "PageSize", getOrder.PageSize },
                 };
-            var strUrl =_sharingConfigurationManager.GetYiBinConfig().IYB.QueryOldList+ "yb12345/iyb.asmx/GetOrderByListOpenNew";
+            var strUrl = _sharingConfigurationManager.GetYiBinConfig().IYB.QueryOldList + "yb12345/iyb.asmx/GetOrderByListOpenNew";
             var strResultData = e_SendHttpPostBySync(strUrl, dic);
             if (!string.IsNullOrEmpty(strResultData))
             {
@@ -1049,7 +1052,7 @@ namespace DataSharing.Host.Controllers.YiBin
                 {
                     { "FlowID", dto.FlowID }
                 };
-                var strUrl =_sharingConfigurationManager.GetYiBinConfig().IYB.QueryOldList+ "yb12345/iyb.asmx/GetOrderDetailByFlowIDNew";
+                var strUrl = _sharingConfigurationManager.GetYiBinConfig().IYB.QueryOldList + "yb12345/iyb.asmx/GetOrderDetailByFlowIDNew";
                 var strResultData = e_SendHttpPostBySync(strUrl, dic);
                 if (!string.IsNullOrEmpty(strResultData))
                 {